ATLAS Offline Software
Loading...
Searching...
No Matches
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
12namespace 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:
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")};
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
ThreeVectorBranch m_NSWMM_hitGlobalPosition
ScalarBranch< unsigned int > & m_NSWMM_nSimHits
VectorBranch< float > & m_NSWMM_globalTime
VectorBranch< int > & m_NSWMM_trackId
VectorBranch< float > & m_NSWMM_depositEnergy
ThreeVectorBranch m_NSWMM_hitToDsurfacePosition
VectorBranch< float > & m_NSWMM_FastDigitRsurfacePositionY
VectorBranch< int > & m_NSWMM_particleEncoding
VectorBranch< float > & m_NSWMM_FastDigitRsurfacePositionX
VectorBranch< float > & m_NSWMM_kineticEnergy
VectorBranch< bool > & m_NSWMM_isInsideBounds
ThreeVectorBranch m_NSWMM_detector_globalPosition
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_NSWMM_hitGlobalDirection
ThreeVectorBranch m_NSWMM_hitToRsurfacePosition
SG::ReadHandleKey< MMSimHitCollection > m_key
MMSimHitVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
Branch to store all information of the MmIdentifier.
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.