ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonValidation
MuonPRDTest
MuonPRDTest
MMPRDVariables.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_MMPRDVARIABLES_H
6
#define MuonPRDTEST_MMPRDVARIABLES_H
7
8
#include "
MuonPRDTest/PrdTesterModule.h
"
9
#include "
MuonTesterTree/TwoVectorBranch.h
"
10
#include "
MuonPrepRawData/MMPrepDataContainer.h
"
11
#include "
MuonRDO/MM_RawDataContainer.h
"
12
13
14
namespace
MuonPRDTest
{
15
class
MMPRDVariables
:
public
PrdTesterModule
{
16
public
:
21
MMPRDVariables
(
MuonTesterTree
&
tree
,
22
const
std::string& prd_container_name,
23
MSG::Level msglvl);
24
25
~MMPRDVariables
() =
default
;
26
27
bool
fill
(
const
EventContext& ctx)
override
final
;
28
29
bool
declare_keys
() override final;
30
35
unsigned
int
push_back
(
const
Muon
::MMPrepData& prd);
36
38
void
dumpAllHitsInChamber
(
const
MuonGM
::MMReadoutElement& detEle);
40
void
enableSeededDump
();
41
private
:
42
unsigned
int
dump
(
const
Muon
::MMPrepData& prd);
43
SG
::ReadHandleKey<
Muon
::MMPrepDataContainer>
m_key
{};
44
ScalarBranch<unsigned int>
&
m_NSWMM_nPRD
{
parent
().
newScalar
<
unsigned
int
>(
"N_PRD_MM"
)};
45
VectorBranch<int>
&
m_NSWMM_PRD_time
{
parent
().
newVector
<
int
>(
"PRD_MM_time"
)};
46
VectorBranch<float>
&
m_NSWMM_PRD_covMatrix_1_1
{
parent
().
newVector
<
float
>(
"PRD_MM_covMatrix_1_1"
)};
47
VectorBranch<int>
&
m_NSWMM_PRD_nStrips
{
parent
().
newVector
<
int
>(
"PRD_MM_nStrips"
)};
48
TwoVectorBranch
m_NSWMM_PRD_localPos
{
parent
(),
"PRD_MM_localPos"
};
49
ThreeVectorBranch
m_NSWMM_PRD_globalPos
{
parent
(),
"PRD_MM_globalPos"
};
50
MatrixBranch<short unsigned>
&
m_NSWMM_PRD_stripNumbers
{
parent
().
newMatrix
<
short
unsigned
>(
"PRD_MM_stripNumbers"
)};
//numbers of strips associated to the PRD cluster
51
MatrixBranch<short int>
&
m_NSWMM_PRD_stripTimes
{
parent
().
newMatrix
<
short
int
>(
"PRD_MM_stripTimes"
)};
//times of strips associated to the PRD cluster
52
MatrixBranch<int>
&
m_NSWMM_PRD_stripCharges
{
parent
().
newMatrix
<
int
>(
"PRD_MM_stripCharges"
)};
//times of strips associated to the PRD cluster
53
MmIdentifierBranch
m_NSWMM_PRD_id
{
parent
(),
"PRD_MM"
};
54
VectorBranch<short>
&
m_NSWMM_PRD_author
{
parent
().
newVector
<
short
>(
"PRD_MM_author"
)};
55
VectorBranch<uint8_t>
&
m_NSWMM_PRD_quality
{
parent
().
newVector
<uint8_t>(
"PRD_MM_quality"
)};
56
58
std::unordered_set<Identifier>
m_filteredChamb
{};
60
std::unordered_map<Identifier, unsigned int>
m_filteredPRDs
{};
62
bool
m_applyFilter
{
false
};
64
bool
m_externalPush
{
false
};
65
66
67
};
68
};
69
70
#endif
// MuonPRDTEST_MMPRDVARIABLES_H
MMPrepDataContainer.h
MM_RawDataContainer.h
PrdTesterModule.h
TwoVectorBranch.h
MuonPRDTest::MMPRDVariables::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
MMPRDVariables.cxx:16
MuonPRDTest::MMPRDVariables::m_NSWMM_PRD_stripNumbers
MatrixBranch< short unsigned > & m_NSWMM_PRD_stripNumbers
Definition
MMPRDVariables.h:50
MuonPRDTest::MMPRDVariables::m_NSWMM_PRD_quality
VectorBranch< uint8_t > & m_NSWMM_PRD_quality
Definition
MMPRDVariables.h:55
MuonPRDTest::MMPRDVariables::enableSeededDump
void enableSeededDump()
Dumps only hits which are marked by the dumpAllHitsInChamber method.
Definition
MMPRDVariables.cxx:48
MuonPRDTest::MMPRDVariables::push_back
unsigned int push_back(const Muon::MMPrepData &prd)
Adds a prd to the output tree.
Definition
MMPRDVariables.cxx:44
MuonPRDTest::MMPRDVariables::m_NSWMM_PRD_covMatrix_1_1
VectorBranch< float > & m_NSWMM_PRD_covMatrix_1_1
Definition
MMPRDVariables.h:46
MuonPRDTest::MMPRDVariables::m_NSWMM_PRD_id
MmIdentifierBranch m_NSWMM_PRD_id
Definition
MMPRDVariables.h:53
MuonPRDTest::MMPRDVariables::m_filteredChamb
std::unordered_set< Identifier > m_filteredChamb
Set of chambers to be dumped.
Definition
MMPRDVariables.h:58
MuonPRDTest::MMPRDVariables::m_NSWMM_PRD_nStrips
VectorBranch< int > & m_NSWMM_PRD_nStrips
Definition
MMPRDVariables.h:47
MuonPRDTest::MMPRDVariables::dumpAllHitsInChamber
void dumpAllHitsInChamber(const MuonGM::MMReadoutElement &detEle)
Adds all hits in this particular chamber to the output n-tuple.
Definition
MMPRDVariables.cxx:51
MuonPRDTest::MMPRDVariables::m_key
SG::ReadHandleKey< Muon::MMPrepDataContainer > m_key
Definition
MMPRDVariables.h:43
MuonPRDTest::MMPRDVariables::m_NSWMM_PRD_stripTimes
MatrixBranch< short int > & m_NSWMM_PRD_stripTimes
Definition
MMPRDVariables.h:51
MuonPRDTest::MMPRDVariables::m_applyFilter
bool m_applyFilter
Apply a filter to dump the prds.
Definition
MMPRDVariables.h:62
MuonPRDTest::MMPRDVariables::MMPRDVariables
MMPRDVariables(MuonTesterTree &tree, const std::string &prd_container_name, MSG::Level msglvl)
Standard constructor taking the MuonTesterTree as parent The container name under which the MicroMega...
Definition
MMPRDVariables.cxx:11
MuonPRDTest::MMPRDVariables::m_NSWMM_PRD_author
VectorBranch< short > & m_NSWMM_PRD_author
Definition
MMPRDVariables.h:54
MuonPRDTest::MMPRDVariables::m_NSWMM_PRD_time
VectorBranch< int > & m_NSWMM_PRD_time
Definition
MMPRDVariables.h:45
MuonPRDTest::MMPRDVariables::declare_keys
bool declare_keys() override final
Definition
MMPRDVariables.cxx:14
MuonPRDTest::MMPRDVariables::~MMPRDVariables
~MMPRDVariables()=default
MuonPRDTest::MMPRDVariables::m_NSWMM_nPRD
ScalarBranch< unsigned int > & m_NSWMM_nPRD
Definition
MMPRDVariables.h:44
MuonPRDTest::MMPRDVariables::m_NSWMM_PRD_localPos
TwoVectorBranch m_NSWMM_PRD_localPos
Definition
MMPRDVariables.h:48
MuonPRDTest::MMPRDVariables::m_NSWMM_PRD_stripCharges
MatrixBranch< int > & m_NSWMM_PRD_stripCharges
Definition
MMPRDVariables.h:52
MuonPRDTest::MMPRDVariables::m_externalPush
bool m_externalPush
Flag telling whether an external prd has been pushed.
Definition
MMPRDVariables.h:64
MuonPRDTest::MMPRDVariables::m_filteredPRDs
std::unordered_map< Identifier, unsigned int > m_filteredPRDs
Set of particular chambers to be dumped.
Definition
MMPRDVariables.h:60
MuonPRDTest::MMPRDVariables::m_NSWMM_PRD_globalPos
ThreeVectorBranch m_NSWMM_PRD_globalPos
Definition
MMPRDVariables.h:49
MuonPRDTest::PrdTesterModule::PrdTesterModule
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
Definition
PrdTesterModule.cxx:8
MuonVal::MatrixBranch
Definition
MatrixBranch.h:12
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::newMatrix
MatrixBranch< T > & newMatrix(const std::string &name)
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::TwoVectorBranch
Definition
TwoVectorBranch.h:15
MuonVal::VectorBranch
Definition
VectorBranch.h:14
const
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