ATLAS Offline Software
MuEntryVariables.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUONPRDTEST_MUENTRYVARIABLES_H
6 #define MUONPRDTEST_MUENTRYVARIABLES_H
7 
8 
13 namespace MuonPRDTest{
15  public:
16  MuEntryVariables(MuonTesterTree& tree, const std::string& container_name, MSG::Level msglvl);
17 
18  bool fill(const EventContext& ctx) override final;
19  bool declare_keys() override final;
20 
21 
22  private:
24  ScalarBranch<unsigned int>& m_MuEntry_nParticles{parent().newScalar<unsigned int>("Muontry_numPart")};
25  PtEtaPhiEBranch m_MuEntry_mom{parent(), "MuEntry_Particle"};
26  ThreeVectorBranch m_MuEntry_pos{parent(), "MuEntry_Position"};
29  };
30 }
31 #endif // MUENTRYVARIABLES_H
MuonPRDTest::MuEntryVariables::m_key
SG::ReadHandleKey< TrackRecordCollection > m_key
Definition: MuEntryVariables.h:23
MuonPRDTest::MuEntryVariables::fill
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...
Definition: MuEntryVariables.cxx:17
AthMsgStreamMacros.h
MuonPRDTest::MuEntryVariables
Definition: MuEntryVariables.h:14
MuonVal::VectorBranch< int >
ThreeVectorBranch.h
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
MuonVal::ThreeVectorBranch
Definition: ThreeVectorBranch.h:19
MuonVal::MuonTesterBranch::tree
TTree * tree() override final
Returns the underlying TTree object.
Definition: MuonTesterBranch.cxx:53
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
MuonPRDTest::MuEntryVariables::m_MuEntry_mom
PtEtaPhiEBranch m_MuEntry_mom
Definition: MuEntryVariables.h:25
MuonPRDTest::PrdTesterModule
Definition: PrdTesterModule.h:15
MuonPRDTest::MuEntryVariables::declare_keys
bool declare_keys() override final
Definition: MuEntryVariables.cxx:15
MuonVal::MuonTesterTree::newVector
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
PrdTesterModule.h
MuonVal::ScalarBranch< unsigned int >
MuonVal::MuonTesterTree::newScalar
ScalarBranch< T > & newScalar(const std::string &name)
TrackRecordCollection.h
MuonPRDTest::MuEntryVariables::m_MuEntry_particleBarcode
VectorBranch< int > & m_MuEntry_particleBarcode
Definition: MuEntryVariables.h:28
MuonVal::MuonTesterBranch::parent
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
Definition: MuonTesterBranch.cxx:38
MuonVal::PtEtaPhiEBranch
Helper class to store the four-momentum in a TTree using the Pt, Eta, Phi, E representation.
Definition: FourVectorBranch.h:15
MuonPRDTest
Definition: CSCDigitVariables.h:10
MuonPRDTest::MuEntryVariables::m_MuEntry_pos
ThreeVectorBranch m_MuEntry_pos
Definition: MuEntryVariables.h:26
MuonPRDTest::MuEntryVariables::MuEntryVariables
MuEntryVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
Definition: MuEntryVariables.cxx:13
MuonPRDTest::MuEntryVariables::m_MuEntry_particlePdg_id
VectorBranch< int > & m_MuEntry_particlePdg_id
Definition: MuEntryVariables.h:27
MuonPRDTest::MuEntryVariables::m_MuEntry_nParticles
ScalarBranch< unsigned int > & m_MuEntry_nParticles
Definition: MuEntryVariables.h:24