ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Generators
EvgenProdTools
EvgenProdTools
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
10
#include "
GeneratorModules/GenBase.h
"
11
#include "
StoreGate/WriteDecorHandleKey.h
"
12
#include "
xAODEventInfo/EventInfo.h
"
13
26
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
(
const
EventContext& ctx)
override
;
36
37
private
:
38
39
SG::WriteDecorHandleKey<xAOD::EventInfo>
m_mcWeightsKey
{this
40
,
"mcEventWeightsKey"
41
,
"TMPEvtInfo.mcEventWeights"
42
,
"Decoration for MC Event Weights"
};
43
};
44
45
46
#endif
47
48
#endif
GenBase.h
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
CopyEventWeight::m_mcWeightsKey
SG::WriteDecorHandleKey< xAOD::EventInfo > m_mcWeightsKey
Definition
CopyEventWeight.h:39
CopyEventWeight::initialize
virtual StatusCode initialize() override
Copy the weight vector for each event.
Definition
CopyEventWeight.cxx:17
CopyEventWeight::CopyEventWeight
CopyEventWeight(const std::string &name, ISvcLocator *svcLoc)
Constructor.
Definition
CopyEventWeight.cxx:12
CopyEventWeight::execute
virtual StatusCode execute(const EventContext &ctx) override
Execute method.
Definition
CopyEventWeight.cxx:24
GenBase::GenBase
GenBase(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
GenBase.cxx:11
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition
StoreGate/StoreGate/WriteDecorHandleKey.h:90
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0