ATLAS Offline Software
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 
11 namespace 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
MuonPRDTest::RPCSimHitVariables::RPCSimHitVariables
RPCSimHitVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
Definition: RPCSimHitVariables.cxx:11
MuonPRDTest::RPCSimHitVariables::m_RPC_kineticEnergy
VectorBranch< float > & m_RPC_kineticEnergy
Definition: RPCSimHitVariables.h:23
MuonPRDTest::RPCSimHitVariables::m_RPC_particleEncoding
VectorBranch< int > & m_RPC_particleEncoding
Definition: RPCSimHitVariables.h:22
MuonPRDTest::RPCSimHitVariables::declare_keys
bool declare_keys() override final
Definition: RPCSimHitVariables.cxx:14
MuonVal::VectorBranch< int >
MuonPRDTest::RPCSimHitVariables
Definition: RPCSimHitVariables.h:12
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
MuonPRDTest::RPCSimHitVariables::m_RPC_nSimHits
ScalarBranch< unsigned int > & m_RPC_nSimHits
Definition: RPCSimHitVariables.h:30
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
MuonPRDTest::RPCSimHitVariables::m_RPC_truthEl
VectorBranch< int > & m_RPC_truthEl
Definition: RPCSimHitVariables.h:27
MuonVal::RpcIdentifierBranch
Definition: IdentifierBranch.h:53
MuonPRDTest::RPCSimHitVariables::m_rpc_Id
RpcIdentifierBranch m_rpc_Id
Definition: RPCSimHitVariables.h:31
MuonPRDTest::PrdTesterModule
Definition: PrdTesterModule.h:15
MuonPRDTest::RPCSimHitVariables::m_RPC_hitLocalPositionY
VectorBranch< float > & m_RPC_hitLocalPositionY
Definition: RPCSimHitVariables.h:35
RPCSimHitCollection.h
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)
MuonPRDTest::RPCSimHitVariables::m_RPC_trackId
VectorBranch< int > & m_RPC_trackId
Definition: RPCSimHitVariables.h:26
MuonVal::MuonTesterBranch::parent
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
Definition: MuonTesterBranch.cxx:38
MuonPRDTest
Definition: CSCDigitVariables.h:10
MuonPRDTest::RPCSimHitVariables::m_RPC_globalTime
VectorBranch< float > & m_RPC_globalTime
Definition: RPCSimHitVariables.h:33
MuonPRDTest::RPCSimHitVariables::m_key
SG::ReadHandleKey< RPCSimHitCollection > m_key
Definition: RPCSimHitVariables.h:20
MuonPRDTest::RPCSimHitVariables::m_RPC_detector_globalPosition
ThreeVectorBranch m_RPC_detector_globalPosition
Definition: RPCSimHitVariables.h:28
MuonPRDTest::RPCSimHitVariables::m_RPC_hitGlobalPosition
ThreeVectorBranch m_RPC_hitGlobalPosition
Definition: RPCSimHitVariables.h:21
MuonSimDataCollection.h
MuonPRDTest::RPCSimHitVariables::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: RPCSimHitVariables.cxx:16
MuonPRDTest::RPCSimHitVariables::m_RPC_StepLength
VectorBranch< float > & m_RPC_StepLength
Definition: RPCSimHitVariables.h:25
MuonPRDTest::RPCSimHitVariables::m_RPC_hitLocalPositionX
VectorBranch< float > & m_RPC_hitLocalPositionX
Definition: RPCSimHitVariables.h:34
MuonPRDTest::RPCSimHitVariables::m_RPC_depositEnergy
VectorBranch< float > & m_RPC_depositEnergy
Definition: RPCSimHitVariables.h:24