ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonValidation
MuonPRDTest
MuonPRDTest
CSCSimHitVariables.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 CSCSimHitVariables_H
6
#define CSCSimHitVariables_H
7
8
#include "
MuonPRDTest/PrdTesterModule.h
"
9
#include "
MuonSimEvent/CSCSimHitCollection.h
"
10
namespace
MuonPRDTest
{
11
class
CSCSimHitVariables
:
public
PrdTesterModule
{
12
public
:
13
CSCSimHitVariables
(
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<CSCSimHitCollection>
m_key
{};
20
21
22
CscIdentifierBranch
m_CSC_id
{
parent
(),
"CSC_Sim"
};
23
VectorBranch<float>
&
m_CSC_globalTime
{
parent
().
newVector
<
float
>(
"CSC_Sim_globalTime"
)};
24
ThreeVectorBranch
m_CSC_hitGlobalPosition
{
parent
(),
"CSC_Sim_hitGlobalPosition"
};
25
ThreeVectorBranch
m_CSC_detector_globalPosition
{
parent
(),
"CSC_Sim_detGlobalPosition"
};
26
27
VectorBranch<float>
&
m_CSC_kineticEnergy
{
parent
().
newVector
<
float
>(
"CSC_Sim_kineticEnergy"
)};
28
VectorBranch<float>
&
m_CSC_depositEnergy
{
parent
().
newVector
<
float
>(
"CSC_Sim_depositEnergy"
)};
29
VectorBranch<int>
&
m_CSC_trackId
{
parent
().
newVector
<
int
>(
"CSC_Sim_trackId"
)};
30
VectorBranch<int>
&
m_CSC_truthEl
{
parent
().
newVector
<
int
>(
"CSC_Sim_truthEl"
)};
31
ScalarBranch<unsigned int>
&
m_CSC_nSimHits
{
parent
().
newScalar
<
unsigned
int
>(
"CSC_Sim_nHits"
)};
32
};
33
};
34
#endif
// CSCSimHitVariables_H
CSCSimHitCollection.h
PrdTesterModule.h
MuonPRDTest::CSCSimHitVariables::CSCSimHitVariables
CSCSimHitVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
Definition
CSCSimHitVariables.cxx:12
MuonPRDTest::CSCSimHitVariables::m_CSC_trackId
VectorBranch< int > & m_CSC_trackId
Definition
CSCSimHitVariables.h:29
MuonPRDTest::CSCSimHitVariables::declare_keys
bool declare_keys() override final
Definition
CSCSimHitVariables.cxx:14
MuonPRDTest::CSCSimHitVariables::m_CSC_depositEnergy
VectorBranch< float > & m_CSC_depositEnergy
Definition
CSCSimHitVariables.h:28
MuonPRDTest::CSCSimHitVariables::m_CSC_hitGlobalPosition
ThreeVectorBranch m_CSC_hitGlobalPosition
Definition
CSCSimHitVariables.h:24
MuonPRDTest::CSCSimHitVariables::m_CSC_nSimHits
ScalarBranch< unsigned int > & m_CSC_nSimHits
Definition
CSCSimHitVariables.h:31
MuonPRDTest::CSCSimHitVariables::m_CSC_globalTime
VectorBranch< float > & m_CSC_globalTime
Definition
CSCSimHitVariables.h:23
MuonPRDTest::CSCSimHitVariables::m_CSC_kineticEnergy
VectorBranch< float > & m_CSC_kineticEnergy
Definition
CSCSimHitVariables.h:27
MuonPRDTest::CSCSimHitVariables::m_CSC_detector_globalPosition
ThreeVectorBranch m_CSC_detector_globalPosition
Definition
CSCSimHitVariables.h:25
MuonPRDTest::CSCSimHitVariables::m_CSC_id
CscIdentifierBranch m_CSC_id
Definition
CSCSimHitVariables.h:22
MuonPRDTest::CSCSimHitVariables::m_key
SG::ReadHandleKey< CSCSimHitCollection > m_key
Definition
CSCSimHitVariables.h:19
MuonPRDTest::CSCSimHitVariables::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
CSCSimHitVariables.cxx:16
MuonPRDTest::CSCSimHitVariables::m_CSC_truthEl
VectorBranch< int > & m_CSC_truthEl
Definition
CSCSimHitVariables.h:30
MuonPRDTest::PrdTesterModule::PrdTesterModule
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
Definition
PrdTesterModule.cxx:8
MuonVal::CscIdentifierBranch
Branch to store all information of the CscIdentifier.
Definition
IdentifierBranch.h:69
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