ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonValidation
MuonPRDTest
MuonPRDTest
TGCSimHitVariables.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 TGCSimHitVariables_H
6
#define TGCSimHitVariables_H
7
8
#include "
MuonPRDTest/PrdTesterModule.h
"
9
#include "
MuonSimEvent/TGCSimHitCollection.h
"
10
namespace
MuonPRDTest
{
11
class
TGCSimHitVariables
:
public
PrdTesterModule
{
12
public
:
13
TGCSimHitVariables
(
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
:
19
SG::ReadHandleKey<TGCSimHitCollection>
m_key
{};
20
21
22
TgcIdentifierBranch
m_TGC_id
{
parent
(),
"TGC_Sim"
};
23
VectorBranch<float>
&
m_TGC_globalTime
{
parent
().
newVector
<
float
>(
"TGC_Sim_globalTime"
)};
24
25
ThreeVectorBranch
m_TGC_hitLocalPosition
{
parent
(),
"TGC_Sim_hitLocalPosition"
} ;
26
ThreeVectorBranch
m_TGC_hitGlobalPosition
{
parent
(),
"TGC_Sim_hitGlobalPosition"
};
27
ThreeVectorBranch
m_TGC_detector_globalPosition
{
parent
(),
"TGC_Sim_detGlobalPosition"
};
28
29
VectorBranch<int>
&
m_TGC_particleEncoding
{
parent
().
newVector
<
int
>(
"TGC_Sim_particleEncoding"
)};
30
VectorBranch<float>
&
m_TGC_kineticEnergy
{
parent
().
newVector
<
float
>(
"TGC_Sim_kineticEnergy"
)};
31
VectorBranch<float>
&
m_TGC_depositEnergy
{
parent
().
newVector
<
float
>(
"TGC_Sim_depositEnergy"
)};
32
VectorBranch<float>
&
m_TGC_StepLength
{
parent
().
newVector
<
float
>(
"TGC_Sim_StepLength"
)};
33
VectorBranch<int>
&
m_TGC_trackId
{
parent
().
newVector
<
int
>(
"TGC_Sim_trackId"
)};
34
VectorBranch<int>
&
m_TGC_truthEl
{
parent
().
newVector
<
int
>(
"TGC_Sim_truthEl"
)};
35
ScalarBranch<unsigned int>
&
m_TGC_nSimHits
{
parent
().
newScalar
<
unsigned
int
>(
"TGC_Sim_nHits"
)};
36
};
37
};
38
#endif
// TGCSimHitVariables_H
PrdTesterModule.h
TGCSimHitCollection.h
MuonPRDTest::PrdTesterModule::PrdTesterModule
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
Definition
PrdTesterModule.cxx:8
MuonPRDTest::TGCSimHitVariables::m_TGC_depositEnergy
VectorBranch< float > & m_TGC_depositEnergy
Definition
TGCSimHitVariables.h:31
MuonPRDTest::TGCSimHitVariables::m_TGC_globalTime
VectorBranch< float > & m_TGC_globalTime
Definition
TGCSimHitVariables.h:23
MuonPRDTest::TGCSimHitVariables::m_TGC_trackId
VectorBranch< int > & m_TGC_trackId
Definition
TGCSimHitVariables.h:33
MuonPRDTest::TGCSimHitVariables::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
TGCSimHitVariables.cxx:16
MuonPRDTest::TGCSimHitVariables::m_TGC_detector_globalPosition
ThreeVectorBranch m_TGC_detector_globalPosition
Definition
TGCSimHitVariables.h:27
MuonPRDTest::TGCSimHitVariables::TGCSimHitVariables
TGCSimHitVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
Definition
TGCSimHitVariables.cxx:12
MuonPRDTest::TGCSimHitVariables::m_TGC_hitLocalPosition
ThreeVectorBranch m_TGC_hitLocalPosition
Definition
TGCSimHitVariables.h:25
MuonPRDTest::TGCSimHitVariables::m_TGC_nSimHits
ScalarBranch< unsigned int > & m_TGC_nSimHits
Definition
TGCSimHitVariables.h:35
MuonPRDTest::TGCSimHitVariables::m_TGC_hitGlobalPosition
ThreeVectorBranch m_TGC_hitGlobalPosition
Definition
TGCSimHitVariables.h:26
MuonPRDTest::TGCSimHitVariables::m_TGC_StepLength
VectorBranch< float > & m_TGC_StepLength
Definition
TGCSimHitVariables.h:32
MuonPRDTest::TGCSimHitVariables::m_TGC_truthEl
VectorBranch< int > & m_TGC_truthEl
Definition
TGCSimHitVariables.h:34
MuonPRDTest::TGCSimHitVariables::m_TGC_id
TgcIdentifierBranch m_TGC_id
Definition
TGCSimHitVariables.h:22
MuonPRDTest::TGCSimHitVariables::m_TGC_particleEncoding
VectorBranch< int > & m_TGC_particleEncoding
Definition
TGCSimHitVariables.h:29
MuonPRDTest::TGCSimHitVariables::m_TGC_kineticEnergy
VectorBranch< float > & m_TGC_kineticEnergy
Definition
TGCSimHitVariables.h:30
MuonPRDTest::TGCSimHitVariables::declare_keys
bool declare_keys() override final
Definition
TGCSimHitVariables.cxx:14
MuonPRDTest::TGCSimHitVariables::m_key
SG::ReadHandleKey< TGCSimHitCollection > m_key
Definition
TGCSimHitVariables.h:19
MuonVal::MuonTesterBranch::parent
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
Definition
MuonTesterBranch.cxx:38
MuonVal::MuonTesterBranch::tree
TTree * tree() override final
Returns the underlying TTree object.
Definition
MuonTesterBranch.cxx:53
MuonVal::MuonTesterTree
Definition
MuonTesterTree.h:38
MuonVal::MuonTesterTree::newVector
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
MuonVal::MuonTesterTree::newScalar
ScalarBranch< T > & newScalar(const std::string &name)
MuonVal::ScalarBranch
Definition
ScalarBranch.h:12
MuonVal::TgcIdentifierBranch
Branch to store all information of the TgcIdentifier.
Definition
IdentifierBranch.h:83
MuonVal::ThreeVectorBranch
Definition
ThreeVectorBranch.h:14
MuonVal::VectorBranch
Definition
VectorBranch.h:14
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
MuonPRDTest
Definition
MuonHitTesterAlg.h:15
Generated on
for ATLAS Offline Software by
1.17.0