Back to home page

EIC code displayed by LXR

 
 

    


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

0001 #include "Tile.h"
0002 
0003 ClassImp(Tile);
0004 
0005 double Tile::GetE(void)const {
0006   return E;
0007 }
0008 
0009 int Tile::GetCellID(void)const{
0010   return CellID;
0011 }
0012 
0013 int Tile::GetCol(void) const{
0014   Setup* setup=Setup::GetInstance();
0015   if(!setup->IsInit()) return -999;
0016   else return setup->GetColumn(CellID);
0017 }
0018 
0019 int Tile::GetLayer(void) const{
0020   Setup* setup=Setup::GetInstance();
0021   if(!setup->IsInit()) return -999;
0022   else return setup->GetLayer(CellID);
0023 }
0024 
0025 int Tile::GetRU() const{
0026   Setup* setup=Setup::GetInstance();
0027   if(!setup->IsInit()) return -999;
0028   else return setup->GetROunit(CellID);
0029 }
0030 TString Tile::GetROClassName()const{
0031   switch(ROtype){
0032   case ReadOut::Type::Hgcroc:
0033     return "Tile::Hgcroc";
0034   case ReadOut::Type::Caen:
0035     return "Tile::Caen";
0036   default:
0037     return "Tile::Undefined";
0038   }
0039 }
0040 
0041 int Tile::GetRch() const{
0042   Setup* setup=Setup::GetInstance();
0043   if(!setup->IsInit()) return -999;
0044   else return setup->GetROchannel(CellID);
0045 }
0046 
0047 int Tile::GetRow() const{
0048   Setup* setup=Setup::GetInstance();
0049   if(!setup->IsInit()) return -999;
0050   else return setup->GetRow(CellID);
0051 }
0052 
0053 TString Tile::GetAssemblyID() const{
0054   Setup* setup=Setup::GetInstance();
0055   if(!setup->IsInit()) return "Undefined";
0056   else return setup->GetAssemblyID(CellID);
0057 }
0058 
0059 double Tile::GetX()const{
0060   Setup* setup=Setup::GetInstance();
0061   if(!setup->IsInit()) return -999.;
0062   else return setup->GetX(CellID);
0063 }
0064 
0065 double Tile::GetY() const{
0066   Setup* setup=Setup::GetInstance();
0067   if(!setup->IsInit()) return -999.;
0068   else return setup->GetY(CellID);
0069 }
0070 
0071 double Tile::GetZ() const{
0072   Setup* setup=Setup::GetInstance();
0073   if(!setup->IsInit()) return -999.;
0074   else return setup->GetZ(CellID);
0075 }
0076 
0077 double Tile::GetTOA()const{
0078   return TOA;
0079 }
0080 
0081 double Tile::GetLocalTriggerPrimitive() const{
0082   return lTPr;
0083 }
0084 
0085 unsigned char Tile::GetLocalTriggerBit() const{
0086   return lTrBit;
0087 }
0088 
0089 void Tile::SetE(double e){
0090   E=e;
0091 }
0092 
0093 void Tile::SetCellID(int i){
0094   //Shall we make some checks against setup?
0095   CellID=i;
0096 }
0097 
0098 void Tile::SetROtype(ReadOut::Type i){
0099   ROtype=i;
0100 }
0101 
0102 void Tile::SetTOA(double t){
0103   TOA=t;
0104 }
0105 
0106 void Tile::SetLocalTriggerPrimitive(double tr){
0107   lTPr=tr;
0108 }
0109 
0110 void Tile::SetLocalTriggerBit(unsigned char tr){
0111   lTrBit=tr;
0112 }