ATLAS Offline Software
Loading...
Searching...
No Matches
TriggerEfficiencyPlots.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7TriggerEfficiencyPlots::TriggerEfficiencyPlots(PlotBase* pParent, const std::string& sDir) :
8 PlotBase(pParent, sDir),
9 m_pDenomPlots(this, "Denom/", "Muons"),
10 m_pNumPlots(this, "Numer/", "Muons"),
11 m_pFeatPlots(this, "Features/", "Muons"),
12 m_pDenomPlots_threshold(this, "DenomT/", "Muons"),
13 m_pNumPlots_threshold(this, "NumerT/", "Muons"),
14 m_pFeatPlots_threshold(this, "FeaturesT/", "Muons") {}
15
16void TriggerEfficiencyPlots::fillNumerator(const xAOD::Muon& mu, float Treshold) {
17 m_pNumPlots.fill(mu);
18 if (mu.pt() > Treshold) m_pNumPlots_threshold.fill(mu);
19}
20
21void TriggerEfficiencyPlots::fillDenominator(const xAOD::Muon& mu, float Treshold) {
22 m_pDenomPlots.fill(mu);
23 if (mu.pt() > Treshold) m_pDenomPlots_threshold.fill(mu);
24}
25
26void TriggerEfficiencyPlots::fillFeatures(const xAOD::Muon& mu, float Treshold) {
27 m_pFeatPlots.fill(mu);
28 if (mu.pt() > Treshold) m_pFeatPlots_threshold.fill(mu);
29}
PlotBase(PlotBase *parent, const std::string &sDir)
Definition PlotBase.cxx:29
Trk::ParamPlots m_pFeatPlots_threshold
void fillDenominator(const xAOD::Muon &mu, float Treshold)
Trk::ParamPlots m_pNumPlots_threshold
Trk::ParamPlots m_pDenomPlots_threshold
void fillNumerator(const xAOD::Muon &mu, float Treshold)
TriggerEfficiencyPlots(PlotBase *pParent, const std::string &dirName)
void fillFeatures(const xAOD::Muon &mu, float Treshold)
Muon_v1 Muon
Reference the current persistent version: