ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Generators
EvgenProdTools
EvgenProdTools
GenWeightDeclaration.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef XAOD_ANALYSIS
6
7
#ifndef EVGENPRODTOOLS_GENWEIGHTDECLARATION_H
8
#define EVGENPRODTOOLS_GENWEIGHTDECLARATION_H
9
10
#include "GaudiKernel/INamedInterface.h"
11
#include "
AthenaKernel/ICutFlowSvc.h
"
12
#include "
GenInterfaces/IHepMCWeightSvc.h
"
13
#include "
GeneratorModules/GenBase.h
"
14
#include "GaudiKernel/ServiceHandle.h"
15
16
class
CutFlowSvc
;
17
29
class
GenWeightDeclaration
:
public
GenBase
{
30
public
:
31
GenWeightDeclaration
(
const
std::string& name, ISvcLocator* svcLoc);
32
33
virtual
StatusCode
initialize
()
override
;
34
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
;
35
36
private
:
37
ServiceHandle<ICutFlowSvc>
m_cutFlowSvc
{
38
this
,
"CutFlowSvc"
,
"CutFlowSvc/CutFlowSvc"
,
39
"Cut-flow service"
};
40
41
// The CutFlowSvc implementation, used to call the
42
// setNumberOfWeightVariations method
43
CutFlowSvc
*
m_cutFlowSvcImpl
{
nullptr
};
44
45
ServiceHandle<IHepMCWeightSvc>
m_hepMCWeightSvc
{
46
this
,
"HepMCWeightSvc"
,
"HepMCWeightSvc/HepMCWeightSvc"
,
47
"Service receiving the generator weight names"
};
48
49
// Indicates whether the weights have been declared to the CutFlowSvc
50
bool
m_weightsDeclared
{
false
};
51
};
52
53
#endif
54
55
#endif
GenBase.h
ICutFlowSvc.h
IHepMCWeightSvc.h
CutFlowSvc
This implements the methods for ICutFlowSvc.
Definition
CutFlowSvc.h:47
GenBase::GenBase
GenBase(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
GenBase.cxx:11
GenWeightDeclaration::m_weightsDeclared
bool m_weightsDeclared
Definition
GenWeightDeclaration.h:50
GenWeightDeclaration::initialize
virtual StatusCode initialize() override
Definition
GenWeightDeclaration.cxx:19
GenWeightDeclaration::execute
virtual StatusCode execute(const EventContext &ctx) override
Execute method.
Definition
GenWeightDeclaration.cxx:39
GenWeightDeclaration::m_hepMCWeightSvc
ServiceHandle< IHepMCWeightSvc > m_hepMCWeightSvc
Definition
GenWeightDeclaration.h:45
GenWeightDeclaration::m_cutFlowSvc
ServiceHandle< ICutFlowSvc > m_cutFlowSvc
Definition
GenWeightDeclaration.h:37
GenWeightDeclaration::m_cutFlowSvcImpl
CutFlowSvc * m_cutFlowSvcImpl
Definition
GenWeightDeclaration.h:43
GenWeightDeclaration::GenWeightDeclaration
GenWeightDeclaration(const std::string &name, ISvcLocator *svcLoc)
Definition
GenWeightDeclaration.cxx:12
ServiceHandle
Definition
ClusterMakerTool.h:36
Generated on
for ATLAS Offline Software by
1.17.0