![]() |
ATLAS Offline Software
|
Tool providing the mapping of the online and offline TriggerTower identifiers as well as the TT-cells mapping. More...
#include <CaloTriggerTowerService.h>
Public Member Functions | |
| CaloTriggerTowerService (const std::string &type, const std::string &name, const IInterface *parent) | |
| constructor | |
| virtual StatusCode | initialize () override |
| HWIdentifier | createTTChannelID (const Identifier &id, bool bQuiet=false) const |
| create a TT HWIdentifier from a TT Identifier | |
| Identifier | cnvToIdentifier (const HWIdentifier &id, bool bQuiet=false) const |
| create a TT Identifier from a TT HWIdentifier | |
| L1CaloCoolChannelId | createL1CoolChannelId (const HWIdentifier &id) const |
| create a CoolChannelId (used by TDAQ framework) from a HWIdentifier | |
| HWIdentifier | cnvCoolChannelIdToHWID (const L1CaloCoolChannelId &coolChannelId) const |
| create an HWIdentifier from an TDAQ CoolChannelId | |
| L1CaloCoolChannelId | cnvRxIdToCoolChannelId (const L1CaloRxCoolChannelId &rxCoolChannelId) const |
| returns a TDAQ CoolChannelId corresponding to a L1CaloRxCoolChannelId | |
| std::vector< L1CaloRxCoolChannelId > | cnvCoolChannelIdToRxId (const L1CaloCoolChannelId &ppmCoolChannelId) const |
| returns a vector of L1CaloRxCoolChannelId corresponding to a L1CaloCoolChannelId | |
| unsigned int | pos_neg (const HWIdentifier &id) const |
| return 0 for z<0 channels and 1 for z>0 channels | |
| unsigned int | em_had (const HWIdentifier &id) const |
| return the corresponding sampling of channelId: | |
| unsigned int | barrel_endcap_fcal (const HWIdentifier &id) const |
| To know if a channel belongs to the barrel, end cap or fcal parts. | |
| unsigned int | module_type (const HWIdentifier &id) const |
| To get the type of the module connected to the channel: | |
| std::vector< Identifier > | createCellIDvecTT (const Identifier &id) const |
| Return a vector of offline Identifiers (corresponding helpers = LArEM_ID, LArHEC_ID, LArFCAL_ID) for a TT offline id (helper=CaloLVL1_ID) -> all layers together (Rem: equivalent to above extTt=0) The call is formarded to the DB object LArTTCellMap. | |
| std::vector< Identifier > | createCellIDvecLayer (const Identifier &id) const |
| Return a vector of offline Identifiers (corresponding helpers = LArEM_ID, LArHEC_ID, LArFCAL_ID) for a TT-layer offline id (helper=CaloLVL1_ID) -> one single layer (Rem: equivalent to above extTt!=0) The call is formarded to the DB object LArTTCellMap. | |
| Identifier | whichTTID (const Identifier &id) const |
| return the offline id (CaloLVL1_ID) of the TT to which a cell id (CaloCell_ID) belongs The call is formarded to the DB object LArTTCellMap | |
| bool | is_in_lvl1 (const Identifier &id) const |
| return true if the cell is in the lvl1 sums; some channels mapped to TT are only in HLT (last HEC compartment and last cells of barrel PS) | |
| ServiceHandle< StoreGateSvc > & | evtStore () |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. | |
| const ServiceHandle< StoreGateSvc > & | detStore () const |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. | |
| virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. | |
| virtual StatusCode | sysStart () override |
| Handle START transition. | |
| virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. | |
| virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. | |
| Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T, V, H > &t) |
| void | updateVHKA (Gaudi::Details::PropertyBase &) |
| MsgStream & | msg () const |
| bool | msgLvl (const MSG::Level lvl) const |
Static Public Member Functions | |
| static const InterfaceID & | interfaceID () |
| Retrieve interface ID. | |
Protected Member Functions | |
| void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
| remove all handles from I/O resolution | |
| std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > | renounce (T &h) |
| void | extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps) |
| Add StoreName to extra input/output deps as needed. | |
Private Types | |
| typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
| const LArTTCellMap * | getTTCellMap () const |
| const CaloTTOnOffIdMap * | getCaloTTOnOffIdMap () const |
| const CaloTTOnAttrIdMap * | getCaloTTOnAttrIdMap () const |
| const CaloTTPpmRxIdMap * | getCaloTTPpmRxIdMap () const |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> | |
Private Attributes | |
| const LArOnlineID * | m_onlineHelper {nullptr} |
| pointer to the LAr Online Id helper | |
| const LArEM_ID * | m_emHelper {nullptr} |
| pointer to the LArEM offline Id helper | |
| const CaloLVL1_ID * | m_lvl1Helper {nullptr} |
| pointer to the Calo TT offline Id helper | |
| const TTOnlineID * | m_ttonlineHelper {nullptr} |
| pointer to the Calo TT online Id helper | |
| CxxUtils::CachedPointer< const LArTTCellMap > | m_TTCellMap |
| CxxUtils::CachedPointer< const CaloTTOnOffIdMap > | m_caloTTOnOffIdMap |
| CxxUtils::CachedPointer< const CaloTTOnAttrIdMap > | m_caloTTOnAttrIdMap |
| CxxUtils::CachedPointer< const CaloTTPpmRxIdMap > | m_caloTTPpmRxIdMap |
| Gaudi::Property< std::string > | m_TTCellMapKey {this, "LArTTCellMapKey", "LArTTCellMapAtlas"} |
| Gaudi::Property< std::string > | m_caloTTOnOffIdMapKey {this, "CaloTTOnOffIdMapKey", "CaloTTOnOffIdMapAtlas"} |
| Gaudi::Property< std::string > | m_caloTTOnAttrIdMapKey {this, "CaloTTOnAttrIdMapKey", "CaloTTOnAttrIdMapAtlas"} |
| Gaudi::Property< std::string > | m_caloTTPpmRxIdMapKey {this, "CaloTTPpmRxIdMapKey", "CaloTTPpmRxIdMapAtlas"} |
| StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) | |
| StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) | |
| std::vector< SG::VarHandleKeyArray * > | m_vhka |
| bool | m_varHandleArraysDeclared |
Tool providing the mapping of the online and offline TriggerTower identifiers as well as the TT-cells mapping.
Definition at line 45 of file CaloTriggerTowerService.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
| CaloTriggerTowerService::CaloTriggerTowerService | ( | const std::string & | type, |
| const std::string & | name, | ||
| const IInterface * | parent ) |
constructor
Definition at line 19 of file CaloTriggerTowerService.cxx.
| unsigned int CaloTriggerTowerService::barrel_endcap_fcal | ( | const HWIdentifier & | id | ) | const |
To know if a channel belongs to the barrel, end cap or fcal parts.
Definition at line 169 of file CaloTriggerTowerService.cxx.
| HWIdentifier CaloTriggerTowerService::cnvCoolChannelIdToHWID | ( | const L1CaloCoolChannelId & | coolChannelId | ) | const |
create an HWIdentifier from an TDAQ CoolChannelId
Definition at line 256 of file CaloTriggerTowerService.cxx.
| std::vector< L1CaloRxCoolChannelId > CaloTriggerTowerService::cnvCoolChannelIdToRxId | ( | const L1CaloCoolChannelId & | ppmCoolChannelId | ) | const |
returns a vector of L1CaloRxCoolChannelId corresponding to a L1CaloCoolChannelId
Definition at line 146 of file CaloTriggerTowerService.cxx.
| L1CaloCoolChannelId CaloTriggerTowerService::cnvRxIdToCoolChannelId | ( | const L1CaloRxCoolChannelId & | rxCoolChannelId | ) | const |
returns a TDAQ CoolChannelId corresponding to a L1CaloRxCoolChannelId
Definition at line 122 of file CaloTriggerTowerService.cxx.
| Identifier CaloTriggerTowerService::cnvToIdentifier | ( | const HWIdentifier & | id, |
| bool | bQuiet = false ) const |
create a TT Identifier from a TT HWIdentifier
Definition at line 93 of file CaloTriggerTowerService.cxx.
| std::vector< Identifier > CaloTriggerTowerService::createCellIDvecLayer | ( | const Identifier & | id | ) | const |
Return a vector of offline Identifiers (corresponding helpers = LArEM_ID, LArHEC_ID, LArFCAL_ID) for a TT-layer offline id (helper=CaloLVL1_ID) -> one single layer (Rem: equivalent to above extTt!=0)
The call is formarded to the DB object LArTTCellMap.
Definition at line 308 of file CaloTriggerTowerService.cxx.
| std::vector< Identifier > CaloTriggerTowerService::createCellIDvecTT | ( | const Identifier & | id | ) | const |
Return a vector of offline Identifiers (corresponding helpers = LArEM_ID, LArHEC_ID, LArFCAL_ID) for a TT offline id (helper=CaloLVL1_ID) -> all layers together (Rem: equivalent to above extTt=0)
The call is formarded to the DB object LArTTCellMap.
Definition at line 272 of file CaloTriggerTowerService.cxx.
| L1CaloCoolChannelId CaloTriggerTowerService::createL1CoolChannelId | ( | const HWIdentifier & | id | ) | const |
create a CoolChannelId (used by TDAQ framework) from a HWIdentifier
Definition at line 230 of file CaloTriggerTowerService.cxx.
| HWIdentifier CaloTriggerTowerService::createTTChannelID | ( | const Identifier & | id, |
| bool | bQuiet = false ) const |
create a TT HWIdentifier from a TT Identifier
Definition at line 60 of file CaloTriggerTowerService.cxx.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
|
inlineinherited |
Definition at line 145 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 95 of file AthCommonDataStore.h.
| unsigned int CaloTriggerTowerService::em_had | ( | const HWIdentifier & | id | ) | const |
return the corresponding sampling of channelId:
Definition at line 184 of file CaloTriggerTowerService.cxx.
|
inlineinherited |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 85 of file AthCommonDataStore.h.
|
protectedinherited |
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
|
private |
Definition at line 419 of file CaloTriggerTowerService.cxx.
|
private |
Definition at line 407 of file CaloTriggerTowerService.cxx.
|
private |
Definition at line 431 of file CaloTriggerTowerService.cxx.
|
private |
Definition at line 395 of file CaloTriggerTowerService.cxx.
|
overridevirtual |
Definition at line 30 of file CaloTriggerTowerService.cxx.
|
overridevirtualinherited |
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
|
inlinestatic |
Retrieve interface ID.
Definition at line 49 of file CaloTriggerTowerService.h.
| bool CaloTriggerTowerService::is_in_lvl1 | ( | const Identifier & | id | ) | const |
return true if the cell is in the lvl1 sums;
some channels mapped to TT are only in HLT (last HEC compartment and last cells of barrel PS)
Definition at line 354 of file CaloTriggerTowerService.cxx.
| unsigned int CaloTriggerTowerService::module_type | ( | const HWIdentifier & | id | ) | const |
To get the type of the module connected to the channel:
Definition at line 213 of file CaloTriggerTowerService.cxx.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
overridevirtualinherited |
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
| unsigned int CaloTriggerTowerService::pos_neg | ( | const HWIdentifier & | id | ) | const |
return 0 for z<0 channels and 1 for z>0 channels
Definition at line 199 of file CaloTriggerTowerService.cxx.
|
inlineprotectedinherited |
Definition at line 380 of file AthCommonDataStore.h.
|
inlineprotectedinherited |
remove all handles from I/O resolution
Definition at line 364 of file AthCommonDataStore.h.
|
overridevirtualinherited |
Perform system initialization for an algorithm.
We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.
Reimplemented in asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and DerivationFramework::CfAthAlgTool.
|
overridevirtualinherited |
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
|
inlineinherited |
Definition at line 308 of file AthCommonDataStore.h.
| Identifier CaloTriggerTowerService::whichTTID | ( | const Identifier & | id | ) | const |
return the offline id (CaloLVL1_ID) of the TT to which a cell id (CaloCell_ID) belongs
The call is formarded to the DB object LArTTCellMap
Definition at line 327 of file CaloTriggerTowerService.cxx.
|
private |
Definition at line 184 of file CaloTriggerTowerService.h.
|
private |
Definition at line 189 of file CaloTriggerTowerService.h.
|
private |
Definition at line 183 of file CaloTriggerTowerService.h.
|
private |
Definition at line 188 of file CaloTriggerTowerService.h.
|
private |
Definition at line 185 of file CaloTriggerTowerService.h.
|
private |
Definition at line 190 of file CaloTriggerTowerService.h.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
private |
pointer to the LArEM offline Id helper
Definition at line 176 of file CaloTriggerTowerService.h.
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
private |
pointer to the Calo TT offline Id helper
Definition at line 178 of file CaloTriggerTowerService.h.
|
private |
pointer to the LAr Online Id helper
Definition at line 174 of file CaloTriggerTowerService.h.
|
private |
Definition at line 182 of file CaloTriggerTowerService.h.
|
private |
Definition at line 187 of file CaloTriggerTowerService.h.
|
private |
pointer to the Calo TT online Id helper
Definition at line 180 of file CaloTriggerTowerService.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.