ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonValidation
MuonDQA
MuonTrackMonitoring
src
RecoMuonSegmentPlots.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
MuonTrackMonitoring/RecoMuonSegmentPlots.h
"
6
7
RecoMuonSegmentPlots::RecoMuonSegmentPlots
(
PlotBase
* pParent,
const
std::string& sDir,
bool
detail
):
PlotBase
(pParent, sDir)
8
,
m_oMuonSegmentPlots
(nullptr)
9
,
m_oMuonSegmentSlimPlots
(nullptr)
10
//declare the histograms
11
{
12
Detail
=
detail
;
13
if
(
Detail
)
m_oMuonSegmentPlots
=
new
Muon::MuonSegmentPlots
(
this
,
"/"
);
14
else
m_oMuonSegmentSlimPlots
=
new
Muon::MuonSegmentSlimPlots
(
this
,
"/"
);
15
}
16
17
//when the plot function called with a Muon Container
18
//loop through each muon, get the corresponding link and fill it
19
void
RecoMuonSegmentPlots::fill
(
const
xAOD::MuonContainer
& muContainer){
20
for
(
const
auto
mu : muContainer) {
21
fill
(*mu);
22
}
23
}
24
25
//when the plot function called with a Muon
26
//get's the corresponding link and fill it
27
//Tony 2015.9.21: fix to go around the segment link problem for now
28
void
RecoMuonSegmentPlots::fill
(
const
xAOD::Muon
& mu){
29
for
(
unsigned
int
seg = 0 ; seg < mu.nMuonSegments(); ++seg) {
30
assert(mu.muonSegment(seg) !=
nullptr
);
31
fill
(*mu.muonSegment(seg));
32
}
33
}
34
35
36
37
void
RecoMuonSegmentPlots::fill
(
const
xAOD::MuonSegment
& muonSeg) {
38
//General Plots
39
if
(
Detail
)
m_oMuonSegmentPlots
->fill(muonSeg);
40
else
m_oMuonSegmentSlimPlots
->fill(muonSeg);
41
}
42
43
void
RecoMuonSegmentPlots::initializePlots
()
44
{
45
//initialize temp plots
46
}
47
RecoMuonSegmentPlots.h
Muon::MuonSegmentPlots
Definition
MuonSegmentPlots.h:18
Muon::MuonSegmentSlimPlots
Definition
MuonSegmentSlimPlots.h:18
PlotBase::PlotBase
PlotBase(PlotBase *parent, std::string_view sDir)
Definition
PlotBase.cxx:29
RecoMuonSegmentPlots::m_oMuonSegmentPlots
Muon::MuonSegmentPlots * m_oMuonSegmentPlots
Definition
RecoMuonSegmentPlots.h:31
RecoMuonSegmentPlots::Detail
bool Detail
Definition
RecoMuonSegmentPlots.h:35
RecoMuonSegmentPlots::m_oMuonSegmentSlimPlots
Muon::MuonSegmentSlimPlots * m_oMuonSegmentSlimPlots
Definition
RecoMuonSegmentPlots.h:32
RecoMuonSegmentPlots::fill
void fill(const xAOD::MuonContainer &muContainer)
Definition
RecoMuonSegmentPlots.cxx:19
RecoMuonSegmentPlots::RecoMuonSegmentPlots
RecoMuonSegmentPlots(PlotBase *pParent, const std::string &sDir, bool detail=false)
Definition
RecoMuonSegmentPlots.cxx:7
RecoMuonSegmentPlots::initializePlots
void initializePlots()
Definition
RecoMuonSegmentPlots.cxx:43
detail
Definition
extract_histogram_tag.cxx:14
xAOD::Muon
Muon_v1 Muon
Reference the current persistent version:
Definition
Event/xAOD/xAODMuon/xAODMuon/Muon.h:13
xAOD::MuonContainer
MuonContainer_v1 MuonContainer
Definition of the current "Muon container version".
Definition
Event/xAOD/xAODMuon/xAODMuon/MuonContainer.h:14
xAOD::MuonSegment
MuonSegment_v1 MuonSegment
Reference the current persistent version:
Definition
Event/xAOD/xAODMuon/xAODMuon/MuonSegment.h:13
Generated on
for ATLAS Offline Software by
1.17.0