ATLAS Offline Software
JetUncertaintiesAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 
8 #ifndef JET_ANALYSIS_ALGORITHMS__JET_UNCERTAINTIES_ALG_H
9 #define JET_ANALYSIS_ALGORITHMS__JET_UNCERTAINTIES_ALG_H
10 
17 
18 #include <optional>
19 
20 namespace CP
21 {
23 
25  {
27  public:
29  StatusCode initialize () override;
30  StatusCode execute () override;
31 
32 
33 
35  private:
36  ToolHandle<ICPJetUncertaintiesTool> m_uncertaintiesTool {this, "uncertaintiesTool", "JetUncertaintiesTool", "the uncertainties tool we apply"};
37 
39  private:
40  ToolHandle<ICPJetUncertaintiesTool> m_uncertaintiesToolPD {this, "uncertaintiesToolPD", "", "the uncertainties tool we apply specifically for the 'Full'/'All' JER systematic models"};
41 
43  private:
45 
47  private:
49  this, "jets", "AntiKt4EMTopoJets", "the jet collection to run on"};
50 
52  private:
54  this, "preselection", "", "the preselection to apply"};
55 
57  private:
59 
61  private:
62  std::vector<CP::SystematicSet> m_systematicsVector;
63 
65  private:
66  std::vector<CP::SystematicSet> m_systematicsVectorOnlyJERPseudoData;
67 
68  private:
69  Gaudi::Property<std::string> m_isJESbtag {this, "isJESbtagLabel", "IsBjet", "The label to apply to truth b-tagged jets, for JES flavour uncertainties"};
70  std::optional<SG::AuxElement::Decorator<char>> m_decIsJESbtag;
71  std::optional<SG::AuxElement::Accessor<int>> m_accTruthLabel;
72 
73  };
74 }
75 
76 #endif
OutOfValidityHelper.h
CP::JetUncertaintiesAlg::execute
StatusCode execute() override
Definition: JetUncertaintiesAlg.cxx:56
CP::SysListHandle
a class managing the property to configure the list of systematics to process
Definition: SysListHandle.h:33
CP::OutOfValidityHelper
a helper to translate a CP::CorrectionCode into a ::StatusCode
Definition: OutOfValidityHelper.h:73
SysListHandle.h
CP::JetUncertaintiesAlg::m_isJESbtag
Gaudi::Property< std::string > m_isJESbtag
Definition: JetUncertaintiesAlg.h:69
SysCopyHandle.h
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
EL::AnaAlgorithm::AnaAlgorithm
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition: AnaAlgorithm.cxx:40
AnaAlgorithm.h
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition: AnaAlgorithm.h:73
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CP::JetUncertaintiesAlg::initialize
StatusCode initialize() override
Definition: JetUncertaintiesAlg.cxx:22
CP::JetUncertaintiesAlg::m_decIsJESbtag
std::optional< SG::AuxElement::Decorator< char > > m_decIsJESbtag
Definition: JetUncertaintiesAlg.h:70
CP::JetUncertaintiesAlg::m_preselection
SysReadSelectionHandle m_preselection
the preselection we apply to our input
Definition: JetUncertaintiesAlg.h:53
CP::JetUncertaintiesAlg
an algorithm for calling ICPJetUncertaintiesTool
Definition: JetUncertaintiesAlg.h:25
CP::JetUncertaintiesAlg::m_uncertaintiesToolPD
ToolHandle< ICPJetUncertaintiesTool > m_uncertaintiesToolPD
the secondary jet uncertainties tool, for pseudo-data JER smearing
Definition: JetUncertaintiesAlg.h:40
SysReadSelectionHandle.h
CP::JetUncertaintiesAlg::m_accTruthLabel
std::optional< SG::AuxElement::Accessor< int > > m_accTruthLabel
Definition: JetUncertaintiesAlg.h:71
ICPJetUncertaintiesTool.h
CP::SysCopyHandle
a systematics data handle that will either copy the input object or act like an update handle
Definition: SysCopyHandle.h:62
CP::JetUncertaintiesAlg::m_systematicsVector
std::vector< CP::SystematicSet > m_systematicsVector
the vector of systematics (for CPU-optimisation)
Definition: JetUncertaintiesAlg.h:62
CP::SysReadSelectionHandle
a data handle for reading systematically varied selection properties from objects
Definition: SysReadSelectionHandle.h:32
CP::JetUncertaintiesAlg::m_uncertaintiesTool
ToolHandle< ICPJetUncertaintiesTool > m_uncertaintiesTool
the main jet uncertainties tool
Definition: JetUncertaintiesAlg.h:36
CP::JetUncertaintiesAlg::m_systematicsVectorOnlyJERPseudoData
std::vector< CP::SystematicSet > m_systematicsVectorOnlyJERPseudoData
the vector of pseudo-data JER systematics (for CPU-optimisation)
Definition: JetUncertaintiesAlg.h:66
CP::JetUncertaintiesAlg::m_systematicsList
SysListHandle m_systematicsList
the systematics list we run
Definition: JetUncertaintiesAlg.h:44
CP::JetUncertaintiesAlg::m_outOfValidity
OutOfValidityHelper m_outOfValidity
the helper for OutOfValidity results
Definition: JetUncertaintiesAlg.h:58
CP::JetUncertaintiesAlg::m_jetHandle
SysCopyHandle< xAOD::JetContainer > m_jetHandle
the jet collection we run on
Definition: JetUncertaintiesAlg.h:48