ATLAS Offline Software
Loading...
Searching...
No Matches
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
6
7MuonSegmentValidationPlots::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
18
19void 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
29void MuonSegmentValidationPlots::fill(const xAOD::MuonSegment* muSeg, float weight) { m_oRecoSegmPlots->fill(*muSeg, weight); }
std::unique_ptr< Muon::MuonSegmentPlots > m_oMatchedMuonSegmPlots
void fill(const xAOD::MuonSegment *truthMuSeg, const xAOD::MuonSegment *muSeg, float weight=1.0)
std::unique_ptr< Muon::MuonSegmentTruthRelatedPlots > m_oMatchedMuonSegmDiffPlots
std::unique_ptr< Muon::MuonSegmentPlots > m_oTruthMuonSegmPlots
MuonSegmentValidationPlots(PlotBase *pParent, const std::string &sDir, bool isData)
std::unique_ptr< Muon::MuonSegmentPlots > m_oRecoSegmPlots
PlotBase(PlotBase *parent, const std::string &sDir)
Definition PlotBase.cxx:29
MuonSegment_v1 MuonSegment
Reference the current persistent version: