![]() |
ATLAS Offline Software
|
Service for creating and interpreting LAr readout modules identifiers. More...
#include <LArReadoutModuleService.h>
Public Member Functions | |
~LArReadoutModuleService () | |
destructor More... | |
Static Public Member Functions | |
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 barrel , 1 end-cap pos_neg : 0 negative eta side (C side) , 1 positive eta side (A side) em_hec_fcal : 0 em , 1 hec, 2 FCAL rosId : 0 -> 27 (EMB), 0 -> 17 (EMEC), 0 -> 2 (HEC), 0 -> 1 (FCAL) rodFragId : 0 -> 223 (EMB), 0 -> 137 (EMEC), 0 -> 23 (HEC), 0 -> 13 (FCAL) rodCrate : 1 -> 4 (EMB), 1 -> 3 (EMEC), 1 (HEC), 1 (FCAL) rodSlot : 1 -> 14 (EMB), 1 -> 13 (EMEC), 1 -> 6 (HEC), 1 -> 4 (FCAL) (reference: xls table by Fred Wickens) More... | |
static int | atlas_tb (const HWIdentifier &id) |
return 0 for ATLAS , 1 for Test Beam More... | |
static int | barrel_ec (const HWIdentifier &id) |
return location (0: barrel or 1: end cap ) More... | |
static int | pos_neg (const HWIdentifier &id) |
return side positive side : 1 negative side : 0 More... | |
static int | em_hec_fcal (const HWIdentifier &id) |
return subdetector em : 0, hec : 1, fcal : 2 More... | |
static int | subDet (const HWIdentifier &id) |
return sub-detector identifier More... | |
static int | robFragId (const HWIdentifier &id) |
return ROB fragment identifier ( == ROL == RODFrag identifier ) More... | |
static int | rol (const HWIdentifier &id) |
return ROL identifier ( == RODFrag == ROBFrag identifier ) More... | |
static int | rosId (const HWIdentifier &id) |
return ROS identifier More... | |
static int | rodFragId (const HWIdentifier &id) |
return ROD fragment identifier ( == ROL == ROB identifier ) More... | |
static int | rodCrate (const HWIdentifier &id) |
return ROD crate number More... | |
static int | rodSlot (const HWIdentifier &id) |
return ROD slot number More... | |
static std::string | cnvToString (const HWIdentifier &id) |
convert a HWIdentifier into a STL string More... | |
static std::string | cnvToStringTDAQ (const HWIdentifier &id) |
convert a HWIdentifier into a STL string, TDAQ convention for sub-detector numbering More... | |
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) |
Static Private Attributes | |
static const unsigned int | m_atlas_tb = 1 |
static const unsigned int | m_barrel_ec = 2 |
static const unsigned int | m_pos_neg = 4 |
static const unsigned int | m_emhf = 8 |
static const unsigned int | s_rosId = 32 |
static const unsigned int | s_rodFragId = 1024 |
static const unsigned int | s_rodCrate = 262144 |
static const unsigned int | s_rodSlot = 1048576 |
static const int | s_LAR_EM_BARREL_A_SIDE = 0x41 |
static const int | s_LAR_EM_BARREL_C_SIDE = 0x42 |
static const int | s_LAR_EM_ENDCAP_A_SIDE = 0x43 |
static const int | s_LAR_EM_ENDCAP_C_SIDE = 0x44 |
static const int | s_LAR_HAD_ENDCAP_A_SIDE = 0x45 |
static const int | s_LAR_HAD_ENDCAP_C_SIDE = 0x46 |
static const int | s_LAR_FCAL_A_SIDE = 0x47 |
static const int | s_LAR_FCAL_C_SIDE = 0x48 |
Service for creating and interpreting LAr readout modules identifiers.
Definition at line 20 of file LArReadoutModuleService.h.
|
inline |
|
static |
return 0 for ATLAS , 1 for Test Beam
Definition at line 146 of file LArReadoutModuleService.cxx.
|
static |
return location (0: barrel or 1: end cap )
Definition at line 150 of file LArReadoutModuleService.cxx.
|
static |
Definition at line 60 of file LArReadoutModuleService.cxx.
|
static |
convert a HWIdentifier into a STL string
Definition at line 225 of file LArReadoutModuleService.cxx.
|
static |
convert a HWIdentifier into a STL string, TDAQ convention for sub-detector numbering
Definition at line 235 of file LArReadoutModuleService.cxx.
|
static |
create a HWIdentifier
valid parameter values
atlas_tb : 0 atlas , 1 test beam
barrel_ec : 0 barrel , 1 end-cap
pos_neg : 0 negative eta side (C side) , 1 positive eta side (A side)
em_hec_fcal : 0 em , 1 hec, 2 FCAL
rosId : 0 -> 27 (EMB), 0 -> 17 (EMEC), 0 -> 2 (HEC), 0 -> 1 (FCAL) rodFragId : 0 -> 223 (EMB), 0 -> 137 (EMEC), 0 -> 23 (HEC), 0 -> 13 (FCAL) rodCrate : 1 -> 4 (EMB), 1 -> 3 (EMEC), 1 (HEC), 1 (FCAL) rodSlot : 1 -> 14 (EMB), 1 -> 13 (EMEC), 1 -> 6 (HEC), 1 -> 4 (FCAL)
(reference: xls table by Fred Wickens)
Creates LArReadoutModuleID from explicit ReadoutModule descriptors.
Throw a LArID_Exception if one parameter is out of range.
// usage example
try { myCablingService->createLArReadoutModuleID( 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0) ; } catch( LArID_Exception & except ) { ... }
Definition at line 35 of file LArReadoutModuleService.cxx.
|
static |
return subdetector
em : 0, hec : 1, fcal : 2
Definition at line 158 of file LArReadoutModuleService.cxx.
|
static |
return side
positive side : 1
negative side : 0
Definition at line 154 of file LArReadoutModuleService.cxx.
|
static |
return ROB fragment identifier ( == ROL == RODFrag identifier )
Definition at line 199 of file LArReadoutModuleService.cxx.
|
static |
return ROD crate number
Definition at line 215 of file LArReadoutModuleService.cxx.
|
static |
return ROD fragment identifier ( == ROL == ROB identifier )
Definition at line 211 of file LArReadoutModuleService.cxx.
|
static |
return ROD slot number
Definition at line 220 of file LArReadoutModuleService.cxx.
|
static |
return ROL identifier ( == RODFrag == ROBFrag identifier )
Definition at line 203 of file LArReadoutModuleService.cxx.
|
static |
return ROS identifier
Definition at line 207 of file LArReadoutModuleService.cxx.
|
static |
|
staticprivate |
Definition at line 128 of file LArReadoutModuleService.h.
|
staticprivate |
Definition at line 129 of file LArReadoutModuleService.h.
|
staticprivate |
Definition at line 133 of file LArReadoutModuleService.h.
|
staticprivate |
Definition at line 130 of file LArReadoutModuleService.h.
|
staticprivate |
Definition at line 139 of file LArReadoutModuleService.h.
|
staticprivate |
Definition at line 140 of file LArReadoutModuleService.h.
|
staticprivate |
Definition at line 141 of file LArReadoutModuleService.h.
|
staticprivate |
Definition at line 142 of file LArReadoutModuleService.h.
|
staticprivate |
Definition at line 145 of file LArReadoutModuleService.h.
|
staticprivate |
Definition at line 146 of file LArReadoutModuleService.h.
|
staticprivate |
Definition at line 143 of file LArReadoutModuleService.h.
|
staticprivate |
Definition at line 144 of file LArReadoutModuleService.h.
|
staticprivate |
Definition at line 136 of file LArReadoutModuleService.h.
|
staticprivate |
Definition at line 135 of file LArReadoutModuleService.h.
|
staticprivate |
Definition at line 137 of file LArReadoutModuleService.h.
|
staticprivate |
Definition at line 134 of file LArReadoutModuleService.h.