ATLAS Offline Software
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
}
xAOD::SlowMuon_v1
Class describing a SlowMuon.
Definition:
SlowMuon_v1.h:26
PlotBase
Definition:
PlotBase.h:34
SlowMuonValidationPlots::m_oSlowMuonRecoPlots
std::unique_ptr< Muon::SlowMuonParamPlots > m_oSlowMuonRecoPlots
Definition:
SlowMuonValidationPlots.h:20
SlowMuonValidationPlots::~SlowMuonValidationPlots
virtual ~SlowMuonValidationPlots()
python.copyTCTOutput.sDir
sDir
Definition:
copyTCTOutput.py:60
xAOD::Muon_v1
Class describing a Muon.
Definition:
Muon_v1.h:38
dqt_zlumi_pandas.weight
int weight
Definition:
dqt_zlumi_pandas.py:189
SlowMuonValidationPlots::SlowMuonValidationPlots
SlowMuonValidationPlots(PlotBase *pParent, const std::string &sDir, bool isData)
Definition:
SlowMuonValidationPlots.cxx:13
SlowMuonValidationPlots::fillRecoMuonPlots
void fillRecoMuonPlots(const xAOD::SlowMuon &smu, const xAOD::Muon &mu, float weight=1.0)
Definition:
SlowMuonValidationPlots.cxx:28
SlowMuonValidationPlots::fill
void fill(const xAOD::SlowMuon &smu, const xAOD::Muon &mu, float weight=1.0)
Definition:
SlowMuonValidationPlots.cxx:22
xAOD::TruthParticle_v1
Class describing a truth particle in the MC record.
Definition:
TruthParticle_v1.h:37
ElementLink
ElementLink implementation for ROOT usage.
Definition:
AthLinks/ElementLink.h:121
SlowMuonValidationPlots::m_oSlowMuonMatchedPlots
std::unique_ptr< Muon::SlowMuonParamPlots > m_oSlowMuonMatchedPlots
Definition:
SlowMuonValidationPlots.h:21
MuonLink
ElementLink< xAOD::MuonContainer > MuonLink
Definition:
SlowMuonValidationPlots.cxx:11
MuonEnumDefs.h
CaloNoise_fillDB.mu
mu
Definition:
CaloNoise_fillDB.py:53
SlowMuonValidationPlots.h
SlowMuonValidationPlots::m_isData
bool m_isData
Definition:
SlowMuonValidationPlots.h:27
Generated on Thu Nov 7 2024 21:26:22 for ATLAS Offline Software by
1.8.18