ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonValidation
MuonPRDTest
MuonPRDTest
RPCSimHitVariables.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 RPCSimHitVariables_H
6
#define RPCSimHitVariables_H
7
8
#include "
MuonPRDTest/PrdTesterModule.h
"
9
#include "
MuonSimData/MuonSimDataCollection.h
"
10
#include "
MuonSimEvent/RPCSimHitCollection.h
"
11
namespace
MuonPRDTest
{
12
class
RPCSimHitVariables
:
public
PrdTesterModule
{
13
public
:
14
RPCSimHitVariables
(
MuonTesterTree
&
tree
,
const
std::string& container_name, MSG::Level msglvl);
15
16
bool
fill
(
const
EventContext& ctx)
override
final
;
17
bool
declare_keys
()
override
final
;
18
19
private
:
20
SG::ReadHandleKey<RPCSimHitCollection>
m_key
{};
21
ThreeVectorBranch
m_RPC_hitGlobalPosition
{
parent
(),
"RPC_SIM_GlobalPosition"
};
22
VectorBranch<int>
&
m_RPC_particleEncoding
{
parent
().
newVector
<
int
>(
"RPC_SIM_particleEncoding"
)};
23
VectorBranch<float>
&
m_RPC_kineticEnergy
{
parent
().
newVector
<
float
>(
"RPC_SIM_kineticEnergy"
)};
24
VectorBranch<float>
&
m_RPC_depositEnergy
{
parent
().
newVector
<
float
>(
"RPC_SIM_depositEnergy"
)};
25
VectorBranch<float>
&
m_RPC_StepLength
{
parent
().
newVector
<
float
>(
"RPC_SIM_StepLength"
)};
26
VectorBranch<int>
&
m_RPC_trackId
{
parent
().
newVector
<
int
>(
"RPC_SIM_trackId"
)};
27
VectorBranch<int>
&
m_RPC_truthEl
{
parent
().
newVector
<
int
>(
"RPC_SIM_truthEl"
)};
28
ThreeVectorBranch
m_RPC_detector_globalPosition
{
parent
(),
"RPC_SIM_detector_globalPosition"
};
29
30
ScalarBranch<unsigned int>
&
m_RPC_nSimHits
{
parent
().
newScalar
<
unsigned
int
>(
"RPC_SIM_nHits"
)};
31
RpcIdentifierBranch
m_rpc_Id
{
parent
(),
"RPC_SIM"
};
32
33
VectorBranch<float>
&
m_RPC_globalTime
{
parent
().
newVector
<
float
>(
"RPC_SIM_globalTime"
)};
34
VectorBranch<float>
&
m_RPC_hitLocalPositionX
{
parent
().
newVector
<
float
>(
"RPC_SIM_localPostionX"
)};
35
VectorBranch<float>
&
m_RPC_hitLocalPositionY
{
parent
().
newVector
<
float
>(
"RPC_SIM_localPostionY"
)};
36
};
37
}
// namespace MuonPRDTest
38
#endif
// RPCSimHitVariables_H
MuonSimDataCollection.h
PrdTesterModule.h
RPCSimHitCollection.h
MuonPRDTest::PrdTesterModule::PrdTesterModule
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
Definition
PrdTesterModule.cxx:8
MuonPRDTest::RPCSimHitVariables::m_RPC_particleEncoding
VectorBranch< int > & m_RPC_particleEncoding
Definition
RPCSimHitVariables.h:22
MuonPRDTest::RPCSimHitVariables::RPCSimHitVariables
RPCSimHitVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
Definition
RPCSimHitVariables.cxx:11
MuonPRDTest::RPCSimHitVariables::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
RPCSimHitVariables.cxx:16
MuonPRDTest::RPCSimHitVariables::m_RPC_trackId
VectorBranch< int > & m_RPC_trackId
Definition
RPCSimHitVariables.h:26
MuonPRDTest::RPCSimHitVariables::m_RPC_truthEl
VectorBranch< int > & m_RPC_truthEl
Definition
RPCSimHitVariables.h:27
MuonPRDTest::RPCSimHitVariables::m_RPC_kineticEnergy
VectorBranch< float > & m_RPC_kineticEnergy
Definition
RPCSimHitVariables.h:23
MuonPRDTest::RPCSimHitVariables::m_rpc_Id
RpcIdentifierBranch m_rpc_Id
Definition
RPCSimHitVariables.h:31
MuonPRDTest::RPCSimHitVariables::m_RPC_depositEnergy
VectorBranch< float > & m_RPC_depositEnergy
Definition
RPCSimHitVariables.h:24
MuonPRDTest::RPCSimHitVariables::m_RPC_detector_globalPosition
ThreeVectorBranch m_RPC_detector_globalPosition
Definition
RPCSimHitVariables.h:28
MuonPRDTest::RPCSimHitVariables::m_RPC_hitLocalPositionY
VectorBranch< float > & m_RPC_hitLocalPositionY
Definition
RPCSimHitVariables.h:35
MuonPRDTest::RPCSimHitVariables::declare_keys
bool declare_keys() override final
Definition
RPCSimHitVariables.cxx:14
MuonPRDTest::RPCSimHitVariables::m_RPC_hitLocalPositionX
VectorBranch< float > & m_RPC_hitLocalPositionX
Definition
RPCSimHitVariables.h:34
MuonPRDTest::RPCSimHitVariables::m_RPC_hitGlobalPosition
ThreeVectorBranch m_RPC_hitGlobalPosition
Definition
RPCSimHitVariables.h:21
MuonPRDTest::RPCSimHitVariables::m_key
SG::ReadHandleKey< RPCSimHitCollection > m_key
Definition
RPCSimHitVariables.h:20
MuonPRDTest::RPCSimHitVariables::m_RPC_globalTime
VectorBranch< float > & m_RPC_globalTime
Definition
RPCSimHitVariables.h:33
MuonPRDTest::RPCSimHitVariables::m_RPC_StepLength
VectorBranch< float > & m_RPC_StepLength
Definition
RPCSimHitVariables.h:25
MuonPRDTest::RPCSimHitVariables::m_RPC_nSimHits
ScalarBranch< unsigned int > & m_RPC_nSimHits
Definition
RPCSimHitVariables.h:30
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::RpcIdentifierBranch
Definition
IdentifierBranch.h:53
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