ATLAS Offline Software
CopyEventWeight.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef XAOD_ANALYSIS
6 
7 #ifndef EVGENPRODTOOLS_COPYEVENTWEIGHT_H
8 #define EVGENPRODTOOLS_COPYEVENTWEIGHT_H
9 
13 
27 class CopyEventWeight : public GenBase {
28 public:
29 
31  CopyEventWeight(const std::string& name, ISvcLocator* svcLoc);
32 
34  virtual StatusCode initialize() override;
35  virtual StatusCode execute() override;
36 
37 private:
38 
40  , "mcEventWeightsKey"
41  , "TMPEvtInfo.mcEventWeights"
42  , "Decoration for MC Event Weights"};
43 };
44 
45 
46 #endif
47 
48 #endif
SG::WriteDecorHandleKey< xAOD::EventInfo >
CopyEventWeight::m_mcWeightsKey
SG::WriteDecorHandleKey< xAOD::EventInfo > m_mcWeightsKey
Definition: CopyEventWeight.h:39
CopyEventWeight
Copy MC truth event weights into the event info store.
Definition: CopyEventWeight.h:27
CopyEventWeight::execute
virtual StatusCode execute() override
Definition: CopyEventWeight.cxx:24
CopyEventWeight::CopyEventWeight
CopyEventWeight(const std::string &name, ISvcLocator *svcLoc)
Constructor.
Definition: CopyEventWeight.cxx:12
GenBase
Base class for common behaviour of MC truth algorithms.
Definition: GenBase.h:47
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CopyEventWeight::initialize
virtual StatusCode initialize() override
Copy the weight vector for each event.
Definition: CopyEventWeight.cxx:17
GenBase.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
EventInfo.h