ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonValidation
MuonPRDTest
MuonPRDTest
sTGCRDOVariables.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_sTGCRDOVARIABLES_H
6
#define MuonPRDTEST_sTGCRDOVARIABLES_H
7
8
#include "
MuonPRDTest/PrdTesterModule.h
"
9
#include "
MuonRDO/STGC_RawDataContainer.h
"
10
11
namespace
MuonPRDTest
{
12
class
sTGCRDOVariables
:
public
PrdTesterModule
{
13
public
:
14
sTGCRDOVariables
(
MuonTesterTree
&
tree
,
const
std::string& container_name, MSG::Level msglvl);
15
16
~sTGCRDOVariables
() =
default
;
17
18
bool
fill
(
const
EventContext& ctx)
override
final
;
19
20
bool
declare_keys
() override final;
21
26
unsigned
int
push_back
(
const
EventContext& ctx,
const
Muon
::STGC_RawData& rdo);
27
unsigned
int
push_back
(
const
EventContext& ctx,
const
Identifier
&
id
);
28
30
void
dumpAllHitsInChamber
(
const
MuonGM
::sTgcReadoutElement& detEle);
32
void
enableSeededDump
();
33
34
private
:
35
unsigned
int
dump
(
const
EventContext& ctx,
const
Muon
::STGC_RawData& rdo);
36
SG
::ReadHandleKey<
Muon
::STGC_RawDataContainer>
m_key
{};
37
ScalarBranch<unsigned int>
&
m_NSWsTGC_nRDO
{
parent
().
newScalar
<
unsigned
int
>(
"N_RDO_sTGC"
)};
38
VectorBranch<double>
&
m_NSWsTGC_rdo_time
{
parent
().
newVector
<
double
>(
"RDO_sTGC_time"
)};
39
VectorBranch<uint16_t>
&
m_NSWsTGC_rdo_charge
{
parent
().
newVector
<uint16_t>(
"RDO_sTGC_charge"
)};
40
VectorBranch<uint16_t>
&
m_NSWsTGC_rdo_tdo
{
parent
().
newVector
<uint16_t>(
"RDO_sTGC_tdo"
)};
41
VectorBranch<uint16_t>
&
m_NSWsTGC_rdo_bcTag
{
parent
().
newVector
<uint16_t>(
"RDO_sTGC_bcTag"
)};
42
VectorBranch<bool>
&
m_NSWsTGC_rdo_isDead
{
parent
().
newVector
<
bool
>(
"RDO_sTGC_isDead"
)};
43
VectorBranch<double>
&
m_NSWsTGC_rdo_localPosX
{
parent
().
newVector
<
double
>(
"RDO_sTGC_localPosX"
)};
44
VectorBranch<double>
&
m_NSWsTGC_rdo_localPosY
{
parent
().
newVector
<
double
>(
"RDO_sTGC_localPosY"
)};
45
ThreeVectorBranch
m_NSWsTGC_rdo_globalPos
{
parent
(),
"RDO_sTGC_globalPos"
};
46
sTgcIdentifierBranch
m_NSWsTGC_rdo_id
{
parent
(),
"RDO_sTGC"
};
47
49
std::unordered_set<IdentifierHash>
m_filteredChamb
{};
51
std::unordered_map<Identifier, unsigned int>
m_filteredRDOs
{};
53
bool
m_applyFilter
{
false
};
55
bool
m_externalPush
{
false
};
56
};
57
};
58
59
#endif
// MuonPRDTEST_sTGCRDOVARIABLES_H
PrdTesterModule.h
STGC_RawDataContainer.h
MuonPRDTest::PrdTesterModule::PrdTesterModule
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
Definition
PrdTesterModule.cxx:8
MuonPRDTest::sTGCRDOVariables::m_NSWsTGC_rdo_isDead
VectorBranch< bool > & m_NSWsTGC_rdo_isDead
Definition
sTGCRDOVariables.h:42
MuonPRDTest::sTGCRDOVariables::~sTGCRDOVariables
~sTGCRDOVariables()=default
MuonPRDTest::sTGCRDOVariables::push_back
unsigned int push_back(const EventContext &ctx, const Muon::STGC_RawData &rdo)
Adds a RDO to the output tree.
Definition
sTGCRDOVariables.cxx:40
MuonPRDTest::sTGCRDOVariables::m_NSWsTGC_rdo_bcTag
VectorBranch< uint16_t > & m_NSWsTGC_rdo_bcTag
Definition
sTGCRDOVariables.h:41
MuonPRDTest::sTGCRDOVariables::enableSeededDump
void enableSeededDump()
Dumps only hits which are marked by the dumpAllHitsInChamber method.
Definition
sTGCRDOVariables.cxx:45
MuonPRDTest::sTGCRDOVariables::m_NSWsTGC_rdo_globalPos
ThreeVectorBranch m_NSWsTGC_rdo_globalPos
Definition
sTGCRDOVariables.h:45
MuonPRDTest::sTGCRDOVariables::m_filteredChamb
std::unordered_set< IdentifierHash > m_filteredChamb
Set of chambers to be dumped.
Definition
sTGCRDOVariables.h:49
MuonPRDTest::sTGCRDOVariables::m_key
SG::ReadHandleKey< Muon::STGC_RawDataContainer > m_key
Definition
sTGCRDOVariables.h:36
MuonPRDTest::sTGCRDOVariables::m_applyFilter
bool m_applyFilter
Apply a filter to dump the prds.
Definition
sTGCRDOVariables.h:53
MuonPRDTest::sTGCRDOVariables::m_NSWsTGC_rdo_time
VectorBranch< double > & m_NSWsTGC_rdo_time
Definition
sTGCRDOVariables.h:38
MuonPRDTest::sTGCRDOVariables::dumpAllHitsInChamber
void dumpAllHitsInChamber(const MuonGM::sTgcReadoutElement &detEle)
Adds all hits in this particular chamber to the output n-tuple.
Definition
sTGCRDOVariables.cxx:47
MuonPRDTest::sTGCRDOVariables::m_NSWsTGC_nRDO
ScalarBranch< unsigned int > & m_NSWsTGC_nRDO
Definition
sTGCRDOVariables.h:37
MuonPRDTest::sTGCRDOVariables::declare_keys
bool declare_keys() override final
Definition
sTGCRDOVariables.cxx:13
MuonPRDTest::sTGCRDOVariables::m_externalPush
bool m_externalPush
Flag telling whether an external prd has been pushed.
Definition
sTGCRDOVariables.h:55
MuonPRDTest::sTGCRDOVariables::m_NSWsTGC_rdo_localPosX
VectorBranch< double > & m_NSWsTGC_rdo_localPosX
Definition
sTGCRDOVariables.h:43
MuonPRDTest::sTGCRDOVariables::m_NSWsTGC_rdo_localPosY
VectorBranch< double > & m_NSWsTGC_rdo_localPosY
Definition
sTGCRDOVariables.h:44
MuonPRDTest::sTGCRDOVariables::m_NSWsTGC_rdo_charge
VectorBranch< uint16_t > & m_NSWsTGC_rdo_charge
Definition
sTGCRDOVariables.h:39
MuonPRDTest::sTGCRDOVariables::m_NSWsTGC_rdo_tdo
VectorBranch< uint16_t > & m_NSWsTGC_rdo_tdo
Definition
sTGCRDOVariables.h:40
MuonPRDTest::sTGCRDOVariables::m_NSWsTGC_rdo_id
sTgcIdentifierBranch m_NSWsTGC_rdo_id
Definition
sTGCRDOVariables.h:46
MuonPRDTest::sTGCRDOVariables::m_filteredRDOs
std::unordered_map< Identifier, unsigned int > m_filteredRDOs
Set of particular chambers to be dumped.
Definition
sTGCRDOVariables.h:51
MuonPRDTest::sTGCRDOVariables::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
sTGCRDOVariables.cxx:15
MuonPRDTest::sTGCRDOVariables::sTGCRDOVariables
sTGCRDOVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
Definition
sTGCRDOVariables.cxx:11
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
const
Identifier
Definition
IdentifierFieldParser.cxx:14
MuonGM
Ensure that the Athena extensions are properly loaded.
Definition
GeoMuonHits.h:27
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
dump
-event-from-file
private
#define private
Definition
testRead.cxx:27
Generated on
for ATLAS Offline Software by
1.17.0