ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonValidation
MuonPRDTest
MuonPRDTest
sTGCSDOVariables.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_sTGCSDOVARIABLES_H
6
#define MUONPRDTEST_sTGCSDOVARIABLES_H
7
8
#include "
MuonPRDTest/PrdTesterModule.h
"
9
#include "
MuonSimData/MuonSimDataCollection.h
"
10
11
namespace
MuonPRDTest
{
12
class
sTgcSDOVariables
:
public
PrdTesterModule
{
13
public
:
14
sTgcSDOVariables
(
MuonTesterTree
&
tree
,
const
std::string& container_name, MSG::Level msglvl);
15
16
~sTgcSDOVariables
() =
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_NSWsTGC_nsdo
{
parent
().
newScalar
<
unsigned
int
>(
"nSDO_sTGC"
)};
26
sTgcIdentifierBranch
m_NSWsTGC_sdo_id
{
parent
(),
"SDO_sTGC"
};
27
VectorBranch<int>
&
m_NSWsTGC_sdo_word
{
parent
().
newVector
<
int
>(
"SDO_sTGC_word"
)};
28
VectorBranch<int>
&
m_NSWsTGC_sdo_barcode
{
parent
().
newVector
<
int
>(
"SDO_sTGC_barcode"
)};
29
VectorBranch<float>
&
m_NSWsTGC_sdo_globaltime
{
parent
().
newVector
<
float
>(
"SDO_sTGC_global_time"
)};
30
31
ThreeVectorBranch
m_NSWsTGC_dig_globalPos
{
parent
(),
"SDO_sTGC_globalPos"
};
32
VectorBranch<float>
&
m_NSWsTGC_sdo_E
{
parent
().
newVector
<
float
>(
"SDO_sTGC_E"
)};
33
VectorBranch<float>
&
m_NSWsTGC_sdo_tof
{
parent
().
newVector
<
float
>(
"SDO_sTGC_tof"
)};
34
VectorBranch<float>
&
m_NSWsTGC_sdo_localPosX
{
parent
().
newVector
<
float
>(
"SDO_sTGC_localPosX"
)};
35
VectorBranch<float>
&
m_NSWsTGC_sdo_localPosY
{
parent
().
newVector
<
float
>(
"SDO_sTGC_localPosY"
)};
36
};
37
};
38
39
#endif
// sTGCSDOVARIABLES_H
MuonSimDataCollection.h
PrdTesterModule.h
MuonPRDTest::PrdTesterModule::PrdTesterModule
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
Definition
PrdTesterModule.cxx:8
MuonPRDTest::sTgcSDOVariables::m_NSWsTGC_sdo_id
sTgcIdentifierBranch m_NSWsTGC_sdo_id
Definition
sTGCSDOVariables.h:26
MuonPRDTest::sTgcSDOVariables::declare_keys
bool declare_keys() override final
Definition
sTGCSDOVariables.cxx:12
MuonPRDTest::sTgcSDOVariables::m_key
SG::ReadHandleKey< MuonSimDataCollection > m_key
Definition
sTGCSDOVariables.h:23
MuonPRDTest::sTgcSDOVariables::m_NSWsTGC_dig_globalPos
ThreeVectorBranch m_NSWsTGC_dig_globalPos
Definition
sTGCSDOVariables.h:31
MuonPRDTest::sTgcSDOVariables::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
sTGCSDOVariables.cxx:14
MuonPRDTest::sTgcSDOVariables::m_NSWsTGC_sdo_globaltime
VectorBranch< float > & m_NSWsTGC_sdo_globaltime
Definition
sTGCSDOVariables.h:29
MuonPRDTest::sTgcSDOVariables::~sTgcSDOVariables
~sTgcSDOVariables()=default
MuonPRDTest::sTgcSDOVariables::m_NSWsTGC_nsdo
ScalarBranch< unsigned int > & m_NSWsTGC_nsdo
Definition
sTGCSDOVariables.h:25
MuonPRDTest::sTgcSDOVariables::m_NSWsTGC_sdo_word
VectorBranch< int > & m_NSWsTGC_sdo_word
Definition
sTGCSDOVariables.h:27
MuonPRDTest::sTgcSDOVariables::m_NSWsTGC_sdo_tof
VectorBranch< float > & m_NSWsTGC_sdo_tof
Definition
sTGCSDOVariables.h:33
MuonPRDTest::sTgcSDOVariables::m_NSWsTGC_sdo_E
VectorBranch< float > & m_NSWsTGC_sdo_E
Definition
sTGCSDOVariables.h:32
MuonPRDTest::sTgcSDOVariables::m_NSWsTGC_sdo_localPosX
VectorBranch< float > & m_NSWsTGC_sdo_localPosX
Definition
sTGCSDOVariables.h:34
MuonPRDTest::sTgcSDOVariables::sTgcSDOVariables
sTgcSDOVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
Definition
sTGCSDOVariables.cxx:9
MuonPRDTest::sTgcSDOVariables::m_NSWsTGC_sdo_barcode
VectorBranch< int > & m_NSWsTGC_sdo_barcode
Definition
sTGCSDOVariables.h:28
MuonPRDTest::sTgcSDOVariables::m_NSWsTGC_sdo_localPosY
VectorBranch< float > & m_NSWsTGC_sdo_localPosY
Definition
sTGCSDOVariables.h:35
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::ScalarBranch
Definition
ScalarBranch.h:12
MuonVal::ThreeVectorBranch
Definition
ThreeVectorBranch.h:14
MuonVal::VectorBranch
Definition
VectorBranch.h:14
MuonVal::sTgcIdentifierBranch
Branch to store all information of the sTgcIdentifier.
Definition
IdentifierBranch.h:96
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