![]() |
ATLAS Offline Software
|
Base class for calo ID helper converters. More...
#include <CaloIDHelper_IDDetDescrCnv.h>
Inherits DetDescrConverter.
Inherited by CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< CaloCell_ID >, CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< CaloCell_SuperCell_ID >, CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< CaloDM_ID >, CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< CaloLVL1_ID >, CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< GTower_ID >, CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< JTower_ID >, CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< LArEM_ID >, CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< LArEM_SuperCell_ID >, CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< LArFCAL_ID >, CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< LArFCAL_SuperCell_ID >, CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< LArHEC_ID >, CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< LArHEC_SuperCell_ID >, CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< LArMiniFCAL_ID >, CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< Tile_SuperCell_ID >, CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< TileID >, CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< TileTBID >, CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< TTOnlineID >, and CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< T >.
Public Member Functions | |
| virtual StatusCode | createObj (IOpaqueAddress *pAddr, DataObject *&pObj) |
| Called by the converter infrastructure to create an object. | |
| virtual long int | repSvcType () const |
| Return the service type. | |
| CaloIDHelper_IDDetDescrCnv (const CLID &clid, ISvcLocator *svcloc) | |
| Constructor. | |
| virtual StatusCode | createHelper (const std::string &helperKey, IdHelper *&idhelper, DataObject *&pObj)=0 |
| Create the helper object. | |
| virtual StatusCode | fillObjRefs (IOpaqueAddress *pAddr, DataObject *pObj) |
| virtual StatusCode | createRep (DataObject *pObj, IOpaqueAddress *&pAddr) |
| virtual StatusCode | fillRepRefs (IOpaqueAddress *pAddr, DataObject *pObj) |
| const ServiceHandle< StoreGateSvc > & | detStore () const |
| Handle to DetectorStore. | |
| void | addTrack (TIDA::Track *t) |
| const std::vector< TIDA::Track * > & | tracks () const |
| void | clear () |
| void | selectTracks (const TrigInDetTrackCollection *trigtracks) |
| void | selectTracks (const Rec::TrackParticleContainer *trigtracks) |
| void | selectTracks (const Analysis::MuonContainer *muontracks) |
| bool | msgLvl (const MSG::Level lvl) const |
| Test the output level. | |
| MsgStream & | msg () const |
| The standard message stream. | |
| MsgStream & | msg (const MSG::Level lvl) const |
| The standard message stream. | |
| void | setLevel (MSG::Level lvl) |
| Change the current logging level. | |
Static Public Member Functions | |
| static long | storageType () |
| Storage type for all DetDescrConverters. | |
Protected Member Functions | |
| double | phiCorr (double phi) |
| void | ipCorr (double d0, double z0, double &d0c, double &z0c, double phi0, double eta, double pt) |
Protected Attributes | |
| double | m_beamX |
| double | m_beamY |
| double | m_beamZ |
| std::vector< TIDA::Track * > | m_tracks |
Private Member Functions | |
| void | initMessaging () const |
| Initialize our message level and MessageSvc. | |
Private Attributes | |
| ServiceHandle< StoreGateSvc > | m_detStore |
| std::string | m_nm |
| Message source name. | |
| boost::thread_specific_ptr< MsgStream > | m_msg_tls |
| MsgStream instance (a std::cout like with print-out levels) | |
| std::atomic< IMessageSvc * > | m_imsg { nullptr } |
| MessageSvc pointer. | |
| std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
| Current logging level. | |
| std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
| Messaging initialized (initMessaging) | |
Base class for calo ID helper converters.
This class most of the boilerplate needed toe the converters, and also contains the code for initializing the helper.
The abstract virtual function createHelper is used to actually create the helper and to initialize the DataObject.
Definition at line 55 of file CaloIDHelper_IDDetDescrCnv.h.
| CaloIdCnv::CaloIDHelper_IDDetDescrCnv::CaloIDHelper_IDDetDescrCnv | ( | const CLID & | clid, |
| ISvcLocator * | svcloc ) |
Constructor.
Definition at line 89 of file CaloIDHelper_IDDetDescrCnv.cxx.
|
inlineinherited |
Definition at line 45 of file Converter.h.
|
inlineinherited |
Definition at line 53 of file Converter.h.
|
pure virtual |
Create the helper object.
| helperKey | StoreGate key of the helper. |
| idhelper[out] | Set to a pointer to the new helper. |
| pObj[out] | Set to a reference to the created helper. |
Implemented in CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< T >, CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< CaloCell_ID >, CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< CaloCell_SuperCell_ID >, CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< CaloDM_ID >, CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< CaloLVL1_ID >, CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< GTower_ID >, CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< JTower_ID >, CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< LArEM_ID >, CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< LArEM_SuperCell_ID >, CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< LArFCAL_ID >, CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< LArFCAL_SuperCell_ID >, CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< LArHEC_ID >, CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< LArHEC_SuperCell_ID >, CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< LArMiniFCAL_ID >, CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< Tile_SuperCell_ID >, CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< TileID >, CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< TileTBID >, and CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< TTOnlineID >.
|
virtual |
Called by the converter infrastructure to create an object.
| pAddr | Address of the object to create. |
| pObj[out] | Set to a reference to the created helper. |
Implements DetDescrConverter.
Definition at line 31 of file CaloIDHelper_IDDetDescrCnv.cxx.
|
virtualinherited |
Definition at line 20 of file DetDescrConverter.cxx.
|
inlineinherited |
Handle to DetectorStore.
Definition at line 33 of file DetDescrConverter.h.
|
virtualinherited |
Definition at line 15 of file DetDescrConverter.cxx.
|
virtualinherited |
Definition at line 25 of file DetDescrConverter.cxx.
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
|
inlineprotectedinherited |
Definition at line 257 of file Converter.h.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 163 of file AthMessaging.h.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 178 of file AthMessaging.h.
|
inlineinherited |
Test the output level.
| lvl | The message level to test against |
| true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
|
inlineprotectedinherited |
Definition at line 248 of file Converter.h.
|
virtual |
Return the service type.
Required by the base class.
Definition at line 78 of file CaloIDHelper_IDDetDescrCnv.cxx.
|
inlineinherited |
Definition at line 177 of file Converter.h.
|
inlineinherited |
Definition at line 111 of file Converter.h.
|
inlineinherited |
Definition at line 56 of file Converter.h.
|
inherited |
Change the current logging level.
Use this rather than msg().setLevel() for proper operation with MT.
Definition at line 28 of file AthMessaging.cxx.
|
staticinherited |
Storage type for all DetDescrConverters.
Definition at line 30 of file DetDescrConverter.cxx.
|
inlineinherited |
Definition at line 50 of file Converter.h.
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
|
protectedinherited |
Definition at line 320 of file Converter.h.
|
protectedinherited |
Definition at line 320 of file Converter.h.
|
protectedinherited |
Definition at line 320 of file Converter.h.
|
privateinherited |
Definition at line 42 of file DetDescrConverter.h.
|
mutableprivateinherited |
|
mutableprivateinherited |
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
|
privateinherited |
Message source name.
Definition at line 129 of file AthMessaging.h.
|
protectedinherited |
Definition at line 321 of file Converter.h.