ATLAS Offline Software
Loading...
Searching...
No Matches
RPCSimHitVariables.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 RPCSimHitVariables_H
6#define RPCSimHitVariables_H
7
11namespace MuonPRDTest {
13 public:
14 RPCSimHitVariables(MuonTesterTree& tree, const std::string& container_name, MSG::Level msglvl);
15
16 bool fill(const EventContext& ctx) override final;
17 bool declare_keys() override final;
18
19 private:
21 ThreeVectorBranch m_RPC_hitGlobalPosition{parent(), "RPC_SIM_GlobalPosition"};
22 VectorBranch<int>& m_RPC_particleEncoding{parent().newVector<int>("RPC_SIM_particleEncoding")};
23 VectorBranch<float>& m_RPC_kineticEnergy{parent().newVector<float>("RPC_SIM_kineticEnergy")};
24 VectorBranch<float>& m_RPC_depositEnergy{parent().newVector<float>("RPC_SIM_depositEnergy")};
25 VectorBranch<float>& m_RPC_StepLength{parent().newVector<float>("RPC_SIM_StepLength")};
26 VectorBranch<int>& m_RPC_trackId{parent().newVector<int>("RPC_SIM_trackId")};
27 VectorBranch<int>& m_RPC_truthEl{parent().newVector<int>("RPC_SIM_truthEl")};
28 ThreeVectorBranch m_RPC_detector_globalPosition{parent(), "RPC_SIM_detector_globalPosition"};
29
30 ScalarBranch<unsigned int>& m_RPC_nSimHits{parent().newScalar<unsigned int>("RPC_SIM_nHits")};
32
33 VectorBranch<float>& m_RPC_globalTime{parent().newVector<float>("RPC_SIM_globalTime")};
34 VectorBranch<float>& m_RPC_hitLocalPositionX{parent().newVector<float>("RPC_SIM_localPostionX")};
35 VectorBranch<float>& m_RPC_hitLocalPositionY{parent().newVector<float>("RPC_SIM_localPostionY")};
36 };
37} // namespace MuonPRDTest
38#endif // RPCSimHitVariables_H
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
VectorBranch< int > & m_RPC_particleEncoding
RPCSimHitVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
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...
VectorBranch< int > & m_RPC_trackId
VectorBranch< int > & m_RPC_truthEl
VectorBranch< float > & m_RPC_kineticEnergy
VectorBranch< float > & m_RPC_depositEnergy
ThreeVectorBranch m_RPC_detector_globalPosition
VectorBranch< float > & m_RPC_hitLocalPositionY
VectorBranch< float > & m_RPC_hitLocalPositionX
SG::ReadHandleKey< RPCSimHitCollection > m_key
VectorBranch< float > & m_RPC_globalTime
VectorBranch< float > & m_RPC_StepLength
ScalarBranch< unsigned int > & m_RPC_nSimHits
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)
Property holding a SG store/key/clid from which a ReadHandle is made.