ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonValidation
MuonPRDTest
MuonPRDTest
RPCSDOVariables.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef MUONPRDTEST_RPCSDOVARIABLES_H
6
#define MUONPRDTEST_RPCSDOVARIABLES_H
7
8
#include "
MuonPRDTest/PrdTesterModule.h
"
9
#include "
MuonSimData/MuonSimDataCollection.h
"
10
11
#include "
MuonTesterTree/TwoVectorBranch.h
"
12
#include "
MuonTesterTree/ThreeVectorBranch.h
"
13
14
namespace
MuonPRDTest
{
15
class
RpcSDOVariables
:
public
PrdTesterModule
{
16
public
:
17
RpcSDOVariables
(
MuonTesterTree
&
tree
,
const
std::string& container_name, MSG::Level msglvl);
18
19
~RpcSDOVariables
() =
default
;
20
21
bool
fill
(
const
EventContext& ctx)
override
final
;
22
23
bool
declare_keys
() override final;
24
25
private
:
26
SG
::ReadHandleKey<
MuonSimDataCollection
>
m_key
{};
27
28
ScalarBranch<unsigned int>
&
m_rpc_nsdo
{
parent
().
newScalar
<
unsigned
int
>(
"nSDO_RPC"
)};
29
RpcIdentifierBranch
m_rpc_sdo_id
{
parent
(),
"SDO_RPC"
};
30
VectorBranch<int>
&
m_rpc_sdo_word
{
parent
().
newVector
<
int
>(
"SDO_RPC_word"
)};
31
VectorBranch<int>
&
m_rpc_sdo_barcode
{
parent
().
newVector
<
int
>(
"SDO_RPC_barcode"
)};
32
VectorBranch<float>
&
m_rpc_sdo_globaltime
{
parent
().
newVector
<
float
>(
"SDO_RPC_globalTime"
)};
33
34
ThreeVectorBranch
m_RPC_dig_globalPos
{
parent
(),
"SDO_RPC_globalPos"
};
35
TwoVectorBranch
m_RPC_dig_localPos
{
parent
(),
"SDO_RPC_localPos"
};
36
37
};
38
}
// namespace MuonPRDTest
39
#endif
// RPCSDOVARIABLES_H
MuonSimDataCollection.h
PrdTesterModule.h
ThreeVectorBranch.h
TwoVectorBranch.h
MuonPRDTest::PrdTesterModule::PrdTesterModule
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
Definition
PrdTesterModule.cxx:8
MuonPRDTest::RpcSDOVariables::m_rpc_nsdo
ScalarBranch< unsigned int > & m_rpc_nsdo
Definition
RPCSDOVariables.h:28
MuonPRDTest::RpcSDOVariables::m_rpc_sdo_id
RpcIdentifierBranch m_rpc_sdo_id
Definition
RPCSDOVariables.h:29
MuonPRDTest::RpcSDOVariables::m_rpc_sdo_globaltime
VectorBranch< float > & m_rpc_sdo_globaltime
Definition
RPCSDOVariables.h:32
MuonPRDTest::RpcSDOVariables::~RpcSDOVariables
~RpcSDOVariables()=default
MuonPRDTest::RpcSDOVariables::m_rpc_sdo_word
VectorBranch< int > & m_rpc_sdo_word
Definition
RPCSDOVariables.h:30
MuonPRDTest::RpcSDOVariables::m_rpc_sdo_barcode
VectorBranch< int > & m_rpc_sdo_barcode
Definition
RPCSDOVariables.h:31
MuonPRDTest::RpcSDOVariables::declare_keys
bool declare_keys() override final
Definition
RPCSDOVariables.cxx:12
MuonPRDTest::RpcSDOVariables::m_RPC_dig_globalPos
ThreeVectorBranch m_RPC_dig_globalPos
Definition
RPCSDOVariables.h:34
MuonPRDTest::RpcSDOVariables::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
RPCSDOVariables.cxx:14
MuonPRDTest::RpcSDOVariables::RpcSDOVariables
RpcSDOVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
Definition
RPCSDOVariables.cxx:9
MuonPRDTest::RpcSDOVariables::m_RPC_dig_localPos
TwoVectorBranch m_RPC_dig_localPos
Definition
RPCSDOVariables.h:35
MuonPRDTest::RpcSDOVariables::m_key
SG::ReadHandleKey< MuonSimDataCollection > m_key
Definition
RPCSDOVariables.h:26
MuonSimDataCollection
Definition
MuonSimDataCollection.h:21
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::TwoVectorBranch
Definition
TwoVectorBranch.h:15
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