ATLAS Offline Software
LeptonSFCalculatorAlg.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 #ifndef ASG__LEPTON_SF_CALCULATORALG_H
8 #define ASG__LEPTON_SF_CALCULATORALG_H
9 
16 
18 #include <xAODMuon/MuonContainer.h>
21 
22 namespace CP {
24  public:
26  virtual StatusCode initialize() final;
27  virtual StatusCode execute() final;
28 
29  private:
30  // systematics
32 
34  this, "electrons", "", "the electron container to use"
35  };
37  this, "electronSelection", "", "the selection on the input electrons"
38  };
39 
41  this, "muons", "", "the muon container to use"
42  };
44  this, "muonSelection", "", "the selection on the input muons"
45  };
46 
48  this, "photons", "", "the photon container to use"
49  };
51  this, "photonSelection", "", "the selection on the input photons"
52  };
53 
55  this, "eventInfo", "EventInfo", "the EventInfo container to decorate selection decisions to"
56  };
57 
59  this, "electronSFs", {}, "Array of decorated per-electron SFs"
60  };
61 
63  this, "muonSFs", {}, "Array of decorated per-muon SFs"
64  };
65 
67  this, "photonSFs", {}, "Array of decorated per-photon SFs"
68  };
69 
71  this, "event_leptonSF", "leptonSF_%SYS%", "Decoration for per-event leptonSF"
72  };
73  };
74 
75 } // namespace
76 
77 #endif
CP::SysListHandle
a class managing the property to configure the list of systematics to process
Definition: SysListHandle.h:33
SysWriteDecorHandle.h
SysListHandle.h
CP::LeptonSFCalculatorAlg::m_electronSFs
CP::SysReadDecorHandleArray< float > m_electronSFs
Definition: LeptonSFCalculatorAlg.h:58
CP::LeptonSFCalculatorAlg::m_electronSelection
CP::SysReadSelectionHandle m_electronSelection
Definition: LeptonSFCalculatorAlg.h:36
CP::LeptonSFCalculatorAlg::m_event_leptonSF
CP::SysWriteDecorHandle< float > m_event_leptonSF
Definition: LeptonSFCalculatorAlg.h:70
CP::LeptonSFCalculatorAlg::m_muonSelection
CP::SysReadSelectionHandle m_muonSelection
Definition: LeptonSFCalculatorAlg.h:43
CP::SysReadHandle< xAOD::ElectronContainer >
CP::LeptonSFCalculatorAlg::m_photonsHandle
CP::SysReadHandle< xAOD::PhotonContainer > m_photonsHandle
Definition: LeptonSFCalculatorAlg.h:47
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
SysReadHandle.h
CP::LeptonSFCalculatorAlg::m_eventInfoHandle
CP::SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
Definition: LeptonSFCalculatorAlg.h:54
AnaAlgorithm.h
CP::LeptonSFCalculatorAlg::m_muonSFs
CP::SysReadDecorHandleArray< float > m_muonSFs
Definition: LeptonSFCalculatorAlg.h:62
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition: AnaAlgorithm.h:73
ElectronContainer.h
CP::LeptonSFCalculatorAlg::initialize
virtual StatusCode initialize() final
Definition: LeptonSFCalculatorAlg.cxx:11
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CP::LeptonSFCalculatorAlg::execute
virtual StatusCode execute() final
Definition: LeptonSFCalculatorAlg.cxx:33
CP::LeptonSFCalculatorAlg::m_electronsHandle
CP::SysReadHandle< xAOD::ElectronContainer > m_electronsHandle
Definition: LeptonSFCalculatorAlg.h:33
CP::LeptonSFCalculatorAlg::m_systematicsList
CP::SysListHandle m_systematicsList
Definition: LeptonSFCalculatorAlg.h:31
CP::LeptonSFCalculatorAlg::m_photonSFs
CP::SysReadDecorHandleArray< float > m_photonSFs
Definition: LeptonSFCalculatorAlg.h:66
SysReadSelectionHandle.h
EventInfo.h
MuonContainer.h
CP::LeptonSFCalculatorAlg::m_photonSelection
CP::SysReadSelectionHandle m_photonSelection
Definition: LeptonSFCalculatorAlg.h:50
SysReadDecorHandle.h
CP::SysReadSelectionHandle
a data handle for reading systematically varied selection properties from objects
Definition: SysReadSelectionHandle.h:32
CP::SysHandleArray
Vector-like class for systematic handles which interact with decorations.
Definition: SysHandleArray.h:26
CP::SysWriteDecorHandle< float >
CP::LeptonSFCalculatorAlg::m_muonsHandle
CP::SysReadHandle< xAOD::MuonContainer > m_muonsHandle
Definition: LeptonSFCalculatorAlg.h:40
CP::LeptonSFCalculatorAlg
Definition: LeptonSFCalculatorAlg.h:23
PhotonContainer.h