ATLAS Offline Software
MuonIsolationPlots.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_MUONISOLATIONPLOTS_H
6 #define MUONHISTUTILS_MUONISOLATIONPLOTS_H
7 
9 #include "xAODMuon/Muon.h"
10 
11 namespace Muon{
12 
13 #ifndef XAOD_ANALYSIS
14 class IsoCorrPlots:public PlotBase {
15  public:
16  IsoCorrPlots(PlotBase* pParent, const std::string& sDir, std::string sCorrType);
17 
18  void fill(const xAOD::Muon& muon,
19  const xAOD::Iso::IsolationType &isoType_cone20,
20  const xAOD::Iso::IsolationType &isoType_cone30,
21  const xAOD::Iso::IsolationType &isoType_cone40,
22  const xAOD::Iso::IsolationFlavour& flavour,
23  const xAOD::Iso::IsolationCaloCorrection &isoCorrType,
24  const xAOD::Iso::IsolationCorrectionParameter& isoCorrParam,
25  float weight=1.0);
26  void fill(float fIso20, float fIso30, float fIso40, float fPt, float fIsoCorr, float weight=1.0);
27  std::string m_sCorrType;
28 
29  TH1* isocorr{nullptr};
30  TH1* isocorr_relPt{nullptr};
31  TH1* isocorr_relIsocone20{nullptr};
32  TH1* isocorr_relIsocone30{nullptr};
33  TH1* isocorr_relIsocone40{nullptr};
34 
35  private:
36  void initializePlots();
37 
38 };
39 #endif // not XAOD_ANALYSIS
40 
41 class IsoPlots:public PlotBase {
42  public:
43  IsoPlots(PlotBase* pParent, const std::string& sDir, std::string sConeSize);
44  void fill(const xAOD::Muon& muon, const xAOD::Iso::IsolationType &isoType, float weight=1.0);
45  void fill(float fIso, float fPt, float weight=1.0);
46  std::string m_sConeSize;
47 
48  TH1* cone;
49  TH1* conerel;
50 
51  private:
52  void initializePlots();
53 
54 };
55 
56 
58  public:
59  MuonIsolationPlots(PlotBase* pParent, const std::string& sDir);
60  void fill(const xAOD::Muon& muon, float weight=1.0);
61 
65 
69 
73 
77 
78 #ifndef XAOD_ANALYSIS
81 #endif // not XAOD_ANALYSIS
82 
83 };
84 
85 }
86 
87 #endif
Muon::IsoCorrPlots::isocorr_relIsocone20
TH1 * isocorr_relIsocone20
Definition: MuonIsolationPlots.h:31
xAOD::muon
@ muon
Definition: TrackingPrimitives.h:195
Muon::IsoPlots::conerel
TH1 * conerel
Definition: MuonIsolationPlots.h:49
PlotBase
Definition: PlotBase.h:34
Muon::IsoCorrPlots::m_sCorrType
std::string m_sCorrType
Definition: MuonIsolationPlots.h:27
Muon.h
xAOD::Iso::IsolationFlavour
IsolationFlavour
Enumeration for different ways of calculating isolation in xAOD files.
Definition: IsolationFlavour.h:17
Muon::MuonIsolationPlots::m_oTopoEtCone30
IsoPlots m_oTopoEtCone30
Definition: MuonIsolationPlots.h:67
python.copyTCTOutput.sDir
sDir
Definition: copyTCTOutput.py:60
Muon::MuonIsolationPlots::m_oTopoEtCone20
IsoPlots m_oTopoEtCone20
Definition: MuonIsolationPlots.h:66
Muon::MuonIsolationPlots::fill
void fill(const xAOD::Muon &muon, float weight=1.0)
Definition: MuonIsolationPlots.cxx:33
Muon::IsoPlots
Definition: MuonIsolationPlots.h:41
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition: TrackSystemController.h:45
Muon::MuonIsolationPlots::m_oNEFlowIso_coreCone
IsoCorrPlots m_oNEFlowIso_coreCone
Definition: MuonIsolationPlots.h:80
Muon::IsoPlots::cone
TH1 * cone
Definition: MuonIsolationPlots.h:48
Muon::MuonIsolationPlots::m_oTopoEtCone_coreCone
IsoCorrPlots m_oTopoEtCone_coreCone
Definition: MuonIsolationPlots.h:79
xAOD::Iso::IsolationCorrectionParameter
IsolationCorrectionParameter
Definition: Event/xAOD/xAODPrimitives/xAODPrimitives/IsolationCorrection.h:91
xAOD::Muon_v1
Class describing a Muon.
Definition: Muon_v1.h:38
Muon::IsoCorrPlots::isocorr_relIsocone30
TH1 * isocorr_relIsocone30
Definition: MuonIsolationPlots.h:32
Muon::IsoCorrPlots::isocorr_relPt
TH1 * isocorr_relPt
Definition: MuonIsolationPlots.h:30
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:189
Muon::MuonIsolationPlots::m_oPtCone20
IsoPlots m_oPtCone20
Definition: MuonIsolationPlots.h:62
Muon::MuonIsolationPlots::m_oNEFlowIso30
IsoPlots m_oNEFlowIso30
Definition: MuonIsolationPlots.h:71
Muon::IsoCorrPlots::isocorr
TH1 * isocorr
Definition: MuonIsolationPlots.h:29
Muon::MuonIsolationPlots::m_oPtCone40
IsoPlots m_oPtCone40
Definition: MuonIsolationPlots.h:64
Muon::IsoCorrPlots::IsoCorrPlots
IsoCorrPlots(PlotBase *pParent, const std::string &sDir, std::string sCorrType)
Definition: MuonIsolationPlots.cxx:85
xAOD::Iso::IsolationType
IsolationType
Overall enumeration for isolation types in xAOD files.
Definition: IsolationType.h:26
Muon::IsoPlots::fill
void fill(const xAOD::Muon &muon, const xAOD::Iso::IsolationType &isoType, float weight=1.0)
Definition: MuonIsolationPlots.cxx:66
Muon::IsoCorrPlots::initializePlots
void initializePlots()
Definition: MuonIsolationPlots.cxx:89
Muon::IsoCorrPlots::isocorr_relIsocone40
TH1 * isocorr_relIsocone40
Definition: MuonIsolationPlots.h:33
Muon::MuonIsolationPlots::m_oNEFlowIso40
IsoPlots m_oNEFlowIso40
Definition: MuonIsolationPlots.h:72
Muon::MuonIsolationPlots::m_oPtVarCone20
IsoPlots m_oPtVarCone20
Definition: MuonIsolationPlots.h:74
Muon::MuonIsolationPlots::m_oTopoEtCone40
IsoPlots m_oTopoEtCone40
Definition: MuonIsolationPlots.h:68
Muon::IsoCorrPlots
Definition: MuonIsolationPlots.h:14
Muon::MuonIsolationPlots::m_oNEFlowIso20
IsoPlots m_oNEFlowIso20
Definition: MuonIsolationPlots.h:70
xAOD::Iso::IsolationCaloCorrection
IsolationCaloCorrection
Enumeration for different ways of correcting isolation in xAOD files.
Definition: Event/xAOD/xAODPrimitives/xAODPrimitives/IsolationCorrection.h:18
Muon::MuonIsolationPlots::m_oPtCone30
IsoPlots m_oPtCone30
Definition: MuonIsolationPlots.h:63
Muon::MuonIsolationPlots::m_oPtVarCone30
IsoPlots m_oPtVarCone30
Definition: MuonIsolationPlots.h:75
Muon::MuonIsolationPlots::m_oPtVarCone40
IsoPlots m_oPtVarCone40
Definition: MuonIsolationPlots.h:76
Muon::MuonIsolationPlots
Definition: MuonIsolationPlots.h:57
Muon::IsoPlots::initializePlots
void initializePlots()
Definition: MuonIsolationPlots.cxx:60
Muon::IsoCorrPlots::fill
void fill(const xAOD::Muon &muon, const xAOD::Iso::IsolationType &isoType_cone20, const xAOD::Iso::IsolationType &isoType_cone30, const xAOD::Iso::IsolationType &isoType_cone40, const xAOD::Iso::IsolationFlavour &flavour, const xAOD::Iso::IsolationCaloCorrection &isoCorrType, const xAOD::Iso::IsolationCorrectionParameter &isoCorrParam, float weight=1.0)
Definition: MuonIsolationPlots.cxx:99
PlotBase.h
Muon::IsoPlots::IsoPlots
IsoPlots(PlotBase *pParent, const std::string &sDir, std::string sConeSize)
Definition: MuonIsolationPlots.cxx:56
Muon::MuonIsolationPlots::MuonIsolationPlots
MuonIsolationPlots(PlotBase *pParent, const std::string &sDir)
Definition: MuonIsolationPlots.cxx:11
Muon::IsoPlots::m_sConeSize
std::string m_sConeSize
Definition: MuonIsolationPlots.h:46