![]() |
ATLAS Offline Software
|
#include <TesterModuleBase.h>
Public Types | |
using | DataDependency = SG::VarHandleKey * |
Public Member Functions | |
TesterModuleBase (MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl=MSG::Level::INFO) | |
virtual | ~TesterModuleBase ()=default |
bool | init () override final |
The init method checks whether the branch name has already registered to the MuonTree and tries then to add the branch to the tree --> return false if the branch has already been defined or the inclusion of the branch to the tree failed or the name of the branch is empty. More... | |
std::string | name () const override final |
Returns the name of the branch. More... | |
bool | initialized () const |
Returns whether the object has been initialized or not The outcome of the variable is bound to a successful call of the addToTree method. More... | |
TTree * | tree () override final |
Returns the underlying TTree object. More... | |
const TTree * | tree () const override final |
std::vector< DataDependency > | data_dependencies () override final |
Returns the data dependencies needed by the MuonTesterBranch. More... | |
bool | msgLvl (const MSG::Level lvl) const |
Test the output level. More... | |
MsgStream & | msg () const |
The standard message stream. More... | |
MsgStream & | msg (const MSG::Level lvl) const |
The standard message stream. More... | |
void | setLevel (MSG::Level lvl) |
Change the current logging level. More... | |
virtual bool | fill (const EventContext &ctx)=0 |
The fill method checks if enough information is provided such that the branch is cleared from the information of the prevoius event and in cases of that updates did no happen befure a default value is provided. More... | |
Static Public Member Functions | |
static std::string | eraseWhiteSpaces (const std::string &In) |
Protected Member Functions | |
const Muon::IMuonIdHelperSvc * | idHelperSvc () const |
const MuonGMR4::MuonDetectorManager * | getDetMgr () const |
const ActsGeometryContext & | getGeoCtx (const EventContext &ctx) const |
virtual bool | declare_keys ()=0 |
template<class T > | |
bool | addToTree (T &variable) |
Connects the Memory buffer with the TTree. More... | |
template<class Key > | |
bool | declare_dependency (Key &key) |
Declares the ReadHandle/ ReadCondHandleKey as data dependency of the algorithm. More... | |
MuonTesterTree & | parent () |
Returns the reference to the MuonTesterTree parent. More... | |
Private Member Functions | |
void | initMessaging () const |
Initialize our message level and MessageSvc. More... | |
Private Attributes | |
const MuonGMR4::MuonDetectorManager * | m_detMgr {} |
ServiceHandle< Muon::IMuonIdHelperSvc > | m_idHelperSvc {"Muon::MuonIdHelperSvc/MuonIdHelperSvc", name()} |
SG::ReadHandleKey< ActsGeometryContext > | m_geoCtxKey {"ActsAlignment"} |
TTree * | m_tree {nullptr} |
MuonTesterTree * | m_parent {nullptr} |
std::string | m_name {} |
bool | m_init {false} |
std::vector< DataDependency > | m_dependencies {} |
std::string | m_nm |
Message source name. More... | |
boost::thread_specific_ptr< MsgStream > | m_msg_tls |
MsgStream instance (a std::cout like with print-out levels) More... | |
std::atomic< IMessageSvc * > | m_imsg { nullptr } |
MessageSvc pointer. More... | |
std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
Current logging level. More... | |
std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
Messaging initialized (initMessaging) More... | |
Definition at line 15 of file TesterModuleBase.h.
|
inherited |
Definition at line 39 of file IMuonTesterBranch.h.
MuonValR4::TesterModuleBase::TesterModuleBase | ( | MuonTesterTree & | tree, |
const std::string & | grp_name, | ||
MSG::Level | msglvl = MSG::Level::INFO |
||
) |
Definition at line 11 of file TesterModuleBase.cxx.
|
virtualdefault |
|
protectedinherited |
Connects the Memory buffer with the TTree.
|
finaloverridevirtualinherited |
Returns the data dependencies needed by the MuonTesterBranch.
Implements MuonVal::IMuonTesterBranch.
Definition at line 61 of file MuonTesterBranch.cxx.
|
protectedinherited |
Declares the ReadHandle/ ReadCondHandleKey as data dependency of the algorithm.
|
protectedpure virtual |
|
staticinherited |
|
pure virtualinherited |
The fill method checks if enough information is provided such that the branch is cleared from the information of the prevoius event and in cases of that updates did no happen befure a default value is provided.
--> returns false if no update is called or the dummy value has not been defined
Implemented in TestMuonSF::MuonSFBranches, TestMuonSF::TriggerSFBranches, CP::IsoCorrectionTestHelper, MuonVal::EventInfoBranch, MuonValR4::MmClusterVariables, MuonValR4::RpcMeasurementVariables, MuonValR4::TgcStripVariables, MuonValR4::MdtDriftCircleVariables, MuonValR4::MdtTwinDriftCircleVariables, MuonPRDTest::MMPRDVariables, MuonPRDTest::sTGCPRDVariables, MuonPRDTest::SegmentVariables, MuonPRDTest::ParticleVariables, MuonValR4::SpacePointTesterModule, MuonPRDTest::RpcSDOVariables, MuonValR4::SimHitTester, MuonPRDTest::CSCRDOVariables, MuonPRDTest::MMDigitVariables, MuonPRDTest::TGCPRDVariables, MuonPRDTest::TGCRDOVariables, MuonPRDTest::CSCPRDVariables, MuonPRDTest::MMRDOVariables, MuonPRDTest::MMSDOVariables, MuonPRDTest::MuEntryVariables, MuonPRDTest::RpcDigitVariables, MuonPRDTest::sTgcDigitVariables, MuonPRDTest::sTGCRDOVariables, MuonPRDTest::sTgcSDOVariables, MuonPRDTest::TgcDigitVariables, MuonVal::EventHashBranch, MuonPRDTest::CscDigitVariables, MuonPRDTest::CscSDOVariables, MuonPRDTest::MdtDigitVariables, MuonPRDTest::MdtSDOVariables, MuonPRDTest::MDTSimHitVariables, MuonPRDTest::MMSimHitVariables, MuonPRDTest::sTGCSimHitVariables, MuonPRDTest::TgcSDOVariables, MuonPRDTest::RPCSimHitVariables, MuonPRDTest::CSCSimHitVariables, MuonPRDTest::TGCSimHitVariables, MuonPRDTest::TruthVariables, TestMuonSF::MuonReplicaBranches, MuonVal::BilateralLinkerBranch, MuonVal::IParticleFourMomBranch, MuonVal::VectorBranch< T >, MuonVal::VectorBranch< int8_t >, MuonVal::VectorBranch< uint32_t >, MuonVal::VectorBranch< int16_t >, MuonVal::VectorBranch< std::vector< int > >, MuonVal::VectorBranch< double >, MuonVal::VectorBranch< std::string >, MuonVal::VectorBranch< float >, MuonVal::VectorBranch< int >, MuonVal::VectorBranch< unsigned int >, MuonVal::VectorBranch< std::vector< short unsigned > >, MuonVal::VectorBranch< std::vector< unsigned char > >, MuonVal::VectorBranch< std::vector< T > >, MuonVal::VectorBranch< std::vector< short int > >, MuonVal::VectorBranch< short >, MuonVal::VectorBranch< uint8_t >, MuonVal::VectorBranch< unsigned short >, MuonVal::VectorBranch< unsigned char >, MuonVal::VectorBranch< dType >, MuonVal::VectorBranch< std::vector< unsigned short > >, MuonVal::VectorBranch< unsigned >, MuonVal::VectorBranch< uint16_t >, MuonVal::VectorBranch< char >, MuonVal::VectorBranch< bool >, MuonVal::VectorBranch< std::vector< unsigned > >, MuonVal::VectorBranch< uint >, MuonVal::VectorBranch< std::vector< int16_t > >, MuonVal::VectorBranch< std::vector< short > >, MuonVal::VectorBranch< std::vector< uint16_t > >, MuonVal::ScalarBranch< T >, MuonVal::ScalarBranch< Long64_t >, MuonVal::ScalarBranch< uint32_t >, MuonVal::ScalarBranch< int16_t >, MuonVal::ScalarBranch< double >, MuonVal::ScalarBranch< unsigned long long >, MuonVal::ScalarBranch< std::string >, MuonVal::ScalarBranch< float >, MuonVal::ScalarBranch< int >, MuonVal::ScalarBranch< unsigned int >, MuonVal::ScalarBranch< uint8_t >, MuonVal::ScalarBranch< unsigned short >, MuonVal::ScalarBranch< short >, MuonVal::ScalarBranch< unsigned char >, MuonVal::ScalarBranch< unsigned >, MuonVal::ScalarBranch< uint16_t >, MuonVal::ScalarBranch< bool >, MuonVal::ScalarBranch< uint >, MuonVal::SetBranch< T >, MuonVal::CartesFourVecBranch, MuonVal::ThreeVectorBranch, MuonVal::CoordSystemsBranch, MuonVal::EventIDBranch, MuonVal::PtEtaPhiEBranch, MuonVal::TwoVectorBranch, MuonVal::ArrayBranch< T >, MuonVal::MuonIdentifierBranch, MuonVal::ArrayBranch< ULong64_t >, MuonVal::ArrayBranch< unsigned >, and MuonVal::CoordTransformBranch.
|
protected |
Definition at line 19 of file TesterModuleBase.cxx.
|
protected |
Definition at line 22 of file TesterModuleBase.cxx.
|
protected |
Definition at line 18 of file TesterModuleBase.cxx.
|
finaloverridevirtual |
The init method checks whether the branch name has already registered to the MuonTree and tries then to add the branch to the tree --> return false if the branch has already been defined or the inclusion of the branch to the tree failed or the name of the branch is empty.
Implements MuonVal::IMuonTesterBranch.
Definition at line 30 of file TesterModuleBase.cxx.
|
inherited |
Returns whether the object has been initialized or not The outcome of the variable is bound to a successful call of the addToTree method.
Definition at line 52 of file MuonTesterBranch.cxx.
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
|
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 164 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 179 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.
|
finaloverridevirtualinherited |
Returns the name of the branch.
Implements MuonVal::IMuonTesterBranch.
Definition at line 51 of file MuonTesterBranch.cxx.
|
protectedinherited |
Returns the reference to the MuonTesterTree parent.
Definition at line 38 of file MuonTesterBranch.cxx.
|
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.
|
finaloverridevirtualinherited |
|
finaloverridevirtualinherited |
Returns the underlying TTree object.
Implements MuonVal::IMuonTesterBranch.
Definition at line 53 of file MuonTesterBranch.cxx.
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
|
privateinherited |
Definition at line 62 of file MuonTesterBranch.h.
|
private |
Definition at line 32 of file TesterModuleBase.h.
|
private |
Definition at line 34 of file TesterModuleBase.h.
|
private |
Definition at line 33 of file TesterModuleBase.h.
|
mutableprivateinherited |
MessageSvc pointer.
Definition at line 135 of file AthMessaging.h.
|
privateinherited |
Definition at line 61 of file MuonTesterBranch.h.
|
mutableprivateinherited |
Current logging level.
Definition at line 138 of file AthMessaging.h.
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
|
privateinherited |
Definition at line 60 of file MuonTesterBranch.h.
|
privateinherited |
Message source name.
Definition at line 129 of file AthMessaging.h.
|
privateinherited |
Definition at line 59 of file MuonTesterBranch.h.
|
privateinherited |
Definition at line 58 of file MuonTesterBranch.h.