ATLAS Offline Software
PMGTruthWeightAlg.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__PMG_TRUTH_WEIGHT_ALG_H
9 #define ASG_ANALYSIS_ALGORITHMS__PMG_TRUTH_WEIGHT_ALG_H
10 
17 
18 namespace CP
19 {
21  class PMGTruthWeightAlg final : public EL::AnaAlgorithm
22  {
25  StatusCode initialize () override;
26  StatusCode execute () override;
27 
29  private:
30  ToolHandle<PMGTools::IPMGTruthWeightTool> m_truthWeightTool {this, "truthWeightTool", "PMGTools::PMGTruthWeightTool", "the truth weight tool"};
31 
33  private:
35 
37  private:
39  this, "eventInfo", "EventInfo", "the event info object to run on"};
40 
42  private:
44  this, "decoration", "", "the decoration for the truth weights"};
45  };
46 }
47 
48 #endif
CP::PMGTruthWeightAlg
an algorithm for calling IPMGTruthWeightTool
Definition: PMGTruthWeightAlg.h:22
CP::SysListHandle
a class managing the property to configure the list of systematics to process
Definition: SysListHandle.h:33
SysWriteDecorHandle.h
CP::PMGTruthWeightAlg::m_decoration
SysWriteDecorHandle< float > m_decoration
the decoration for the truth weights
Definition: PMGTruthWeightAlg.h:43
SysListHandle.h
CP::PMGTruthWeightAlg::initialize
StatusCode initialize() override
Definition: PMGTruthWeightAlg.cxx:22
CP::PMGTruthWeightAlg::m_truthWeightTool
ToolHandle< PMGTools::IPMGTruthWeightTool > m_truthWeightTool
the tool
Definition: PMGTruthWeightAlg.h:30
CP::PMGTruthWeightAlg::m_eventInfoHandle
SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the event info we decorate
Definition: PMGTruthWeightAlg.h:38
CP::SysReadHandle
a data handle for reading systematics varied input data
Definition: SysReadHandle.h:32
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
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
IPMGTruthWeightTool.h
CP::PMGTruthWeightAlg::m_systematicsList
SysListHandle m_systematicsList
the systematics list we run
Definition: PMGTruthWeightAlg.h:34
EventInfo.h
CP::PMGTruthWeightAlg::execute
StatusCode execute() override
Definition: PMGTruthWeightAlg.cxx:41
CP::SysWriteDecorHandle< float >