ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonValidation
MuonPRDTest
MuonPRDTest
MMSDOVariables.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 MUONPRDTEST_MMSDOVARIABLES_H
6
#define MUONPRDTEST_MMSDOVARIABLES_H
7
8
#include "
MuonPRDTest/PrdTesterModule.h
"
9
#include "
MuonSimData/MuonSimDataCollection.h
"
10
11
namespace
MuonPRDTest
{
12
class
MMSDOVariables
:
public
PrdTesterModule
{
13
public
:
14
MMSDOVariables
(
MuonTesterTree
&
tree
,
const
std::string& container_name, MSG::Level msglvl);
15
16
~MMSDOVariables
() =
default
;
17
18
bool
fill
(
const
EventContext& ctx)
override
final
;
19
20
bool
declare_keys
() override final;
21
22
private
:
23
SG
::ReadHandleKey<
MuonSimDataCollection
>
m_key
{};
24
25
ScalarBranch<unsigned int>
&
m_NSWMM_nsdo
{
parent
().
newScalar
<
unsigned
int
>(
"nSDO_MM"
)};
26
MmIdentifierBranch
m_NSWMM_sdo_id
{
parent
(),
"SDO_MM"
};
27
VectorBranch<int>
&
m_NSWMM_sdo_word
{
parent
().
newVector
<
int
>(
"SDO_MM_word"
)};
28
VectorBranch<int>
&
m_NSWMM_sdo_barcode
{
parent
().
newVector
<
int
>(
"SDO_MM_barcode"
)};
29
VectorBranch<float>
&
m_NSWMM_sdo_globaltime
{
parent
().
newVector
<
float
>(
"SDO_MM_global_time"
)};
30
31
ThreeVectorBranch
m_NSWMM_dig_globalPos
{
parent
(),
"SDO_MM_globalPos"
};
32
VectorBranch<float>
&
m_NSWMM_sdo_localPosX
{
parent
().
newVector
<
float
>(
"SDO_MM_localPosX"
)};
33
VectorBranch<float>
&
m_NSWMM_sdo_localPosY
{
parent
().
newVector
<
float
>(
"SDO_MM_localPosY"
)};
34
};
35
};
36
37
#endif
// MMSDOVARIABLES_H
MuonSimDataCollection.h
PrdTesterModule.h
MuonPRDTest::MMSDOVariables::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
MMSDOVariables.cxx:13
MuonPRDTest::MMSDOVariables::m_NSWMM_nsdo
ScalarBranch< unsigned int > & m_NSWMM_nsdo
Definition
MMSDOVariables.h:25
MuonPRDTest::MMSDOVariables::m_NSWMM_sdo_localPosX
VectorBranch< float > & m_NSWMM_sdo_localPosX
Definition
MMSDOVariables.h:32
MuonPRDTest::MMSDOVariables::m_NSWMM_dig_globalPos
ThreeVectorBranch m_NSWMM_dig_globalPos
Definition
MMSDOVariables.h:31
MuonPRDTest::MMSDOVariables::m_NSWMM_sdo_id
MmIdentifierBranch m_NSWMM_sdo_id
Definition
MMSDOVariables.h:26
MuonPRDTest::MMSDOVariables::m_NSWMM_sdo_barcode
VectorBranch< int > & m_NSWMM_sdo_barcode
Definition
MMSDOVariables.h:28
MuonPRDTest::MMSDOVariables::MMSDOVariables
MMSDOVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
Definition
MMSDOVariables.cxx:8
MuonPRDTest::MMSDOVariables::m_NSWMM_sdo_globaltime
VectorBranch< float > & m_NSWMM_sdo_globaltime
Definition
MMSDOVariables.h:29
MuonPRDTest::MMSDOVariables::~MMSDOVariables
~MMSDOVariables()=default
MuonPRDTest::MMSDOVariables::declare_keys
bool declare_keys() override final
Definition
MMSDOVariables.cxx:11
MuonPRDTest::MMSDOVariables::m_key
SG::ReadHandleKey< MuonSimDataCollection > m_key
Definition
MMSDOVariables.h:23
MuonPRDTest::MMSDOVariables::m_NSWMM_sdo_word
VectorBranch< int > & m_NSWMM_sdo_word
Definition
MMSDOVariables.h:27
MuonPRDTest::MMSDOVariables::m_NSWMM_sdo_localPosY
VectorBranch< float > & m_NSWMM_sdo_localPosY
Definition
MMSDOVariables.h:33
MuonPRDTest::PrdTesterModule::PrdTesterModule
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
Definition
PrdTesterModule.cxx:8
MuonSimDataCollection
Definition
MuonSimDataCollection.h:21
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
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