ATLAS Offline Software
Loading...
Searching...
No Matches
CSCSimHitVariables.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 CSCSimHitVariables_H
6#define CSCSimHitVariables_H
7
10namespace MuonPRDTest{
12 public:
13 CSCSimHitVariables(MuonTesterTree& tree, const std::string& container_name, MSG::Level msglvl);
14
15 bool fill(const EventContext& ctx) override final;
16 bool declare_keys() override final;
17
18 private:
20
21
23 VectorBranch<float>& m_CSC_globalTime{parent().newVector<float>("CSC_Sim_globalTime")};
24 ThreeVectorBranch m_CSC_hitGlobalPosition{parent(), "CSC_Sim_hitGlobalPosition"};
26
27 VectorBranch<float>& m_CSC_kineticEnergy{parent().newVector<float>("CSC_Sim_kineticEnergy")};
28 VectorBranch<float>& m_CSC_depositEnergy{parent().newVector<float>("CSC_Sim_depositEnergy")};
29 VectorBranch<int>& m_CSC_trackId{parent().newVector<int>("CSC_Sim_trackId")};
30 VectorBranch<int>& m_CSC_truthEl{parent().newVector<int>("CSC_Sim_truthEl")};
31 ScalarBranch<unsigned int>& m_CSC_nSimHits{parent().newScalar<unsigned int>("CSC_Sim_nHits")};
32 };
33};
34#endif // CSCSimHitVariables_H
CSCSimHitVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
VectorBranch< int > & m_CSC_trackId
VectorBranch< float > & m_CSC_depositEnergy
ScalarBranch< unsigned int > & m_CSC_nSimHits
VectorBranch< float > & m_CSC_globalTime
VectorBranch< float > & m_CSC_kineticEnergy
ThreeVectorBranch m_CSC_detector_globalPosition
SG::ReadHandleKey< CSCSimHitCollection > m_key
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_CSC_truthEl
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
Branch to store all information of the CscIdentifier.
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.