ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonValidation
MuonPRDTest
MuonPRDTest
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
8
#include "
MuonPRDTest/PrdTesterModule.h
"
9
#include "
MuonIdHelpers/sTgcIdHelper.h
"
10
#include "
MuonSimEvent/sTGCSimHitCollection.h
"
11
12
namespace
MuonPRDTest
{
13
class
sTGCSimHitVariables
:
public
PrdTesterModule
{
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
:
21
SG::ReadHandleKey<sTGCSimHitCollection>
m_key
{};
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"
)};
31
sTgcIdentifierBranch
m_NSWsTGC_Id
{
parent
(),
"Hits_sTGC_off"
};
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
PrdTesterModule.h
MuonPRDTest::PrdTesterModule::PrdTesterModule
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
Definition
PrdTesterModule.cxx:8
MuonPRDTest::sTGCSimHitVariables::declare_keys
bool declare_keys() override final
Definition
sTGCSimHitVariables.cxx:12
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_hitGlobalPrePosition
ThreeVectorBranch m_NSWsTGC_hitGlobalPrePosition
Definition
sTGCSimHitVariables.h:24
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_stripNumber
VectorBranch< int > & m_NSWsTGC_stripNumber
Definition
sTGCSimHitVariables.h:41
MuonPRDTest::sTGCSimHitVariables::sTGCSimHitVariables
sTGCSimHitVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
Definition
sTGCSimHitVariables.cxx:9
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_nSimHits
ScalarBranch< unsigned int > & m_NSWsTGC_nSimHits
Definition
sTGCSimHitVariables.h:30
MuonPRDTest::sTGCSimHitVariables::m_key
SG::ReadHandleKey< sTGCSimHitCollection > m_key
Definition
sTGCSimHitVariables.h:21
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_hitGlobalPosition
ThreeVectorBranch m_NSWsTGC_hitGlobalPosition
Definition
sTGCSimHitVariables.h:22
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_hitToDsurfacePosition
ThreeVectorBranch m_NSWsTGC_hitToDsurfacePosition
Definition
sTGCSimHitVariables.h:37
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_kineticEnergy
VectorBranch< float > & m_NSWsTGC_kineticEnergy
Definition
sTGCSimHitVariables.h:26
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_globalTime
VectorBranch< float > & m_NSWsTGC_globalTime
Definition
sTGCSimHitVariables.h:32
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_depositEnergy
VectorBranch< float > & m_NSWsTGC_depositEnergy
Definition
sTGCSimHitVariables.h:27
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_wedgeType
VectorBranch< int > & m_NSWsTGC_wedgeType
Definition
sTGCSimHitVariables.h:35
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_hitToRsurfacePosition
ThreeVectorBranch m_NSWsTGC_hitToRsurfacePosition
Definition
sTGCSimHitVariables.h:38
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_particleEncoding
VectorBranch< int > & m_NSWsTGC_particleEncoding
Definition
sTGCSimHitVariables.h:25
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_detectorNumber
VectorBranch< int > & m_NSWsTGC_detectorNumber
Definition
sTGCSimHitVariables.h:33
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_isInsideBounds
VectorBranch< bool > & m_NSWsTGC_isInsideBounds
Definition
sTGCSimHitVariables.h:28
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_wedgeId
VectorBranch< int > & m_NSWsTGC_wedgeId
Definition
sTGCSimHitVariables.h:34
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_detector_globalPosition
ThreeVectorBranch m_NSWsTGC_detector_globalPosition
Definition
sTGCSimHitVariables.h:36
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_FastDigitRsurfacePositionX
VectorBranch< float > & m_NSWsTGC_FastDigitRsurfacePositionX
Definition
sTGCSimHitVariables.h:39
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_trackId
VectorBranch< int > & m_NSWsTGC_trackId
Definition
sTGCSimHitVariables.h:29
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_hitGlobalDirection
ThreeVectorBranch m_NSWsTGC_hitGlobalDirection
Definition
sTGCSimHitVariables.h:23
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_Id
sTgcIdentifierBranch m_NSWsTGC_Id
Definition
sTGCSimHitVariables.h:31
MuonPRDTest::sTGCSimHitVariables::m_NSWsTGC_FastDigitRsurfacePositionY
VectorBranch< float > & m_NSWsTGC_FastDigitRsurfacePositionY
Definition
sTGCSimHitVariables.h:40
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
MuonVal::sTgcIdentifierBranch
Branch to store all information of the sTgcIdentifier.
Definition
IdentifierBranch.h:96
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
sTGCSimHitCollection.h
sTgcIdHelper.h
Generated on
for ATLAS Offline Software by
1.17.0