ATLAS Offline Software
LArReadoutModuleService.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //Dear emacs, this is -*-c++-*-
6 
7 #ifndef ILARREADOUTMODULESERVICE_H
8 #define ILARREADOUTMODULESERVICE_H
9 
10 #include <string>
12 
21 
22 public:
23 
52 
53 
57  static int atlas_tb( const HWIdentifier & id) ;
58 
62  static int barrel_ec(const HWIdentifier & id) ;
63 
69  static int pos_neg(const HWIdentifier & id) ;
70 
75  static int em_hec_fcal(const HWIdentifier & id) ;
76 
77 
78 
82  static int subDet(const HWIdentifier & id) ;
83 
87  static int robFragId(const HWIdentifier & id) ;
88 
92  static int rol(const HWIdentifier & id) ;
93 
97  static int rosId(const HWIdentifier & id) ;
98 
102  static int rodFragId(const HWIdentifier & id) ;
103 
107  static int rodCrate(const HWIdentifier & id) ;
108 
112  static int rodSlot(const HWIdentifier & id) ;
113 
117  static std::string cnvToString(const HWIdentifier & id) ;
121  static std::string cnvToStringTDAQ(const HWIdentifier & id) ;
122 
123  static std::string checkReadoutModuleValues(int atlas_tb, int barrel_ec, int pos_neg, int em_hec_fcal, int rosId, int rodFragId, int rodCrate, int rodSlot);
126 
127  private:
128  static const unsigned int m_atlas_tb ;
129  static const unsigned int m_barrel_ec ;
130  static const unsigned int m_pos_neg ;
131 
132  // for LArReadoutModuleID
133  static const unsigned int m_emhf ;
134  static const unsigned int s_rosId ;
135  static const unsigned int s_rodFragId ;
136  static const unsigned int s_rodCrate ;
137  static const unsigned int s_rodSlot ;
138 
139  static const int s_LAR_EM_BARREL_A_SIDE ;
140  static const int s_LAR_EM_BARREL_C_SIDE ;
141  static const int s_LAR_EM_ENDCAP_A_SIDE ;
142  static const int s_LAR_EM_ENDCAP_C_SIDE ;
143  static const int s_LAR_HAD_ENDCAP_A_SIDE ;
144  static const int s_LAR_HAD_ENDCAP_C_SIDE ;
145  static const int s_LAR_FCAL_A_SIDE ;
146  static const int s_LAR_FCAL_C_SIDE ;
147 
148 
149 };
150 #endif //LARREADOUTMODULESERVICE_H
LArReadoutModuleService::~LArReadoutModuleService
~LArReadoutModuleService()
destructor
Definition: LArReadoutModuleService.h:125
LArReadoutModuleService::barrel_ec
static int barrel_ec(const HWIdentifier &id)
return location (0: barrel or 1: end cap )
Definition: LArReadoutModuleService.cxx:150
LArReadoutModuleService::s_rodFragId
static const unsigned int s_rodFragId
Definition: LArReadoutModuleService.h:135
LArReadoutModuleService::m_pos_neg
static const unsigned int m_pos_neg
Definition: LArReadoutModuleService.h:130
LArReadoutModuleService::createReadoutModuleID
static HWIdentifier createReadoutModuleID(int atlas_tb, int barrel_ec, int pos_neg, int em_hec_fcal, int rosId, int rodFragId, int rodCrate, int rodSlot)
create a HWIdentifier valid parameter values atlas_tb : 0 atlas , 1 test beam barrel_ec : 0 bar...
Definition: LArReadoutModuleService.cxx:35
LArReadoutModuleService::subDet
static int subDet(const HWIdentifier &id)
return sub-detector identifier
Definition: LArReadoutModuleService.cxx:162
LArReadoutModuleService::rodFragId
static int rodFragId(const HWIdentifier &id)
return ROD fragment identifier ( == ROL == ROB identifier )
Definition: LArReadoutModuleService.cxx:211
LArReadoutModuleService::s_rodSlot
static const unsigned int s_rodSlot
Definition: LArReadoutModuleService.h:137
LArReadoutModuleService::cnvToStringTDAQ
static std::string cnvToStringTDAQ(const HWIdentifier &id)
convert a HWIdentifier into a STL string, TDAQ convention for sub-detector numbering
Definition: LArReadoutModuleService.cxx:235
LArReadoutModuleService::m_barrel_ec
static const unsigned int m_barrel_ec
Definition: LArReadoutModuleService.h:129
HWIdentifier
Definition: HWIdentifier.h:13
LArReadoutModuleService::m_emhf
static const unsigned int m_emhf
Definition: LArReadoutModuleService.h:133
LArReadoutModuleService::s_LAR_FCAL_C_SIDE
static const int s_LAR_FCAL_C_SIDE
Definition: LArReadoutModuleService.h:146
LArReadoutModuleService
Service for creating and interpreting LAr readout modules identifiers.
Definition: LArReadoutModuleService.h:20
LArReadoutModuleService::s_LAR_EM_BARREL_A_SIDE
static const int s_LAR_EM_BARREL_A_SIDE
Definition: LArReadoutModuleService.h:139
LArReadoutModuleService::s_LAR_FCAL_A_SIDE
static const int s_LAR_FCAL_A_SIDE
Definition: LArReadoutModuleService.h:145
LArReadoutModuleService::pos_neg
static int pos_neg(const HWIdentifier &id)
return side positive side : 1 negative side : 0
Definition: LArReadoutModuleService.cxx:154
LArReadoutModuleService::rodCrate
static int rodCrate(const HWIdentifier &id)
return ROD crate number
Definition: LArReadoutModuleService.cxx:215
LArReadoutModuleService::robFragId
static int robFragId(const HWIdentifier &id)
return ROB fragment identifier ( == ROL == RODFrag identifier )
Definition: LArReadoutModuleService.cxx:199
LArReadoutModuleService::s_rodCrate
static const unsigned int s_rodCrate
Definition: LArReadoutModuleService.h:136
HWIdentifier.h
LArReadoutModuleService::s_LAR_HAD_ENDCAP_A_SIDE
static const int s_LAR_HAD_ENDCAP_A_SIDE
Definition: LArReadoutModuleService.h:143
LArReadoutModuleService::rol
static int rol(const HWIdentifier &id)
return ROL identifier ( == RODFrag == ROBFrag identifier )
Definition: LArReadoutModuleService.cxx:203
LArReadoutModuleService::atlas_tb
static int atlas_tb(const HWIdentifier &id)
return 0 for ATLAS , 1 for Test Beam
Definition: LArReadoutModuleService.cxx:146
LArReadoutModuleService::checkReadoutModuleValues
static std::string checkReadoutModuleValues(int atlas_tb, int barrel_ec, int pos_neg, int em_hec_fcal, int rosId, int rodFragId, int rodCrate, int rodSlot)
Definition: LArReadoutModuleService.cxx:60
LArReadoutModuleService::s_LAR_EM_BARREL_C_SIDE
static const int s_LAR_EM_BARREL_C_SIDE
Definition: LArReadoutModuleService.h:140
LArReadoutModuleService::em_hec_fcal
static int em_hec_fcal(const HWIdentifier &id)
return subdetector em : 0, hec : 1, fcal : 2
Definition: LArReadoutModuleService.cxx:158
LArReadoutModuleService::s_LAR_HAD_ENDCAP_C_SIDE
static const int s_LAR_HAD_ENDCAP_C_SIDE
Definition: LArReadoutModuleService.h:144
LArReadoutModuleService::rodSlot
static int rodSlot(const HWIdentifier &id)
return ROD slot number
Definition: LArReadoutModuleService.cxx:220
LArReadoutModuleService::s_rosId
static const unsigned int s_rosId
Definition: LArReadoutModuleService.h:134
LArReadoutModuleService::cnvToString
static std::string cnvToString(const HWIdentifier &id)
convert a HWIdentifier into a STL string
Definition: LArReadoutModuleService.cxx:225
LArReadoutModuleService::s_LAR_EM_ENDCAP_A_SIDE
static const int s_LAR_EM_ENDCAP_A_SIDE
Definition: LArReadoutModuleService.h:141
LArReadoutModuleService::s_LAR_EM_ENDCAP_C_SIDE
static const int s_LAR_EM_ENDCAP_C_SIDE
Definition: LArReadoutModuleService.h:142
LArReadoutModuleService::m_atlas_tb
static const unsigned int m_atlas_tb
Definition: LArReadoutModuleService.h:128
LArReadoutModuleService::rosId
static int rosId(const HWIdentifier &id)
return ROS identifier
Definition: LArReadoutModuleService.cxx:207