ATLAS Offline Software
Loading...
Searching...
No Matches
sTGCSimHitVariables.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 sTGCSimHitVariables_H
6#define sTGCSimHitVariables_H
7
11
12namespace MuonPRDTest{
14 public:
15 sTGCSimHitVariables(MuonTesterTree& tree, const std::string& container_name, MSG::Level msglvl);
16
17 bool fill(const EventContext& ctx) override final;
18 bool declare_keys() override final;
19
20 private:
23 ThreeVectorBranch m_NSWsTGC_hitGlobalDirection{parent(), "Hits_sTGC_GlobalDirection"};
24 ThreeVectorBranch m_NSWsTGC_hitGlobalPrePosition{parent(), "Hits_sTGC_GlobalPrePosition"};
25 VectorBranch<int>& m_NSWsTGC_particleEncoding{parent().newVector<int>("Hits_sTGC_particleEncoding")};
26 VectorBranch<float>& m_NSWsTGC_kineticEnergy{parent().newVector<float>("Hits_sTGC_kineticEnergy")};
27 VectorBranch<float>& m_NSWsTGC_depositEnergy{parent().newVector<float>("Hits_sTGC_depositEnergy")};
28 VectorBranch<bool>& m_NSWsTGC_isInsideBounds{parent().newVector<bool>("Hits_sTGC_isInsideBounds")};
29 VectorBranch<int>& m_NSWsTGC_trackId{parent().newVector<int>("Hits_sTGC_trackId")};
30 ScalarBranch<unsigned int>& m_NSWsTGC_nSimHits{parent().newScalar<unsigned int>("Hits_sTGC_nHits")};
32 VectorBranch<float>& m_NSWsTGC_globalTime{parent().newVector<float>("Hits_sTGC_globalTime")};
33 VectorBranch<int>& m_NSWsTGC_detectorNumber{parent().newVector<int>("Hits_sTGC_detectorNumber")};
34 VectorBranch<int>& m_NSWsTGC_wedgeId{parent().newVector<int>("Hits_sTGC_wedgeId")};
35 VectorBranch<int>& m_NSWsTGC_wedgeType{parent().newVector<int>("Hits_sTGC_wedgeType")};
36 ThreeVectorBranch m_NSWsTGC_detector_globalPosition{parent(), "Hits_sTGC_detector_globalPosition"};
37 ThreeVectorBranch m_NSWsTGC_hitToDsurfacePosition{parent(), "Hits_sTGC_hitToDsurfacePosition"};
38 ThreeVectorBranch m_NSWsTGC_hitToRsurfacePosition{parent(), "Hits_sTGC_hitToRsurfacePosition"};
39 VectorBranch<float>& m_NSWsTGC_FastDigitRsurfacePositionX{parent().newVector<float>("Hits_sTGC_FastDigitRsurfacePositionX")};
40 VectorBranch<float>& m_NSWsTGC_FastDigitRsurfacePositionY{parent().newVector<float>("Hits_sTGC_FastDigitRsurfacePositionY")};
41 VectorBranch<int>& m_NSWsTGC_stripNumber{parent().newVector<int>("Hits_sTGC_stripNumber")};
42 };
43};
44
45#endif // sTGCSimHitVariables_H
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
ThreeVectorBranch m_NSWsTGC_hitGlobalPrePosition
VectorBranch< int > & m_NSWsTGC_stripNumber
sTGCSimHitVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
ScalarBranch< unsigned int > & m_NSWsTGC_nSimHits
SG::ReadHandleKey< sTGCSimHitCollection > 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...
ThreeVectorBranch m_NSWsTGC_hitToDsurfacePosition
VectorBranch< float > & m_NSWsTGC_kineticEnergy
VectorBranch< float > & m_NSWsTGC_globalTime
VectorBranch< float > & m_NSWsTGC_depositEnergy
VectorBranch< int > & m_NSWsTGC_wedgeType
ThreeVectorBranch m_NSWsTGC_hitToRsurfacePosition
VectorBranch< int > & m_NSWsTGC_particleEncoding
VectorBranch< int > & m_NSWsTGC_detectorNumber
VectorBranch< bool > & m_NSWsTGC_isInsideBounds
VectorBranch< int > & m_NSWsTGC_wedgeId
ThreeVectorBranch m_NSWsTGC_detector_globalPosition
VectorBranch< float > & m_NSWsTGC_FastDigitRsurfacePositionX
VectorBranch< int > & m_NSWsTGC_trackId
VectorBranch< float > & m_NSWsTGC_FastDigitRsurfacePositionY
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)
Branch to store all information of the sTgcIdentifier.
Property holding a SG store/key/clid from which a ReadHandle is made.