ATLAS Offline Software
Loading...
Searching...
No Matches
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
15class TEnv;
16class TFile;
17
18namespace jet
19{
20
22{
23 public:
24 ResolutionHelper(const std::string& name, const std::string& jetDef);
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;
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
Class mimicking the AthMessaging class from the offline software.
std::tuple< const UncertaintyHistogram *, CompParametrization::TypeEnum, CompMassDef::TypeEnum > getNominalResolution(const CompScaleVar::TypeEnum smearType, const JetTopology::TypeEnum topology, const bool readMC) const
bool hasRelevantInfo(const CompScaleVar::TypeEnum type, const JetTopology::TypeEnum topology) const
StatusCode parseInput(TEnv &settings, TFile *histFile, const TString &key, const TString &defaultValue, UncertaintyHistogram *&hist, CompParametrization::TypeEnum &param, CompMassDef::TypeEnum &massDef, const TString &MCtype)
ResolutionHelper(const std::string &name, const std::string &jetDef)
void initialize()