ATLAS Offline Software
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 
12 namespace 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:
22  ThreeVectorBranch m_NSWsTGC_hitGlobalPosition{parent(), "Hits_sTGC_GlobalPosition"};
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
MuonPRDTest::sTGCSimHitVariables::m_key
SG::ReadHandleKey< sTGCSimHitCollection > m_key
Definition: sTGCSimHitVariables.h:21
sTgcIdHelper.h
MuonVal::sTgcIdentifierBranch
Branch to store all information of the sTgcIdentifier.
Definition: IdentifierBranch.h:96
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_trackId
VectorBranch< int > & m_NSWsTGC_trackId
Definition: sTGCSimHitVariables.h:29
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_FastDigitRsurfacePositionY
VectorBranch< float > & m_NSWsTGC_FastDigitRsurfacePositionY
Definition: sTGCSimHitVariables.h:40
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_detector_globalPosition
ThreeVectorBranch m_NSWsTGC_detector_globalPosition
Definition: sTGCSimHitVariables.h:36
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_wedgeId
VectorBranch< int > & m_NSWsTGC_wedgeId
Definition: sTGCSimHitVariables.h:34
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_detectorNumber
VectorBranch< int > & m_NSWsTGC_detectorNumber
Definition: sTGCSimHitVariables.h:33
sTGCSimHitCollection.h
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_isInsideBounds
VectorBranch< bool > & m_NSWsTGC_isInsideBounds
Definition: sTGCSimHitVariables.h:28
MuonVal::VectorBranch< int >
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::sTGCSimHitVariables::m_NSWsTGC_globalTime
VectorBranch< float > & m_NSWsTGC_globalTime
Definition: sTGCSimHitVariables.h:32
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_kineticEnergy
VectorBranch< float > & m_NSWsTGC_kineticEnergy
Definition: sTGCSimHitVariables.h:26
MuonPRDTest::sTGCSimHitVariables::declare_keys
bool declare_keys() override final
Definition: sTGCSimHitVariables.cxx:12
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
MuonPRDTest::PrdTesterModule
Definition: PrdTesterModule.h:15
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_hitGlobalDirection
ThreeVectorBranch m_NSWsTGC_hitGlobalDirection
Definition: sTGCSimHitVariables.h:23
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_wedgeType
VectorBranch< int > & m_NSWsTGC_wedgeType
Definition: sTGCSimHitVariables.h:35
MuonPRDTest::sTGCSimHitVariables::sTGCSimHitVariables
sTGCSimHitVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
Definition: sTGCSimHitVariables.cxx:9
MuonVal::MuonTesterTree::newVector
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
PrdTesterModule.h
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_Id
sTgcIdentifierBranch m_NSWsTGC_Id
Definition: sTGCSimHitVariables.h:31
MuonVal::ScalarBranch< unsigned int >
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_hitGlobalPosition
ThreeVectorBranch m_NSWsTGC_hitGlobalPosition
Definition: sTGCSimHitVariables.h:22
MuonVal::MuonTesterTree::newScalar
ScalarBranch< T > & newScalar(const std::string &name)
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_hitGlobalPrePosition
ThreeVectorBranch m_NSWsTGC_hitGlobalPrePosition
Definition: sTGCSimHitVariables.h:24
MuonVal::MuonTesterBranch::parent
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
Definition: MuonTesterBranch.cxx:38
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_hitToRsurfacePosition
ThreeVectorBranch m_NSWsTGC_hitToRsurfacePosition
Definition: sTGCSimHitVariables.h:38
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_depositEnergy
VectorBranch< float > & m_NSWsTGC_depositEnergy
Definition: sTGCSimHitVariables.h:27
MuonPRDTest
Definition: CSCDigitVariables.h:10
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_stripNumber
VectorBranch< int > & m_NSWsTGC_stripNumber
Definition: sTGCSimHitVariables.h:41
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_FastDigitRsurfacePositionX
VectorBranch< float > & m_NSWsTGC_FastDigitRsurfacePositionX
Definition: sTGCSimHitVariables.h:39
MuonPRDTest::sTGCSimHitVariables
Definition: sTGCSimHitVariables.h:13
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_particleEncoding
VectorBranch< int > & m_NSWsTGC_particleEncoding
Definition: sTGCSimHitVariables.h:25
MuonPRDTest::sTGCSimHitVariables::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: sTGCSimHitVariables.cxx:14
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_nSimHits
ScalarBranch< unsigned int > & m_NSWsTGC_nSimHits
Definition: sTGCSimHitVariables.h:30
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_hitToDsurfacePosition
ThreeVectorBranch m_NSWsTGC_hitToDsurfacePosition
Definition: sTGCSimHitVariables.h:37