ATLAS Offline Software
PileupReweightingAlg.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 ASG_ANALYSIS_ALGORITHMS__PILEUP_REWEIGHTING_ALG_H
9 #define ASG_ANALYSIS_ALGORITHMS__PILEUP_REWEIGHTING_ALG_H
10 
21 
22 namespace CP
23 {
25 
27  {
29  public:
31  StatusCode initialize () override;
32  StatusCode execute () override;
33 
34 
35 
37  private:
38  ToolHandle<IPileupReweightingTool> m_pileupReweightingTool {this, "pileupReweightingTool", "PileupReweightingTool", "the pileup reweighting tool we apply"};
39 
41  private:
43 
45  private:
47  this, "pileupWeightDecoration", "PileupWeight_%SYS%", "the decoration for the pileup weight"};
48 
50  private:
52  this, "eventInfo", "EventInfo", "the input EventInfo object"};
53 
55  private:
56  SG::ReadHandleKey<xAOD::EventInfo> m_baseEventInfoName {this, "baseEventInfo", "EventInfo", "The name of the original event info. The non-systematic dependent decorations will be applied to this "
57  "object so it should be at least a base of the shallow copies read in by the 'eventInfo' handle. "
58  "The default (and strongly recommended behaviour) is to leave all of these pointed at the central 'EventInfo' object!"};
59 
61  private:
62  Gaudi::Property<std::string> m_correctedScaledAverageMuDecoration {this, "correctedScaledAverageMuDecoration", "", "the decoration for the corrected and scaled average interactions per crossing"};
63 
65  private:
66  Gaudi::Property<std::string> m_correctedActualMuDecoration {this, "correctedActualMuDecoration", "", "the decoration for the corrected actual interactions per crossing"};
67 
69  private:
70  Gaudi::Property<std::string> m_correctedScaledActualMuDecoration {this, "correctedScaledActualMuDecoration", "", "the decoration for the corrected and scaled actual interactions per crossing"};
71 
73  private:
74  std::unique_ptr<const SG::AuxElement::Decorator<float>> m_correctedScaledAverageMuDecorator;
75 
77  private:
78  std::unique_ptr<const SG::AuxElement::Decorator<float>> m_correctedActualMuDecorator;
79 
81  private:
82  std::unique_ptr<const SG::AuxElement::Decorator<float>> m_correctedScaledActualMuDecorator;
83 
85  private:
87  };
88 }
89 
90 #endif
OutOfValidityHelper.h
CP::PileupReweightingAlg::m_correctedActualMuDecorator
std::unique_ptr< const SG::AuxElement::Decorator< float > > m_correctedActualMuDecorator
the accessor for m_correctedActualMuDecoration
Definition: PileupReweightingAlg.h:78
CP::PileupReweightingAlg::m_pileupReweightingTool
ToolHandle< IPileupReweightingTool > m_pileupReweightingTool
the smearing tool
Definition: PileupReweightingAlg.h:38
PropertyWrapper.h
CP::PileupReweightingAlg::m_correctedScaledActualMuDecoration
Gaudi::Property< std::string > m_correctedScaledActualMuDecoration
the decoration for the corrected and scaled actual interactions per crossing
Definition: PileupReweightingAlg.h:70
CP::SysListHandle
a class managing the property to configure the list of systematics to process
Definition: SysListHandle.h:33
SysWriteDecorHandle.h
CP::OutOfValidityHelper
a helper to translate a CP::CorrectionCode into a ::StatusCode
Definition: OutOfValidityHelper.h:73
SysListHandle.h
CP::PileupReweightingAlg::m_baseEventInfoName
SG::ReadHandleKey< xAOD::EventInfo > m_baseEventInfoName
the name of the original event info (this should usually be the same as eventiNfoHandle and EventInfo...
Definition: PileupReweightingAlg.h:56
SG::ReadHandleKey< xAOD::EventInfo >
CP::SysReadHandle
a data handle for reading systematics varied input data
Definition: SysReadHandle.h:32
CP::PileupReweightingAlg::initialize
StatusCode initialize() override
Definition: PileupReweightingAlg.cxx:29
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::PileupReweightingAlg::m_correctedScaledActualMuDecorator
std::unique_ptr< const SG::AuxElement::Decorator< float > > m_correctedScaledActualMuDecorator
the accessor for m_correctedScaledAverageMuDecoration
Definition: PileupReweightingAlg.h:82
CP::PileupReweightingAlg::m_correctedScaledAverageMuDecorator
std::unique_ptr< const SG::AuxElement::Decorator< float > > m_correctedScaledAverageMuDecorator
the accessor for m_correctedScaledAverageMuDecoration
Definition: PileupReweightingAlg.h:74
CP::PileupReweightingAlg::m_correctedScaledAverageMuDecoration
Gaudi::Property< std::string > m_correctedScaledAverageMuDecoration
the decoration for the corrected and scaled average interactions per crossing
Definition: PileupReweightingAlg.h:62
AnaAlgorithm.h
CP::PileupReweightingAlg::execute
StatusCode execute() override
Definition: PileupReweightingAlg.cxx:57
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition: AnaAlgorithm.h:73
IPileupReweightingTool.h
CP::PileupReweightingAlg
an algorithm for calling IPileupReweightingTool
Definition: PileupReweightingAlg.h:27
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CP::PileupReweightingAlg::m_correctedActualMuDecoration
Gaudi::Property< std::string > m_correctedActualMuDecoration
the decoration for the corrected actual interactions per crossing
Definition: PileupReweightingAlg.h:66
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
CP::PileupReweightingAlg::m_eventInfoHandle
CP::SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the name of the event info object
Definition: PileupReweightingAlg.h:51
CP::PileupReweightingAlg::m_weightDecorator
CP::SysWriteDecorHandle< float > m_weightDecorator
the decoration for the pileup weight
Definition: PileupReweightingAlg.h:46
ReadHandle.h
Handle class for reading from StoreGate.
CP::PileupReweightingAlg::m_outOfValidity
OutOfValidityHelper m_outOfValidity
the helper for OutOfValidity results
Definition: PileupReweightingAlg.h:86
EventInfo.h
CP::PileupReweightingAlg::m_systematicsList
SysListHandle m_systematicsList
the systematics list we run
Definition: PileupReweightingAlg.h:42
CP::SysWriteDecorHandle< float >