ATLAS Offline Software
Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef JETUNCERTAINTIES_RESOLUTIONHELPER_H
6 #define JETUNCERTAINTIES_RESOLUTIONHELPER_H
7 
10 
12 
13 #include <tuple>
14 
15 class TEnv;
16 class TFile;
17 
18 namespace jet
19 {
20 
22 {
23  public:
24  ResolutionHelper(const std::string& name, const std::string& jetDef);
25  ResolutionHelper(const ResolutionHelper& toCopy);
26  virtual StatusCode initialize(TEnv& settings, TFile* histFile, const TString& MCtype);
27  virtual ~ResolutionHelper();
28 
29  // Information retrieval
30  std::tuple<const UncertaintyHistogram*,CompParametrization::TypeEnum,CompMassDef::TypeEnum> getNominalResolution(const CompScaleVar::TypeEnum smearType, const JetTopology::TypeEnum topology, const bool readMC) const;
31 
32  bool smearOnlyMC() const { return m_smearOnlyMC; }
33  bool smearDataAndMC() const { return !m_smearOnlyMC; }
34 
35  bool hasRelevantInfo(const CompScaleVar::TypeEnum type, const JetTopology::TypeEnum topology) const;
36 
37  private:
38  std::string m_name;
39  std::string m_jetDef;
40  bool m_isInit;
41 
43 
44  // Nominal resolution histograms
51 
58 
65 
72 
79 
86 
87  // Helper methods
88  StatusCode parseInput(TEnv& settings, TFile* histFile, const TString& key, const TString& defaultValue, UncertaintyHistogram*& hist, CompParametrization::TypeEnum& param, CompMassDef::TypeEnum& massDef,const TString& MCtype);
89 
90 };
91 
92 } // end jet namespace
93 
94 
95 #endif
jet::CompMassDef::TypeEnum
TypeEnum
Definition: UncertaintyEnum.h:71
UncertaintyHistogram.h
jet::ResolutionHelper::m_mQCDNomHistData
UncertaintyHistogram * m_mQCDNomHistData
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:59
plotmaker.hist
hist
Definition: plotmaker.py:148
jet::ResolutionHelper::smearDataAndMC
bool smearDataAndMC() const
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:33
jet::ResolutionHelper::m_mWZNomParamData
CompParametrization::TypeEnum m_mWZNomParamData
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:67
jet::ResolutionHelper::m_jetDef
std::string m_jetDef
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:39
jet::ResolutionHelper::m_mWZNomMassDefData
CompMassDef::TypeEnum m_mWZNomMassDefData
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:68
jet::ResolutionHelper::m_fvNomParamData
CompParametrization::TypeEnum m_fvNomParamData
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:53
jet::ResolutionHelper::m_mQCDNomHistMC
UncertaintyHistogram * m_mQCDNomHistMC
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:62
jet::ResolutionHelper::m_mHbbNomParamMC
CompParametrization::TypeEnum m_mHbbNomParamMC
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:77
jet::ResolutionHelper::m_mWZNomHistMC
UncertaintyHistogram * m_mWZNomHistMC
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:69
jet::ResolutionHelper::m_mTopNomMassDefMC
CompMassDef::TypeEnum m_mTopNomMassDefMC
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:85
jet::ResolutionHelper::m_mTopNomHistData
UncertaintyHistogram * m_mTopNomHistData
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:80
jet::ResolutionHelper::m_fvNomHistData
UncertaintyHistogram * m_fvNomHistData
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:52
jet::ResolutionHelper::m_ptNomMassDefData
CompMassDef::TypeEnum m_ptNomMassDefData
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:47
jet::ResolutionHelper::m_mQCDNomMassDefData
CompMassDef::TypeEnum m_mQCDNomMassDefData
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:61
jet::ResolutionHelper::m_mQCDNomParamData
CompParametrization::TypeEnum m_mQCDNomParamData
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:60
UncertaintyEnum.h
AsgMessaging.h
jet::ResolutionHelper::m_mWZNomMassDefMC
CompMassDef::TypeEnum m_mWZNomMassDefMC
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:71
jet::ResolutionHelper::m_isInit
bool m_isInit
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:40
CalculateHighPtTerm.jetDef
dictionary jetDef
Definition: ICHEP2016/CalculateHighPtTerm.py:28
jet::ResolutionHelper::m_mWZNomHistData
UncertaintyHistogram * m_mWZNomHistData
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:66
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
jet::ResolutionHelper::m_mWZNomParamMC
CompParametrization::TypeEnum m_mWZNomParamMC
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:70
jet::ResolutionHelper::m_ptNomHistData
UncertaintyHistogram * m_ptNomHistData
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:45
jet::ResolutionHelper::m_ptNomParamData
CompParametrization::TypeEnum m_ptNomParamData
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:46
jet::ResolutionHelper::m_fvNomParamMC
CompParametrization::TypeEnum m_fvNomParamMC
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:56
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
jet::ResolutionHelper::getNominalResolution
std::tuple< const UncertaintyHistogram *, CompParametrization::TypeEnum, CompMassDef::TypeEnum > getNominalResolution(const CompScaleVar::TypeEnum smearType, const JetTopology::TypeEnum topology, const bool readMC) const
Definition: Reconstruction/Jet/JetUncertainties/Root/ResolutionHelper.cxx:354
jet::ResolutionHelper::initialize
virtual StatusCode initialize(TEnv &settings, TFile *histFile, const TString &MCtype)
Definition: Reconstruction/Jet/JetUncertainties/Root/ResolutionHelper.cxx:199
jet::ResolutionHelper::m_mHbbNomHistData
UncertaintyHistogram * m_mHbbNomHistData
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:73
jet::ResolutionHelper::m_fvNomMassDefData
CompMassDef::TypeEnum m_fvNomMassDefData
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:54
jet::ResolutionHelper::m_ptNomParamMC
CompParametrization::TypeEnum m_ptNomParamMC
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:49
jet::ResolutionHelper::m_mHbbNomHistMC
UncertaintyHistogram * m_mHbbNomHistMC
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:76
jet::ResolutionHelper::m_mHbbNomParamData
CompParametrization::TypeEnum m_mHbbNomParamData
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:74
jet::ResolutionHelper::hasRelevantInfo
bool hasRelevantInfo(const CompScaleVar::TypeEnum type, const JetTopology::TypeEnum topology) const
Definition: Reconstruction/Jet/JetUncertainties/Root/ResolutionHelper.cxx:490
jet::ResolutionHelper::m_smearOnlyMC
bool m_smearOnlyMC
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:42
jet::ResolutionHelper
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:22
jet::ResolutionHelper::parseInput
StatusCode parseInput(TEnv &settings, TFile *histFile, const TString &key, const TString &defaultValue, UncertaintyHistogram *&hist, CompParametrization::TypeEnum &param, CompMassDef::TypeEnum &massDef, const TString &MCtype)
Definition: Reconstruction/Jet/JetUncertainties/Root/ResolutionHelper.cxx:121
jet::ResolutionHelper::m_mTopNomMassDefData
CompMassDef::TypeEnum m_mTopNomMassDefData
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:82
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
jet::CompParametrization::TypeEnum
TypeEnum
Definition: UncertaintyEnum.h:45
asg::AsgMessaging
Class mimicking the AthMessaging class from the offline software.
Definition: AsgMessaging.h:40
jet::ResolutionHelper::m_mTopNomHistMC
UncertaintyHistogram * m_mTopNomHistMC
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:83
jet::ResolutionHelper::m_mHbbNomMassDefData
CompMassDef::TypeEnum m_mHbbNomMassDefData
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:75
jet::UncertaintyHistogram
Definition: UncertaintyHistogram.h:25
jet::CompScaleVar::TypeEnum
TypeEnum
Definition: UncertaintyEnum.h:91
jet::ResolutionHelper::m_ptNomHistMC
UncertaintyHistogram * m_ptNomHistMC
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:48
jet::ResolutionHelper::~ResolutionHelper
virtual ~ResolutionHelper()
Definition: Reconstruction/Jet/JetUncertainties/Root/ResolutionHelper.cxx:105
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
jet::ResolutionHelper::m_mHbbNomMassDefMC
CompMassDef::TypeEnum m_mHbbNomMassDefMC
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:78
jet::ResolutionHelper::ResolutionHelper
ResolutionHelper(const std::string &name, const std::string &jetDef)
Definition: Reconstruction/Jet/JetUncertainties/Root/ResolutionHelper.cxx:17
jet::JetTopology::TypeEnum
TypeEnum
Definition: UncertaintyEnum.h:208
jet::ResolutionHelper::m_ptNomMassDefMC
CompMassDef::TypeEnum m_ptNomMassDefMC
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:50
jet::ResolutionHelper::m_mQCDNomMassDefMC
CompMassDef::TypeEnum m_mQCDNomMassDefMC
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:64
jet::ResolutionHelper::m_mQCDNomParamMC
CompParametrization::TypeEnum m_mQCDNomParamMC
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:63
jet::ResolutionHelper::m_name
std::string m_name
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:38
jet::ResolutionHelper::m_fvNomMassDefMC
CompMassDef::TypeEnum m_fvNomMassDefMC
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:57
jet::ResolutionHelper::smearOnlyMC
bool smearOnlyMC() const
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:32
jet::ResolutionHelper::m_fvNomHistMC
UncertaintyHistogram * m_fvNomHistMC
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:55
jet::ResolutionHelper::m_mTopNomParamData
CompParametrization::TypeEnum m_mTopNomParamData
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:81
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37
jet::ResolutionHelper::m_mTopNomParamMC
CompParametrization::TypeEnum m_mTopNomParamMC
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/ResolutionHelper.h:84