Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:15:46

0001 #ifndef TILE_H
0002 #define TILE_H
0003 
0004 #include "TString.h"
0005 #include "Setup.h"
0006 
0007 namespace ReadOut{
0008   enum Type {Undef, Hgcroc, Caen};
0009 }
0010 
0011 class Tile{
0012 
0013  public:
0014   Tile():E(0.),CellID(-1),ROtype(ReadOut::Type::Undef),TOA(0.),lTPr(0.),lTrBit(0){}
0015   Tile(ReadOut::Type RO):E(0.),CellID(-1),ROtype(RO),TOA(0.),lTPr(0.),lTrBit(0){}
0016   virtual ~Tile(){}
0017   
0018   TString       GetAssemblyID             (void) const;
0019   int           GetCellID                 (void) const;
0020   int           GetCol                    (void) const;
0021   double        GetE                      (void) const;
0022   int           GetLayer                  (void) const;
0023   int           GetRch                    (void) const;
0024   TString       GetROClassName            (void) const;
0025   int           GetRow                    (void) const;
0026   int           GetRU                     (void) const;
0027   double        GetTOA                    (void) const;
0028   double        GetX                      (void) const;
0029   double        GetY                      (void) const;
0030   double        GetZ                      (void) const;
0031   double        GetLocalTriggerPrimitive  (void) const;
0032   unsigned char GetLocalTriggerBit        (void) const;
0033   
0034   void    SetCellID                 (int);
0035   void    SetE                      (double);
0036   void    SetROtype                 (ReadOut::Type);
0037   void    SetTOA                    (double);
0038   void    SetLocalTriggerPrimitive  (double);
0039   void    SetLocalTriggerBit        (unsigned char);
0040   
0041   
0042  protected:
0043   double           E;//energy deposited in MIP equivalent
0044   int              CellID;
0045   ReadOut::Type    ROtype;    //Readout unit
0046   double           TOA;
0047   double           lTPr;        // local trigger primitive
0048   unsigned char    lTrBit;      // local trigger bit
0049   
0050   ClassDef(Tile,2)
0051 
0052 };
0053 
0054 
0055 #endif