ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonValidation
MuonDQA
MuonPhysValMonitoring
src
SlowMuonValidationPlots.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 "
SlowMuonValidationPlots.h
"
6
7
#include <iostream>
8
9
#include "
MuonHistUtils/MuonEnumDefs.h
"
10
11
typedef
ElementLink<xAOD::MuonContainer>
MuonLink
;
12
13
SlowMuonValidationPlots::SlowMuonValidationPlots
(
PlotBase
* pParent,
const
std::string& sDir,
bool
isData) :
14
PlotBase
(pParent, sDir),
m_isData
(isData) {
15
// histogram classes for all muons
16
m_oSlowMuonRecoPlots
= std::make_unique<Muon::SlowMuonParamPlots>(
this
,
"reco/AllMuons/parameters/"
);
17
if
(!
m_isData
)
m_oSlowMuonMatchedPlots
= std::make_unique< Muon::SlowMuonParamPlots>(
this
,
"matched/AllMuons/parameters/"
);
18
}
19
20
SlowMuonValidationPlots::~SlowMuonValidationPlots
() =
default
;
21
22
void
SlowMuonValidationPlots::fill
(
const
xAOD::SlowMuon
& smu,
const
xAOD::Muon
& mu,
float
weight) {
fillRecoMuonPlots
(smu, mu, weight); }
23
void
SlowMuonValidationPlots::fill
(
const
xAOD::TruthParticle
* truthMu,
const
xAOD::SlowMuon
* smu,
const
xAOD::Muon
* mu,
float
weight) {
24
if
(smu)
fillRecoMuonPlots
(*smu, *mu, weight);
25
if
((smu) && (truthMu)) {
m_oSlowMuonMatchedPlots
->fill(*smu, weight); }
26
}
27
28
void
SlowMuonValidationPlots::fillRecoMuonPlots
(
const
xAOD::SlowMuon
& smu,
const
xAOD::Muon
&
/*mu*/
,
float
weight) {
29
// fill hists for all muons
30
m_oSlowMuonRecoPlots
->fill(smu, weight);
31
}
MuonLink
ElementLink< xAOD::MuonContainer > MuonLink
Definition
BPhysHelper.cxx:21
MuonEnumDefs.h
SlowMuonValidationPlots.h
ElementLink
ElementLink implementation for ROOT usage.
Definition
A/AthLinks/ElementLink.h:40
PlotBase::PlotBase
PlotBase(PlotBase *parent, std::string_view sDir)
Definition
PlotBase.cxx:29
SlowMuonValidationPlots::SlowMuonValidationPlots
SlowMuonValidationPlots(PlotBase *pParent, const std::string &sDir, bool isData)
Definition
SlowMuonValidationPlots.cxx:13
SlowMuonValidationPlots::fill
void fill(const xAOD::SlowMuon &smu, const xAOD::Muon &mu, float weight=1.0)
Definition
SlowMuonValidationPlots.cxx:22
SlowMuonValidationPlots::~SlowMuonValidationPlots
virtual ~SlowMuonValidationPlots()
SlowMuonValidationPlots::fillRecoMuonPlots
void fillRecoMuonPlots(const xAOD::SlowMuon &smu, const xAOD::Muon &mu, float weight=1.0)
Definition
SlowMuonValidationPlots.cxx:28
SlowMuonValidationPlots::m_oSlowMuonRecoPlots
std::unique_ptr< Muon::SlowMuonParamPlots > m_oSlowMuonRecoPlots
Definition
SlowMuonValidationPlots.h:20
SlowMuonValidationPlots::m_isData
bool m_isData
Definition
SlowMuonValidationPlots.h:27
SlowMuonValidationPlots::m_oSlowMuonMatchedPlots
std::unique_ptr< Muon::SlowMuonParamPlots > m_oSlowMuonMatchedPlots
Definition
SlowMuonValidationPlots.h:21
xAOD::SlowMuon
SlowMuon_v1 SlowMuon
Reference the current persistent version:
Definition
SlowMuon.h:13
xAOD::TruthParticle
TruthParticle_v1 TruthParticle
Typedef to implementation.
Definition
Event/xAOD/xAODTruth/xAODTruth/TruthParticle.h:15
xAOD::Muon
Muon_v1 Muon
Reference the current persistent version:
Definition
Event/xAOD/xAODMuon/xAODMuon/Muon.h:13
Generated on
for ATLAS Offline Software by
1.17.0