LCOV - code coverage report
Current view: top level - ITS/ITSbase - AliITSsegmentationSPD.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 5 8 62.5 %
Date: 2016-06-14 17:26:59 Functions: 7 14 50.0 %

          Line data    Source code
       1             : #ifndef ALIITSSEGMENTATIONSPD_H
       2             : #define ALIITSSEGMENTATIONSPD_H
       3             : 
       4             : #include "AliITSsegmentation.h"
       5             : 
       6             : 
       7             : 
       8             : // segmentation and response for SPD 
       9             : 
      10             : class AliITSsegmentationSPD :
      11             : public AliITSsegmentation {
      12             :  public:
      13             : 
      14             :     AliITSsegmentationSPD(Option_t *opt="" );
      15             :     AliITSsegmentationSPD(const AliITSsegmentationSPD &source);
      16        1934 :     virtual ~AliITSsegmentationSPD(){}
      17             :     AliITSsegmentationSPD& operator=(const AliITSsegmentationSPD &source);
      18             : 
      19             :     // Set Detector Segmentation Parameters
      20             : 
      21             :     // Maximum number of pixels along the two coordinates  
      22             :     virtual void    SetNPads(Int_t p1, Int_t p2);
      23             :     // Returns the maximum number of cells (digits) posible
      24           0 :     virtual Int_t   GetNPads() const {return fNpx*fNpz;}
      25             :     // Set Pixel Size Array in x and z, microns.
      26             :     virtual void    SetBinSize(Float_t *x,Float_t *z);
      27             : 
      28             :     // Transform from real to pixel coordinates
      29             :     virtual void    GetPadIxz(Float_t x,Float_t z,Int_t &ix,Int_t &iz) const;
      30             :     // Transform from pixel to real coordinates
      31             :     virtual void    GetPadCxz(Int_t ix,Int_t iz,Float_t &x,Float_t &z) const;
      32             :     // Local transformation of real local coordinates -
      33             :     virtual void    GetPadTxz(Float_t &x ,Float_t &z) const;
      34             :     // Transformation from Geant cm detector center local coordinates
      35             :     // to detector segmentation/cell coordiantes starting from (0,0).
      36             :     virtual Bool_t  LocalToDet(Float_t x,Float_t z,Int_t &ix,Int_t &iz) const;
      37             :     // Transformation from detector segmentation/cell coordiantes starting
      38             :     // from (0,0) to Geant cm detector center local coordinates.
      39             :     virtual void    DetToLocal(Int_t ix,Int_t iz,Float_t &x,Float_t &z) const;
      40             :     // Returns the Cell upper and lower boundries in x and y. cell indexes
      41             :     // starting from (0,0) and return Geant cm detector centered local
      42             :     // coordinates, consistant with DetToLocal and LocalToDet functions above.
      43             :     virtual void CellBoundries(Int_t ix,Int_t iz,Double_t &xl,Double_t &xu,
      44             :                                Double_t &zl,Double_t &zu) const;
      45             :     //
      46           0 :     virtual Int_t    GetNumberOfChips() const {return fgkNchipsPerModule;}
      47         960 :     virtual Int_t    GetMaximumChipIndex() const {return fgkNchipsPerModule-1;}
      48             :     
      49             :     virtual Int_t    GetChipFromLocal(Float_t, Float_t zloc) const;
      50             :     virtual Int_t    GetChipsInLocalWindow(Int_t* array, Float_t zmin, Float_t zmax, Float_t, Float_t) const;
      51             : 
      52             :     virtual Int_t    GetChipFromChannel(Int_t, Int_t iz) const;
      53             :     //
      54             :     // Initialisation
      55             :     virtual void Init();
      56             :     virtual void Init300();
      57             :     //
      58             :     // Get member data
      59             :     //
      60             :     // Pixel size in x
      61             :     virtual Float_t Dpx(Int_t ix) const;
      62             :     // Pixel size in z 
      63             :     virtual Float_t Dpz(Int_t iz) const;
      64             : 
      65             :     // Maximum number of Pixels in x
      66    80260260 :     virtual Int_t    Npx() const {return fNpx;}
      67             :     // Maximum number of Pixels in z
      68     1136656 :     virtual Int_t    Npz() const {return fNpz;}
      69             :     //
      70             :     // Get next neighbours
      71             :     virtual void Neighbours
      72             :        (Int_t iX,Int_t iZ,Int_t* Nlist,Int_t Xlist[10],Int_t Zlist[10]) const;
      73             :     // Print default parameters (static const data members, if any)
      74             :     virtual void PrintDefaultParameters() const 
      75           0 :             {AliWarning("No def. parameters defined as const static data members");}
      76             :     
      77             :  protected:
      78             : 
      79             :     virtual void Copy(TObject &obj) const;
      80             :     Int_t   fNpx;           // Number of pixels in x
      81             :     Int_t   fNpz;           // Number of pixels in z
      82             :     Float_t fCellSizeX[256];// Size for each pixel in x -microns
      83             :     Float_t fCellSizeZ[280];// Size for each pixel in z -microns
      84             :     static const Int_t fgkNchipsPerModule;    //number of chips per ladder (5)
      85             :     static const Int_t fgkNcolumnsPerChip;    //number of columns per chip (32)
      86             : 
      87             :  private:
      88             : 
      89             :     Float_t ColFromZ300(Float_t z) const;
      90             :     Float_t ZFromCol300(Int_t col) const;
      91             :     Float_t Zpitch300() const;
      92             :     Float_t ColFromZ(Float_t z) const;
      93             :     Float_t ZFromCol(Int_t col) const;
      94             :     Float_t ZpitchFromCol(Int_t col) const;
      95             : 
      96         118 :   ClassDef(AliITSsegmentationSPD,3) //Segmentation class for SPD 
      97             : 
      98             : };
      99             : 
     100             : #endif

Generated by: LCOV version 1.11