ATLAS Offline Software
Loading...
Searching...
No Matches
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
26
27class CopyEventWeight : public GenBase {
28public:
29
31 CopyEventWeight(const std::string& name, ISvcLocator* svcLoc);
32
34 virtual StatusCode initialize() override;
35 virtual StatusCode execute() override;
36
37private:
38
40 , "mcEventWeightsKey"
41 , "TMPEvtInfo.mcEventWeights"
42 , "Decoration for MC Event Weights"};
43};
44
45
46#endif
47
48#endif
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
SG::WriteDecorHandleKey< xAOD::EventInfo > m_mcWeightsKey
virtual StatusCode initialize() override
Copy the weight vector for each event.
CopyEventWeight(const std::string &name, ISvcLocator *svcLoc)
Constructor.
virtual StatusCode execute() override
GenBase(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition GenBase.cxx:11
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.