ATLAS Offline Software
Loading...
Searching...
No Matches
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"
14#include "GaudiKernel/ServiceHandle.h"
15
16class CutFlowSvc;
17
30public:
31 GenWeightDeclaration(const std::string& name, ISvcLocator* svcLoc);
32
33 virtual StatusCode initialize() override;
34 virtual StatusCode execute(const EventContext& ctx) override;
35
36private:
38 this, "CutFlowSvc", "CutFlowSvc/CutFlowSvc",
39 "Cut-flow service"};
40
41 // The CutFlowSvc implementation, used to call the
42 // setNumberOfWeightVariations method
44
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
This implements the methods for ICutFlowSvc.
Definition CutFlowSvc.h:47
GenBase(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition GenBase.cxx:11
virtual StatusCode initialize() override
virtual StatusCode execute(const EventContext &ctx) override
Execute method.
ServiceHandle< IHepMCWeightSvc > m_hepMCWeightSvc
ServiceHandle< ICutFlowSvc > m_cutFlowSvc
GenWeightDeclaration(const std::string &name, ISvcLocator *svcLoc)