ATLAS Offline Software
MMSimHitVariables.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 MMSimHitVariables_H
6 #define MMSimHitVariables_H
7 
11 
12 namespace MuonPRDTest{
14  public:
15  MMSimHitVariables(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_NSWMM_hitGlobalPosition{parent(), "Hits_MM_GlobalPosition"};
23  ThreeVectorBranch m_NSWMM_hitGlobalDirection{parent(), "Hits_MM_GlobalDirection"};
24  VectorBranch<int>& m_NSWMM_particleEncoding{parent().newVector<int>("Hits_MM_particleEncoding")};
25  VectorBranch<float>& m_NSWMM_kineticEnergy{parent().newVector<float>("Hits_MM_kineticEnergy")};
26  VectorBranch<float>& m_NSWMM_depositEnergy{parent().newVector<float>("Hits_MM_depositEnergy")};
27  VectorBranch<bool>& m_NSWMM_isInsideBounds{parent().newVector<bool>("Hits_MM_isInsideBounds")};
28  VectorBranch<int>& m_NSWMM_trackId{parent().newVector<int>("Hits_MM_trackId")};
29  ScalarBranch<unsigned int>& m_NSWMM_nSimHits{parent().newScalar<unsigned int>("Hits_MM_nHits")};
31  VectorBranch<float>& m_NSWMM_globalTime{parent().newVector<float>("Hits_MM_globalTime")};
32  ThreeVectorBranch m_NSWMM_detector_globalPosition{parent(), "Hits_MM_detector_globalPosition"};
33  ThreeVectorBranch m_NSWMM_hitToDsurfacePosition{parent(), "Hits_MM_hitToDsurfacePosition"};
34  ThreeVectorBranch m_NSWMM_hitToRsurfacePosition{parent(), "Hits_MM_hitToRsurfacePosition"};
35  VectorBranch<float>& m_NSWMM_FastDigitRsurfacePositionX{parent().newVector<float>("Hits_MM_FastDigitRsurfacePositionX")};
36  VectorBranch<float>& m_NSWMM_FastDigitRsurfacePositionY{parent().newVector<float>("Hits_MM_FastDigitRsurfacePositionY")};
37  };
38 };
39 
40 #endif // MMSimHitVariables_H
MuonPRDTest::MMSimHitVariables::m_NSWMM_hitGlobalPosition
ThreeVectorBranch m_NSWMM_hitGlobalPosition
Definition: MMSimHitVariables.h:22
MuonPRDTest::MMSimHitVariables::m_NSWMM_detector_globalPosition
ThreeVectorBranch m_NSWMM_detector_globalPosition
Definition: MMSimHitVariables.h:32
MuonPRDTest::MMSimHitVariables::m_NSWMM_nSimHits
ScalarBranch< unsigned int > & m_NSWMM_nSimHits
Definition: MMSimHitVariables.h:29
MuonPRDTest::MMSimHitVariables::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: MMSimHitVariables.cxx:15
MuonPRDTest::MMSimHitVariables::m_NSWMM_FastDigitRsurfacePositionX
VectorBranch< float > & m_NSWMM_FastDigitRsurfacePositionX
Definition: MMSimHitVariables.h:35
MuonPRDTest::MMSimHitVariables
Definition: MMSimHitVariables.h:13
MuonPRDTest::MMSimHitVariables::MMSimHitVariables
MMSimHitVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
Definition: MMSimHitVariables.cxx:10
MuonPRDTest::MMSimHitVariables::m_NSWMM_globalTime
VectorBranch< float > & m_NSWMM_globalTime
Definition: MMSimHitVariables.h:31
MuonPRDTest::MMSimHitVariables::declare_keys
bool declare_keys() override final
Definition: MMSimHitVariables.cxx:13
MuonVal::VectorBranch< int >
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
MuonPRDTest::MMSimHitVariables::m_NSWMM_particleEncoding
VectorBranch< int > & m_NSWMM_particleEncoding
Definition: MMSimHitVariables.h:24
MuonPRDTest::MMSimHitVariables::m_NSWMM_hitToRsurfacePosition
ThreeVectorBranch m_NSWMM_hitToRsurfacePosition
Definition: MMSimHitVariables.h:34
MuonPRDTest::MMSimHitVariables::m_NSWMM_kineticEnergy
VectorBranch< float > & m_NSWMM_kineticEnergy
Definition: MMSimHitVariables.h:25
MuonVal::ThreeVectorBranch
Definition: ThreeVectorBranch.h:19
MuonVal::MuonTesterBranch::tree
TTree * tree() override final
Returns the underlying TTree object.
Definition: MuonTesterBranch.cxx:53
MuonPRDTest::MMSimHitVariables::m_NSWMM_hitToDsurfacePosition
ThreeVectorBranch m_NSWMM_hitToDsurfacePosition
Definition: MMSimHitVariables.h:33
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
MuonVal::MmIdentifierBranch
Branch to store all information of the MmIdentifier.
Definition: IdentifierBranch.h:110
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
MuonPRDTest::PrdTesterModule
Definition: PrdTesterModule.h:15
MmIdHelper.h
MuonPRDTest::MMSimHitVariables::m_NSWMM_Id
MmIdentifierBranch m_NSWMM_Id
Definition: MMSimHitVariables.h:30
MuonPRDTest::MMSimHitVariables::m_NSWMM_FastDigitRsurfacePositionY
VectorBranch< float > & m_NSWMM_FastDigitRsurfacePositionY
Definition: MMSimHitVariables.h:36
MuonVal::MuonTesterTree::newVector
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
PrdTesterModule.h
MuonPRDTest::MMSimHitVariables::m_NSWMM_trackId
VectorBranch< int > & m_NSWMM_trackId
Definition: MMSimHitVariables.h:28
MuonVal::ScalarBranch< unsigned int >
MMSimHitCollection.h
MuonPRDTest::MMSimHitVariables::m_NSWMM_isInsideBounds
VectorBranch< bool > & m_NSWMM_isInsideBounds
Definition: MMSimHitVariables.h:27
MuonVal::MuonTesterTree::newScalar
ScalarBranch< T > & newScalar(const std::string &name)
MuonPRDTest::MMSimHitVariables::m_NSWMM_hitGlobalDirection
ThreeVectorBranch m_NSWMM_hitGlobalDirection
Definition: MMSimHitVariables.h:23
MuonVal::MuonTesterBranch::parent
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
Definition: MuonTesterBranch.cxx:38
MuonPRDTest::MMSimHitVariables::m_key
SG::ReadHandleKey< MMSimHitCollection > m_key
Definition: MMSimHitVariables.h:21
MuonPRDTest
Definition: CSCDigitVariables.h:10
MuonPRDTest::MMSimHitVariables::m_NSWMM_depositEnergy
VectorBranch< float > & m_NSWMM_depositEnergy
Definition: MMSimHitVariables.h:26