ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonValidation
MuonPRDTest
MuonPRDTest
MDTPRDVariables.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef MuonPRDTEST_MDTPRDVARIABLES_H
6
#define MuonPRDTEST_MDTPRDVARIABLES_H
7
8
#include "
MuonPrepRawData/MdtPrepDataContainer.h
"
9
#include "
MuonPRDTest/PrdTesterModule.h
"
10
#include "
MuonTesterTree/TwoVectorBranch.h
"
11
12
namespace
MuonPRDTest
{
13
class
MDTPRDVariables
:
public
PrdTesterModule
{
14
public
:
15
MDTPRDVariables
(
MuonTesterTree
&
tree
,
const
std::string& container_name, MSG::Level msglvl);
16
17
~MDTPRDVariables
() =
default
;
18
19
bool
fill
(
const
EventContext& ctx)
override
final
;
20
21
bool
declare_keys
() override final;
22
23
private
:
24
SG
::ReadHandleKey<
Muon
::MdtPrepDataContainer>
m_key
{};
25
ScalarBranch<unsigned int>
&
m_MDT_nPRD
{
parent
().
newScalar
<
unsigned
int
>(
"N_PRD_MDT"
)};
26
27
ThreeVectorBranch
m_MDT_PRD_globalPos
{
parent
(),
"PRD_MDT_globalPos"
};
28
VectorBranch<double>
&
m_MDT_PRD_radius
{
parent
().
newVector
<
double
>(
"PRD_MDT_radius"
)};
29
MdtIdentifierBranch
m_MDT_PRD_id
{
parent
(),
"PRD_MDT"
};
30
VectorBranch<float>
&
m_MDT_PRD_error
{
parent
().
newVector
<
float
>(
"PRD_MDT_error"
)};
31
VectorBranch<int>
&
m_MDT_PRD_adc
{
parent
().
newVector
<
int
>(
"PRD_MDT_adc"
)};
32
VectorBranch<int>
&
m_MDT_PRD_tdc
{
parent
().
newVector
<
int
>(
"PRD_MDT_tdc"
)};
33
VectorBranch<int>
&
m_MDT_PRD_status
{
parent
().
newVector
<
int
>(
"PRD_MDT_status"
)};
34
};
35
};
36
37
#endif
// MuonPRDTEST_MDTPRDVARIABLES_H
MdtPrepDataContainer.h
PrdTesterModule.h
TwoVectorBranch.h
MuonPRDTest::MDTPRDVariables::~MDTPRDVariables
~MDTPRDVariables()=default
MuonPRDTest::MDTPRDVariables::m_MDT_PRD_error
VectorBranch< float > & m_MDT_PRD_error
Definition
MDTPRDVariables.h:30
MuonPRDTest::MDTPRDVariables::m_MDT_PRD_id
MdtIdentifierBranch m_MDT_PRD_id
Definition
MDTPRDVariables.h:29
MuonPRDTest::MDTPRDVariables::m_MDT_PRD_adc
VectorBranch< int > & m_MDT_PRD_adc
Definition
MDTPRDVariables.h:31
MuonPRDTest::MDTPRDVariables::m_MDT_PRD_globalPos
ThreeVectorBranch m_MDT_PRD_globalPos
Definition
MDTPRDVariables.h:27
MuonPRDTest::MDTPRDVariables::m_key
SG::ReadHandleKey< Muon::MdtPrepDataContainer > m_key
Definition
MDTPRDVariables.h:24
MuonPRDTest::MDTPRDVariables::m_MDT_PRD_status
VectorBranch< int > & m_MDT_PRD_status
Definition
MDTPRDVariables.h:33
MuonPRDTest::MDTPRDVariables::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
MDTPRDVariables.cxx:16
MuonPRDTest::MDTPRDVariables::m_MDT_PRD_radius
VectorBranch< double > & m_MDT_PRD_radius
Definition
MDTPRDVariables.h:28
MuonPRDTest::MDTPRDVariables::m_MDT_nPRD
ScalarBranch< unsigned int > & m_MDT_nPRD
Definition
MDTPRDVariables.h:25
MuonPRDTest::MDTPRDVariables::declare_keys
bool declare_keys() override final
Definition
MDTPRDVariables.cxx:14
MuonPRDTest::MDTPRDVariables::m_MDT_PRD_tdc
VectorBranch< int > & m_MDT_PRD_tdc
Definition
MDTPRDVariables.h:32
MuonPRDTest::MDTPRDVariables::MDTPRDVariables
MDTPRDVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
Definition
MDTPRDVariables.cxx:12
MuonPRDTest::PrdTesterModule::PrdTesterModule
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
Definition
PrdTesterModule.cxx:8
MuonVal::MdtIdentifierBranch
Branch to store all information of the MDT identifier.
Definition
IdentifierBranch.h:41
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
MuonPRDTest
Definition
MuonHitTesterAlg.h:15
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition
TrackSystemController.h:46
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