![]() |
ATLAS Offline Software
|
#include <EventInfoBranch.h>
Public Types | |
| enum | WriteOpts { isMC = 1 , writePileUp = 1 << 1 , writePRW = 1 << 2 , writeBeamSpot = 1 << 3 , writeTrigger = 1 << 4 , writeLHE = 1<<5 } |
| using | DataDependency = SG::VarHandleKey* |
Public Member Functions | |
| EventInfoBranch (MuonTesterTree &tree, unsigned int write_mask, const std::string &evtKey="EventInfo") | |
| bool | fill (const EventContext &ctx) override final |
| 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. | |
| 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. | |
| std::string | name () const override final |
| Returns the name of the branch. | |
| 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. | |
| TTree * | tree () override final |
| Returns the underlying TTree object. | |
| const TTree * | tree () const override final |
| std::vector< DataDependency > | data_dependencies () override final |
| Returns the data dependencies needed by the MuonTesterBranch. | |
| 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 void | setNumLHE (unsigned int numLHE) ATLAS_THREAD_SAFE |
| Specify the number of LHE variations that are available in the sample. | |
| static unsigned int | getNumLHE () |
| static std::string | eraseWhiteSpaces (const std::string &In) |
Protected Member Functions | |
| template<class T> | |
| bool | addToTree (T &variable) |
| Connects the Memory buffer with the TTree. | |
| template<class Key> | |
| bool | declare_dependency (Key &key) |
| Declares the ReadHandle/ ReadCondHandleKey as data dependency of the algorithm. | |
| MuonTesterTree & | parent () |
| Returns the reference to the MuonTesterTree parent. | |
Private Types | |
| using | EvtInfoDecor = SG::ReadDecorHandleKey<xAOD::EventInfo> |
| Access to the pile up weights if requested. | |
Private Member Functions | |
| void | initMessaging () const |
| Initialize our message level and MessageSvc. | |
Private Attributes | |
| SG::ReadHandleKey< xAOD::EventInfo > | m_key {"EventInfo"} |
| Common access to the EventInfo. | |
| std::vector< EvtInfoDecor > | m_prwKeys {} |
| unsigned int | m_writemask {0} |
| ScalarBranch< unsigned long long > & | m_evtNumber {parent().newScalar<unsigned long long>("eventNumber")} |
| ScalarBranch< uint32_t > & | m_runNumber {parent().newScalar<uint32_t>("runNumber")} |
| ScalarBranch< uint32_t > & | m_lbNumber {parent().newScalar<uint32_t>("lbNumber")} |
| ScalarBranch< uint32_t > & | m_bcid {parent().newScalar<uint32_t>("bcid")} |
| ScalarBranch< uint32_t > & | m_l1id {parent().newScalar<uint32_t>("l1id")} |
| Toggled by the write trigger flag. | |
| ScalarBranch< float > & | m_average_mu {parent().newScalar<float>("average_mu")} |
| Toggled by the Write PileUp flag. | |
| ScalarBranch< float > & | m_actual_mu {parent().newScalar<float>("actual_mu")} |
| ScalarBranch< uint32_t > & | m_mcChannel {parent().newScalar<uint32_t>("mcChannelNumber")} |
| ###################################################################### Disabled if the job runs on data # ##################################################################### | |
| ScalarBranch< double > & | m_weight {parent().newScalar<double>("mcEventWeight")} |
| Removed from output if writeLHE is switched on. | |
| std::map< unsigned int, std::shared_ptr< ScalarBranch< double > > > | m_lhe_weights {} |
| ScalarBranch< double > & | m_prwWeight {parent().newScalar<double>("prwWeight")} |
| Branches toggled by the write prw Flag. | |
| ScalarBranch< uint32_t > & | m_rnd_run {parent().newScalar<uint32_t>("randomRunNumber")} |
| ScalarBranch< uint32_t > & | m_rnd_lumi_block {parent().newScalar<uint32_t>("randomLumiBlockNumber")} |
| ScalarBranch< double > & | m_beamSpotWeight {parent().newScalar<double>("BeamSpotWeight")} |
| 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. | |
| 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. | |
Static Private Attributes | |
| static std::atomic< unsigned int > s_num_lhe | ATLAS_THREAD_SAFE |
Definition at line 15 of file EventInfoBranch.h.
|
inherited |
Definition at line 39 of file IMuonTesterBranch.h.
|
private |
Access to the pile up weights if requested.
Definition at line 48 of file EventInfoBranch.h.
Definition at line 18 of file EventInfoBranch.h.
| MuonVal::EventInfoBranch::EventInfoBranch | ( | MuonTesterTree & | tree, |
| unsigned int | write_mask, | ||
| const std::string & | evtKey = "EventInfo" ) |
Definition at line 17 of file EventInfoBranch.cxx.
|
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.
|
staticinherited |
Definition at line 56 of file MuonTesterBranch.cxx.
|
finaloverridevirtual |
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
Implements MuonVal::IMuonTesterBranch.
Definition at line 57 of file EventInfoBranch.cxx.
|
static |
Definition at line 16 of file EventInfoBranch.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 92 of file EventInfoBranch.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 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.
|
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.
|
static |
Specify the number of LHE variations that are available in the sample.
Definition at line 15 of file EventInfoBranch.cxx.
|
finaloverridevirtualinherited |
|
finaloverridevirtualinherited |
Returns the underlying TTree object.
Implements MuonVal::IMuonTesterBranch.
Definition at line 53 of file MuonTesterBranch.cxx.
|
staticprivate |
Definition at line 44 of file EventInfoBranch.h.
|
private |
Definition at line 64 of file EventInfoBranch.h.
|
private |
Toggled by the Write PileUp flag.
Definition at line 63 of file EventInfoBranch.h.
|
private |
Definition at line 57 of file EventInfoBranch.h.
|
private |
Definition at line 77 of file EventInfoBranch.h.
|
privateinherited |
Definition at line 62 of file MuonTesterBranch.h.
|
private |
Definition at line 53 of file EventInfoBranch.h.
|
mutableprivateinherited |
|
privateinherited |
Definition at line 61 of file MuonTesterBranch.h.
|
private |
|
private |
Toggled by the write trigger flag.
Definition at line 60 of file EventInfoBranch.h.
|
private |
Definition at line 56 of file EventInfoBranch.h.
|
private |
Definition at line 71 of file EventInfoBranch.h.
|
mutableprivateinherited |
|
private |
###################################################################### Disabled if the job runs on data # #####################################################################
Definition at line 68 of file EventInfoBranch.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.
|
private |
Definition at line 49 of file EventInfoBranch.h.
|
private |
Branches toggled by the write prw Flag.
Definition at line 74 of file EventInfoBranch.h.
|
private |
Definition at line 76 of file EventInfoBranch.h.
|
private |
Definition at line 75 of file EventInfoBranch.h.
|
private |
Definition at line 54 of file EventInfoBranch.h.
|
privateinherited |
Definition at line 58 of file MuonTesterBranch.h.
|
private |
Removed from output if writeLHE is switched on.
Definition at line 70 of file EventInfoBranch.h.
|
private |
Definition at line 50 of file EventInfoBranch.h.