ATLAS Offline Software
MDTSimHitVariables.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MDTSimHitVariables_H
6 #define MDTSimHitVariables_H
7 
10 namespace MuonPRDTest {
12  public:
13  MDTSimHitVariables(MuonTesterTree& tree, const std::string& container_name, MSG::Level msglvl);
14 
15  ~MDTSimHitVariables() = default;
16 
17  bool fill(const EventContext& ctx) override final;
18 
19  bool declare_keys() override final;
20 
21  private:
22  SG::ReadHandleKey<MDTSimHitCollection> m_simHitKey{};
23 
25  VectorBranch<float>& m_MDT_globalTime{parent().newVector<float>("MDT_Sim_globalTime")};
26  ThreeVectorBranch m_MDT_hitLocalPosition{parent(), "MDT_Sim_hitLocalPosition"};
27  ThreeVectorBranch m_MDT_hitGlobalPosition{parent(), "MDT_Sim_hitGlobalPosition"};
28  ThreeVectorBranch m_MDT_detector_globalPosition{parent(), "MDT_Sim_detGlobalPosition"};
29  VectorBranch<float>& m_MDT_driftRadius{parent().newVector<float>("MDT_Sim_driftRadius")};
30 
31  VectorBranch<int>& m_MDT_particleEncoding{parent().newVector<int>("MDT_Sim_particleEncoding")};
32  VectorBranch<float>& m_MDT_kineticEnergy{parent().newVector<float>("MDT_Sim_kineticEnergy")};
33  VectorBranch<float>& m_MDT_depositEnergy{parent().newVector<float>("MDT_Sim_depositEnergy")};
34  VectorBranch<float>& m_MDT_StepLength{parent().newVector<float>("MDT_Sim_StepLength")};
35  VectorBranch<int>& m_MDT_trackId{parent().newVector<int>("MDT_Sim_trackId")};
36  VectorBranch<int>& m_MDT_truthEl{parent().newVector<int>("MDT_Sim_truthEl")};
37  ScalarBranch<unsigned int>& m_MDT_nSimHits{parent().newScalar<unsigned int>("MDT_Sim_nHits")};
38  };
39 } // namespace MuonPRDTest
40 #endif // MDTSimHitVariables_H
MuonVal::MdtIdentifierBranch
Branch to store all information of the MDT identifier.
Definition: IdentifierBranch.h:41
MuonPRDTest::MDTSimHitVariables::m_MDT_globalTime
VectorBranch< float > & m_MDT_globalTime
Definition: MDTSimHitVariables.h:25
MuonPRDTest::MDTSimHitVariables::m_MDT_particleEncoding
VectorBranch< int > & m_MDT_particleEncoding
Definition: MDTSimHitVariables.h:31
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
MuonPRDTest::MDTSimHitVariables::m_MDT_driftRadius
VectorBranch< float > & m_MDT_driftRadius
Definition: MDTSimHitVariables.h:29
AtlasHitsVector
Definition: AtlasHitsVector.h:33
MuonPRDTest::MDTSimHitVariables::m_MDT_hitGlobalPosition
ThreeVectorBranch m_MDT_hitGlobalPosition
Definition: MDTSimHitVariables.h:27
MuonPRDTest::MDTSimHitVariables::m_MDT_nSimHits
ScalarBranch< unsigned int > & m_MDT_nSimHits
Definition: MDTSimHitVariables.h:37
MuonPRDTest::MDTSimHitVariables::m_MDT_detector_globalPosition
ThreeVectorBranch m_MDT_detector_globalPosition
Definition: MDTSimHitVariables.h:28
MuonPRDTest::MDTSimHitVariables::m_MDT_id
MdtIdentifierBranch m_MDT_id
Definition: MDTSimHitVariables.h:24
MuonPRDTest::MDTSimHitVariables::declare_keys
bool declare_keys() override final
Definition: MDTSimHitVariables.cxx:95
MuonVal::VectorBranch< float >
MuonPRDTest::MDTSimHitVariables::m_MDT_truthEl
VectorBranch< int > & m_MDT_truthEl
Definition: MDTSimHitVariables.h:36
MuonVal::ThreeVectorBranch
Definition: ThreeVectorBranch.h:19
MuonVal::MuonTesterBranch::tree
TTree * tree() override final
Returns the underlying TTree object.
Definition: MuonTesterBranch.cxx:53
MuonPRDTest::MDTSimHitVariables::MDTSimHitVariables
MDTSimHitVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
Definition: MDTSimHitVariables.cxx:12
MuonPRDTest::MDTSimHitVariables::~MDTSimHitVariables
~MDTSimHitVariables()=default
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
MuonPRDTest::MDTSimHitVariables::m_MDT_trackId
VectorBranch< int > & m_MDT_trackId
Definition: MDTSimHitVariables.h:35
MuonPRDTest::PrdTesterModule
Definition: PrdTesterModule.h:15
MuonPRDTest::MDTSimHitVariables::m_MDT_depositEnergy
VectorBranch< float > & m_MDT_depositEnergy
Definition: MDTSimHitVariables.h:33
MuonVal::MuonTesterTree::newVector
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
MuonPRDTest::MDTSimHitVariables
Definition: MDTSimHitVariables.h:11
MuonPRDTest::MDTSimHitVariables::m_MDT_hitLocalPosition
ThreeVectorBranch m_MDT_hitLocalPosition
Definition: MDTSimHitVariables.h:26
PrdTesterModule.h
MDTSimHitCollection.h
MuonVal::ScalarBranch< unsigned int >
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
MuonVal::MuonTesterTree::newScalar
ScalarBranch< T > & newScalar(const std::string &name)
MuonVal::MuonTesterBranch::parent
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
Definition: MuonTesterBranch.cxx:38
MuonPRDTest::MDTSimHitVariables::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: MDTSimHitVariables.cxx:14
MuonPRDTest
Definition: CSCDigitVariables.h:10
MuonPRDTest::MDTSimHitVariables::m_MDT_StepLength
VectorBranch< float > & m_MDT_StepLength
Definition: MDTSimHitVariables.h:34
MuonPRDTest::MDTSimHitVariables::m_simHitKey
SG::ReadHandleKey< MDTSimHitCollection > m_simHitKey
Definition: MDTSimHitVariables.h:22
MuonPRDTest::MDTSimHitVariables::m_MDT_kineticEnergy
VectorBranch< float > & m_MDT_kineticEnergy
Definition: MDTSimHitVariables.h:32