ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonValidation
MuonPRDTest
MuonPRDTest
MDTSimHitVariables.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 MDTSimHitVariables_H
6
#define MDTSimHitVariables_H
7
8
#include "
MuonPRDTest/PrdTesterModule.h
"
9
#include "
MuonSimEvent/MDTSimHitCollection.h
"
10
namespace
MuonPRDTest
{
11
class
MDTSimHitVariables
:
public
PrdTesterModule
{
12
public
:
13
MDTSimHitVariables
(
MuonTesterTree
&
tree
,
const
std::string& container_name, MSG::Level msglvl);
14
15
~MDTSimHitVariables
() =
default
;
16
17
bool
fill
(
const
EventContext& ctx)
override
final
;
18
19
bool
declare_keys
() override final;
20
21
private
:
22
SG
::ReadHandleKey<
MDTSimHitCollection
>
m_simHitKey
{};
23
24
MdtIdentifierBranch
m_MDT_id
{
parent
(),
"MDT_Sim"
};
25
VectorBranch<float>
&
m_MDT_globalTime
{
parent
().
newVector
<
float
>(
"MDT_Sim_globalTime"
)};
26
ThreeVectorBranch
m_MDT_hitLocalPosition
{
parent
(),
"MDT_Sim_hitLocalPosition"
};
27
ThreeVectorBranch
m_MDT_hitGlobalPosition
{
parent
(),
"MDT_Sim_hitGlobalPosition"
};
28
ThreeVectorBranch
m_MDT_detector_globalPosition
{
parent
(),
"MDT_Sim_detGlobalPosition"
};
29
VectorBranch<float>
&
m_MDT_driftRadius
{
parent
().
newVector
<
float
>(
"MDT_Sim_driftRadius"
)};
30
31
VectorBranch<int>
&
m_MDT_particleEncoding
{
parent
().
newVector
<
int
>(
"MDT_Sim_particleEncoding"
)};
32
VectorBranch<float>
&
m_MDT_kineticEnergy
{
parent
().
newVector
<
float
>(
"MDT_Sim_kineticEnergy"
)};
33
VectorBranch<float>
&
m_MDT_depositEnergy
{
parent
().
newVector
<
float
>(
"MDT_Sim_depositEnergy"
)};
34
VectorBranch<float>
&
m_MDT_StepLength
{
parent
().
newVector
<
float
>(
"MDT_Sim_StepLength"
)};
35
VectorBranch<int>
&
m_MDT_trackId
{
parent
().
newVector
<
int
>(
"MDT_Sim_trackId"
)};
36
VectorBranch<int>
&
m_MDT_truthEl
{
parent
().
newVector
<
int
>(
"MDT_Sim_truthEl"
)};
37
ScalarBranch<unsigned int>
&
m_MDT_nSimHits
{
parent
().
newScalar
<
unsigned
int
>(
"MDT_Sim_nHits"
)};
38
};
39
}
// namespace MuonPRDTest
40
#endif
// MDTSimHitVariables_H
MDTSimHitCollection.h
MDTSimHitCollection
AtlasHitsVector< MDTSimHit > MDTSimHitCollection
Definition
MDTSimHitCollection.h:14
PrdTesterModule.h
MuonPRDTest::MDTSimHitVariables::m_MDT_id
MdtIdentifierBranch m_MDT_id
Definition
MDTSimHitVariables.h:24
MuonPRDTest::MDTSimHitVariables::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
MDTSimHitVariables.cxx:14
MuonPRDTest::MDTSimHitVariables::declare_keys
bool declare_keys() override final
Definition
MDTSimHitVariables.cxx:95
MuonPRDTest::MDTSimHitVariables::MDTSimHitVariables
MDTSimHitVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
Definition
MDTSimHitVariables.cxx:12
MuonPRDTest::MDTSimHitVariables::m_MDT_detector_globalPosition
ThreeVectorBranch m_MDT_detector_globalPosition
Definition
MDTSimHitVariables.h:28
MuonPRDTest::MDTSimHitVariables::m_MDT_hitLocalPosition
ThreeVectorBranch m_MDT_hitLocalPosition
Definition
MDTSimHitVariables.h:26
MuonPRDTest::MDTSimHitVariables::m_MDT_trackId
VectorBranch< int > & m_MDT_trackId
Definition
MDTSimHitVariables.h:35
MuonPRDTest::MDTSimHitVariables::m_MDT_nSimHits
ScalarBranch< unsigned int > & m_MDT_nSimHits
Definition
MDTSimHitVariables.h:37
MuonPRDTest::MDTSimHitVariables::m_MDT_kineticEnergy
VectorBranch< float > & m_MDT_kineticEnergy
Definition
MDTSimHitVariables.h:32
MuonPRDTest::MDTSimHitVariables::m_simHitKey
SG::ReadHandleKey< MDTSimHitCollection > m_simHitKey
Definition
MDTSimHitVariables.h:22
MuonPRDTest::MDTSimHitVariables::m_MDT_hitGlobalPosition
ThreeVectorBranch m_MDT_hitGlobalPosition
Definition
MDTSimHitVariables.h:27
MuonPRDTest::MDTSimHitVariables::m_MDT_driftRadius
VectorBranch< float > & m_MDT_driftRadius
Definition
MDTSimHitVariables.h:29
MuonPRDTest::MDTSimHitVariables::~MDTSimHitVariables
~MDTSimHitVariables()=default
MuonPRDTest::MDTSimHitVariables::m_MDT_globalTime
VectorBranch< float > & m_MDT_globalTime
Definition
MDTSimHitVariables.h:25
MuonPRDTest::MDTSimHitVariables::m_MDT_StepLength
VectorBranch< float > & m_MDT_StepLength
Definition
MDTSimHitVariables.h:34
MuonPRDTest::MDTSimHitVariables::m_MDT_particleEncoding
VectorBranch< int > & m_MDT_particleEncoding
Definition
MDTSimHitVariables.h:31
MuonPRDTest::MDTSimHitVariables::m_MDT_depositEnergy
VectorBranch< float > & m_MDT_depositEnergy
Definition
MDTSimHitVariables.h:33
MuonPRDTest::MDTSimHitVariables::m_MDT_truthEl
VectorBranch< int > & m_MDT_truthEl
Definition
MDTSimHitVariables.h:36
MuonPRDTest::PrdTesterModule::PrdTesterModule
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
Definition
PrdTesterModule.cxx:8
MuonVal::MdtIdentifierBranch
Branch to store all information of the MDT identifier.
Definition
IdentifierBranch.h:41
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::ThreeVectorBranch
Definition
ThreeVectorBranch.h:14
MuonVal::VectorBranch
Definition
VectorBranch.h:14
MuonPRDTest
Definition
MuonHitTesterAlg.h:15
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
private
#define private
Definition
testRead.cxx:27
Generated on
for ATLAS Offline Software by
1.17.0