ATLAS Offline Software
MuonParamElossPlots.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUONHISTUTILS_MUONPARAMELOSSPLOTS_H
6 #define MUONHISTUTILS_MUONPARAMELOSSPLOTS_H
7 
9 #include "xAODMuon/Muon.h"
11 #include <string>
12 
13 namespace Muon{
14 
16 {
17  public:
18  MuonParamElossPlots(PlotBase *pParent, const std::string& sDir);
19  void fill(const xAOD::TruthParticle& truthMu, const xAOD::Muon& mu, float weight=1.0);
20 
21  TH1* msInnerMatchChi2{nullptr};
22  TH1* msOuterMatchChi2{nullptr};
23 
24  TH1* ELoss{nullptr};
25  TH1* ELossDiffTruth{nullptr};
29  TH1* ELossSigma{nullptr};
30  TH1* paramELoss{nullptr};
31  TH1* paramELossDiff{nullptr};
36  TH1* measELoss{nullptr};
37  TH1* measELossDiff{nullptr};
38  TH1* measELossDiffTruth{nullptr};
42  TH1* ELossType{nullptr};
45  TH1* ELossTypeTailPt{nullptr};
46  TH1* ELossTypeAllPt{nullptr};
47 
48  private:
49  void initializePlots();
50  void FillPlot(TH1* hist, const xAOD::Muon& mu,const xAOD::Muon::ParamDef paramDef,float scale=1, float weight=1.0);
51  void FillPlot(TH1* hist, TH1* hist_DiffTruth, TH1* hist_DiffTruthEta0_1p35, TH1* hist_DiffTruthEta1p35_1p55, TH1* hist_DiffTruthEta1p55_endd, const xAOD::TruthParticle& truthMu, const xAOD::Muon& mu, const xAOD::Muon::ParamDef paramDef,float scale=1, float weight=1.0);
52  void FillPlotELossType(TH1* hist, const xAOD::Muon& mu,float scale=1, float weight=1.0);
53  void FillPlotELossType(TH1* hist, const xAOD::Muon& mu, xAOD::Muon::EnergyLossType type, float scale=1,float weight=1.0);
54 };
55 
56 }
57 
58 #endif
Muon::MuonParamElossPlots::measELossDiffTruth
TH1 * measELossDiffTruth
Definition: MuonParamElossPlots.h:38
Muon::MuonParamElossPlots::paramELossDiff
TH1 * paramELossDiff
Definition: MuonParamElossPlots.h:31
PlotBase
Definition: PlotBase.h:33
Muon::MuonParamElossPlots::ELoss
TH1 * ELoss
Definition: MuonParamElossPlots.h:24
Muon.h
python.copyTCTOutput.sDir
sDir
Definition: copyTCTOutput.py:60
plotmaker.hist
hist
Definition: plotmaker.py:148
egammaParameters::ParamDef
ParamDef
Definition: egammaParamDefs.h:99
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:49
yodamerge_tmp.scale
scale
Definition: yodamerge_tmp.py:138
Muon::MuonParamElossPlots::ELossTypeAllPt
TH1 * ELossTypeAllPt
Definition: MuonParamElossPlots.h:46
Muon::MuonParamElossPlots::ELossTypeTailPt
TH1 * ELossTypeTailPt
Definition: MuonParamElossPlots.h:45
xAOD::Muon_v1
Class describing a Muon.
Definition: Muon_v1.h:38
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:200
Muon::MuonParamElossPlots::initializePlots
void initializePlots()
Definition: MuonParamElossPlots.cxx:13
Muon::MuonParamElossPlots::paramELossDiffTruthEta1p55_end
TH1 * paramELossDiffTruthEta1p55_end
Definition: MuonParamElossPlots.h:35
Muon::MuonParamElossPlots::fill
void fill(const xAOD::TruthParticle &truthMu, const xAOD::Muon &mu, float weight=1.0)
Definition: MuonParamElossPlots.cxx:46
Muon::MuonParamElossPlots::ELossTypeParametrPt
TH1 * ELossTypeParametrPt
Definition: MuonParamElossPlots.h:43
Muon::MuonParamElossPlots::measELossDiffTruthEta0_1p35
TH1 * measELossDiffTruthEta0_1p35
Definition: MuonParamElossPlots.h:39
Muon::MuonParamElossPlots::paramELoss
TH1 * paramELoss
Definition: MuonParamElossPlots.h:30
Muon::MuonParamElossPlots::FillPlotELossType
void FillPlotELossType(TH1 *hist, const xAOD::Muon &mu, float scale=1, float weight=1.0)
Definition: MuonParamElossPlots.cxx:119
xAOD::TruthParticle_v1
Class describing a truth particle in the MC record.
Definition: TruthParticle_v1.h:41
Muon::MuonParamElossPlots::ELossDiffTruthEta1p35_1p55
TH1 * ELossDiffTruthEta1p35_1p55
Definition: MuonParamElossPlots.h:27
Muon::MuonParamElossPlots::ELossDiffTruth
TH1 * ELossDiffTruth
Definition: MuonParamElossPlots.h:25
Muon::MuonParamElossPlots::paramELossDiffTruth
TH1 * paramELossDiffTruth
Definition: MuonParamElossPlots.h:32
Muon::MuonParamElossPlots::ELossTypeNotIsoPt
TH1 * ELossTypeNotIsoPt
Definition: MuonParamElossPlots.h:44
Muon::MuonParamElossPlots::measELossDiffTruthEta1p55_end
TH1 * measELossDiffTruthEta1p55_end
Definition: MuonParamElossPlots.h:41
Muon::MuonParamElossPlots::MuonParamElossPlots
MuonParamElossPlots(PlotBase *pParent, const std::string &sDir)
Definition: MuonParamElossPlots.cxx:11
Muon::MuonParamElossPlots::ELossType
TH1 * ELossType
Definition: MuonParamElossPlots.h:42
Muon::MuonParamElossPlots::measELossDiff
TH1 * measELossDiff
Definition: MuonParamElossPlots.h:37
Muon::MuonParamElossPlots::msInnerMatchChi2
TH1 * msInnerMatchChi2
Definition: MuonParamElossPlots.h:21
Muon::MuonParamElossPlots::msOuterMatchChi2
TH1 * msOuterMatchChi2
Definition: MuonParamElossPlots.h:22
Muon::MuonParamElossPlots
Definition: MuonParamElossPlots.h:16
Muon::MuonParamElossPlots::paramELossDiffTruthEta0_1p35
TH1 * paramELossDiffTruthEta0_1p35
Definition: MuonParamElossPlots.h:33
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TH1
Definition: rootspy.cxx:268
Muon::MuonParamElossPlots::paramELossDiffTruthEta1p35_1p55
TH1 * paramELossDiffTruthEta1p35_1p55
Definition: MuonParamElossPlots.h:34
Muon::MuonParamElossPlots::ELossDiffTruthEta0_1p35
TH1 * ELossDiffTruthEta0_1p35
Definition: MuonParamElossPlots.h:26
Muon::MuonParamElossPlots::ELossSigma
TH1 * ELossSigma
Definition: MuonParamElossPlots.h:29
TruthParticle.h
Muon::MuonParamElossPlots::measELossDiffTruthEta1p35_1p55
TH1 * measELossDiffTruthEta1p35_1p55
Definition: MuonParamElossPlots.h:40
Muon::MuonParamElossPlots::measELoss
TH1 * measELoss
Definition: MuonParamElossPlots.h:36
PlotBase.h
CaloNoise_fillDB.mu
mu
Definition: CaloNoise_fillDB.py:53
Muon::MuonParamElossPlots::ELossDiffTruthEta1p55_end
TH1 * ELossDiffTruthEta1p55_end
Definition: MuonParamElossPlots.h:28
Muon::MuonParamElossPlots::FillPlot
void FillPlot(TH1 *hist, const xAOD::Muon &mu, const xAOD::Muon::ParamDef paramDef, float scale=1, float weight=1.0)
Definition: MuonParamElossPlots.cxx:61