ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonValidation
MuonPRDTest
MuonPRDTest
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
8
#include "
MuonPRDTest/PrdTesterModule.h
"
9
#include "
MuonIdHelpers/MmIdHelper.h
"
10
#include "
MuonSimEvent/MMSimHitCollection.h
"
11
12
namespace
MuonPRDTest
{
13
class
MMSimHitVariables
:
public
PrdTesterModule
{
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
:
21
SG::ReadHandleKey<MMSimHitCollection>
m_key
{};
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"
)};
30
MmIdentifierBranch
m_NSWMM_Id
{
parent
(),
"Hits_MM_off"
};
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
MMSimHitCollection.h
MmIdHelper.h
PrdTesterModule.h
MuonPRDTest::MMSimHitVariables::m_NSWMM_hitGlobalPosition
ThreeVectorBranch m_NSWMM_hitGlobalPosition
Definition
MMSimHitVariables.h:22
MuonPRDTest::MMSimHitVariables::m_NSWMM_nSimHits
ScalarBranch< unsigned int > & m_NSWMM_nSimHits
Definition
MMSimHitVariables.h:29
MuonPRDTest::MMSimHitVariables::m_NSWMM_Id
MmIdentifierBranch m_NSWMM_Id
Definition
MMSimHitVariables.h:30
MuonPRDTest::MMSimHitVariables::m_NSWMM_globalTime
VectorBranch< float > & m_NSWMM_globalTime
Definition
MMSimHitVariables.h:31
MuonPRDTest::MMSimHitVariables::m_NSWMM_trackId
VectorBranch< int > & m_NSWMM_trackId
Definition
MMSimHitVariables.h:28
MuonPRDTest::MMSimHitVariables::m_NSWMM_depositEnergy
VectorBranch< float > & m_NSWMM_depositEnergy
Definition
MMSimHitVariables.h:26
MuonPRDTest::MMSimHitVariables::m_NSWMM_hitToDsurfacePosition
ThreeVectorBranch m_NSWMM_hitToDsurfacePosition
Definition
MMSimHitVariables.h:33
MuonPRDTest::MMSimHitVariables::m_NSWMM_FastDigitRsurfacePositionY
VectorBranch< float > & m_NSWMM_FastDigitRsurfacePositionY
Definition
MMSimHitVariables.h:36
MuonPRDTest::MMSimHitVariables::m_NSWMM_particleEncoding
VectorBranch< int > & m_NSWMM_particleEncoding
Definition
MMSimHitVariables.h:24
MuonPRDTest::MMSimHitVariables::declare_keys
bool declare_keys() override final
Definition
MMSimHitVariables.cxx:13
MuonPRDTest::MMSimHitVariables::m_NSWMM_FastDigitRsurfacePositionX
VectorBranch< float > & m_NSWMM_FastDigitRsurfacePositionX
Definition
MMSimHitVariables.h:35
MuonPRDTest::MMSimHitVariables::m_NSWMM_kineticEnergy
VectorBranch< float > & m_NSWMM_kineticEnergy
Definition
MMSimHitVariables.h:25
MuonPRDTest::MMSimHitVariables::m_NSWMM_isInsideBounds
VectorBranch< bool > & m_NSWMM_isInsideBounds
Definition
MMSimHitVariables.h:27
MuonPRDTest::MMSimHitVariables::m_NSWMM_detector_globalPosition
ThreeVectorBranch m_NSWMM_detector_globalPosition
Definition
MMSimHitVariables.h:32
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_hitGlobalDirection
ThreeVectorBranch m_NSWMM_hitGlobalDirection
Definition
MMSimHitVariables.h:23
MuonPRDTest::MMSimHitVariables::m_NSWMM_hitToRsurfacePosition
ThreeVectorBranch m_NSWMM_hitToRsurfacePosition
Definition
MMSimHitVariables.h:34
MuonPRDTest::MMSimHitVariables::m_key
SG::ReadHandleKey< MMSimHitCollection > m_key
Definition
MMSimHitVariables.h:21
MuonPRDTest::MMSimHitVariables::MMSimHitVariables
MMSimHitVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
Definition
MMSimHitVariables.cxx:10
MuonPRDTest::PrdTesterModule::PrdTesterModule
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
Definition
PrdTesterModule.cxx:8
MuonVal::MmIdentifierBranch
Branch to store all information of the MmIdentifier.
Definition
IdentifierBranch.h:110
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
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