|
ATLAS Offline Software
|
Go to the documentation of this file.
4 #ifndef MUONTESTERTREE_EVENTINFOBRANCH_H
5 #define MUONTESTERTREE_EVENTINFOBRANCH_H
34 const std::string& evtKey=
"EventInfo");
36 bool fill(
const EventContext& ctx)
override final;
37 bool init() override final;
71 std::map<unsigned int, std::shared_ptr<ScalarBranch<double>>>
m_lhe_weights{};
Property holding a SG store/key/clid from which a ReadHandle is made.
bool fill(const EventContext &ctx) override final
The fill method checks if enough information is provided such that the branch is cleared from the inf...
ScalarBranch< float > & m_average_mu
Toggled by the Write PileUp flag.
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
static void setNumLHE(unsigned int numLHE) ATLAS_THREAD_SAFE
Specify the number of LHE variations that are available in the sample.
ScalarBranch< uint32_t > & m_mcChannel
EventInfoBranch(MuonTesterTree &tree, unsigned int write_mask, const std::string &evtKey="EventInfo")
ScalarBranch< uint32_t > & m_lbNumber
@ isMC
Flag determining whether the branch is simulation.
ScalarBranch< double > & m_weight
Removed from output if writeLHE is switched on.
@ writeBeamSpot
Write the beamspot weight.
SG::ReadHandleKey< xAOD::EventInfo > m_key
Common access to the EventInfo.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
ScalarBranch< uint32_t > & m_runNumber
TTree * tree() override final
Returns the underlying TTree object.
ScalarBranch< uint32_t > & m_rnd_lumi_block
ScalarBranch< uint32_t > & m_rnd_run
ScalarBranch< float > & m_actual_mu
Class to store array like branches into the n-tuples.
ScalarBranch< uint32_t > & m_l1id
Toggled by the write trigger flag.
ScalarBranch< double > & m_prwWeight
Branches toggled by the write prw Flag.
ScalarBranch< T > & newScalar(const std::string &name)
This class provides general information about an event. Event information is provided by the accessor...
ScalarBranch< double > & m_beamSpotWeight
bool init() override final
The init method checks whether the branch name has already registered to the MuonTree and tries then ...
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
ScalarBranch< unsigned long long > & m_evtNumber
@ writePRW
Write the corrected pile-up.
@ writePileUp
Write pile-up information.
std::vector< EvtInfoDecor > m_prwKeys
static std::atomic< unsigned int > s_num_lhe ATLAS_THREAD_SAFE
@ writeTrigger
Write the trigger information.
@ writeLHE
Write each of the LHE weights.
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
static unsigned int getNumLHE()
ScalarBranch< uint32_t > & m_bcid
std::map< unsigned int, std::shared_ptr< ScalarBranch< double > > > m_lhe_weights