ATLAS Offline Software
Loading...
Searching...
No Matches
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
10namespace MuonPRDTest {
12 public:
13 MDTSimHitVariables(MuonTesterTree& tree, const std::string& container_name, MSG::Level msglvl);
14
16
17 bool fill(const EventContext& ctx) override final;
18
19 bool declare_keys() override final;
20
21 private:
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"};
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
AtlasHitsVector< MDTSimHit > MDTSimHitCollection
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...
MDTSimHitVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
ThreeVectorBranch m_MDT_detector_globalPosition
VectorBranch< int > & m_MDT_trackId
ScalarBranch< unsigned int > & m_MDT_nSimHits
VectorBranch< float > & m_MDT_kineticEnergy
SG::ReadHandleKey< MDTSimHitCollection > m_simHitKey
VectorBranch< float > & m_MDT_driftRadius
VectorBranch< float > & m_MDT_globalTime
VectorBranch< float > & m_MDT_StepLength
VectorBranch< int > & m_MDT_particleEncoding
VectorBranch< float > & m_MDT_depositEnergy
VectorBranch< int > & m_MDT_truthEl
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
Branch to store all information of the MDT identifier.
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
TTree * tree() override final
Returns the underlying TTree object.
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
ScalarBranch< T > & newScalar(const std::string &name)
Forward declaration.
#define private