ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonValidation
MuonDQA
MuonPhysValMonitoring
src
MuonSegmentValidationPlots.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
MuonSegmentValidationPlots.h
"
6
7
MuonSegmentValidationPlots::MuonSegmentValidationPlots
(
PlotBase
* pParent,
const
std::string& sDir,
bool
isData) :
8
PlotBase
(pParent, sDir) {
9
m_oRecoSegmPlots
= std::make_unique<Muon::MuonSegmentPlots>(
this
,
"reco/MuonSegments/"
);
10
if
(!isData) {
11
m_oMatchedMuonSegmPlots
= std::make_unique<Muon::MuonSegmentPlots>(
this
,
"matched/MuonSegments/"
);
12
m_oMatchedMuonSegmDiffPlots
= std::make_unique<Muon::MuonSegmentTruthRelatedPlots>(
this
,
"matched/MuonSegments/"
);
13
m_oTruthMuonSegmPlots
= std::make_unique<Muon::MuonSegmentPlots>(
this
,
"truth/MuonSegments/"
);
14
}
15
}
16
17
MuonSegmentValidationPlots::~MuonSegmentValidationPlots
() =
default
;
18
19
void
MuonSegmentValidationPlots::fill
(
const
xAOD::MuonSegment
* truthMuSeg,
const
xAOD::MuonSegment
* muSeg,
float
weight) {
20
if
(truthMuSeg)
m_oTruthMuonSegmPlots
->fill(*truthMuSeg, weight);
21
if
(muSeg)
m_oRecoSegmPlots
->fill(*muSeg, weight);
22
23
if
((truthMuSeg) && (muSeg)) {
24
m_oMatchedMuonSegmPlots
->fill(*truthMuSeg, weight);
25
m_oMatchedMuonSegmDiffPlots
->fill(*truthMuSeg, *muSeg, weight);
26
}
27
}
28
29
void
MuonSegmentValidationPlots::fill
(
const
xAOD::MuonSegment
* muSeg,
float
weight) {
m_oRecoSegmPlots
->fill(*muSeg, weight); }
MuonSegmentValidationPlots.h
MuonSegmentValidationPlots::m_oMatchedMuonSegmPlots
std::unique_ptr< Muon::MuonSegmentPlots > m_oMatchedMuonSegmPlots
Definition
MuonSegmentValidationPlots.h:19
MuonSegmentValidationPlots::~MuonSegmentValidationPlots
~MuonSegmentValidationPlots()
MuonSegmentValidationPlots::fill
void fill(const xAOD::MuonSegment *truthMuSeg, const xAOD::MuonSegment *muSeg, float weight=1.0)
Definition
MuonSegmentValidationPlots.cxx:19
MuonSegmentValidationPlots::m_oMatchedMuonSegmDiffPlots
std::unique_ptr< Muon::MuonSegmentTruthRelatedPlots > m_oMatchedMuonSegmDiffPlots
Definition
MuonSegmentValidationPlots.h:20
MuonSegmentValidationPlots::m_oTruthMuonSegmPlots
std::unique_ptr< Muon::MuonSegmentPlots > m_oTruthMuonSegmPlots
Definition
MuonSegmentValidationPlots.h:21
MuonSegmentValidationPlots::MuonSegmentValidationPlots
MuonSegmentValidationPlots(PlotBase *pParent, const std::string &sDir, bool isData)
Definition
MuonSegmentValidationPlots.cxx:7
MuonSegmentValidationPlots::m_oRecoSegmPlots
std::unique_ptr< Muon::MuonSegmentPlots > m_oRecoSegmPlots
Definition
MuonSegmentValidationPlots.h:17
PlotBase::PlotBase
PlotBase(PlotBase *parent, std::string_view sDir)
Definition
PlotBase.cxx:29
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