ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Generators
EvgenProdTools
EvgenProdTools
CountHepMC.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef XAOD_ANALYSIS
6
7
#ifndef EVGENPRODTOOLS_COUNTHEPMC_H
8
#define EVGENPRODTOOLS_COUNTHEPMC_H
9
10
#include "
GeneratorModules/GenBase.h
"
11
#include "
xAODEventInfo/EventInfo.h
"
12
#include "
StoreGate/ReadDecorHandleKey.h
"
13
#include "GaudiKernel/IIncidentListener.h"
14
15
#include <cstdint>
16
24
25
class
CountHepMC
:
public
GenBase
,
26
public
virtual
IIncidentListener {
27
public
:
28
29
CountHepMC
(
const
std::string& name, ISvcLocator* pSvcLocator);
30
31
virtual
StatusCode
initialize
()
override
;
32
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
;
33
virtual
StatusCode
finalize
()
override
;
34
35
virtual
void
handle
(
const
Incident& inc)
override
;
36
37
private
:
38
39
ServiceHandle< StoreGateSvc >
m_metaDataStore
{
40
"StoreGateSvc/MetaDataStore"
, name()};
41
uint64_t
m_nPass
{0};
42
uint64_t
m_nCount
;
43
44
uint64_t
m_firstEv
;
45
uint32_t
m_newRunNumber
;
46
47
bool
m_corHepMC
;
48
bool
m_corEvtID
;
49
bool
m_corRunNumber
;
50
bool
m_copyRunNumber
;
51
std::string
m_inputKeyName
;
52
53
SG::ReadHandleKey<xAOD::EventInfo>
m_inputEvtInfoKey
{
this
,
"InputEventInfo"
,
"TMPEvtInfo"
,
"ReadHandleKey for Input xAOD::EventInfo"
};
54
SG::WriteHandleKey<xAOD::EventInfo>
m_outputEvtInfoKey
{
this
,
"OutputEventInfo"
,
"EventInfo"
,
"WriteHandleKey for Output xAOD::EventInfo"
};
55
56
SG::ReadDecorHandleKey<xAOD::EventInfo>
m_mcWeightsKey
{
this
,
"mcEventWeightsKey"
,
m_inputEvtInfoKey
,
"mcEventWeights"
,
"Decoration for MC Event Weights"
};
57
58
};
59
60
61
#endif
62
63
#endif
GenBase.h
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
CountHepMC::m_mcWeightsKey
SG::ReadDecorHandleKey< xAOD::EventInfo > m_mcWeightsKey
Definition
CountHepMC.h:56
CountHepMC::m_copyRunNumber
bool m_copyRunNumber
Definition
CountHepMC.h:50
CountHepMC::m_corEvtID
bool m_corEvtID
Definition
CountHepMC.h:48
CountHepMC::m_inputEvtInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_inputEvtInfoKey
Definition
CountHepMC.h:53
CountHepMC::m_nPass
uint64_t m_nPass
Definition
CountHepMC.h:41
CountHepMC::m_metaDataStore
ServiceHandle< StoreGateSvc > m_metaDataStore
Definition
CountHepMC.h:39
CountHepMC::finalize
virtual StatusCode finalize() override
Definition
CountHepMC.cxx:288
CountHepMC::m_inputKeyName
std::string m_inputKeyName
Definition
CountHepMC.h:51
CountHepMC::m_outputEvtInfoKey
SG::WriteHandleKey< xAOD::EventInfo > m_outputEvtInfoKey
Definition
CountHepMC.h:54
CountHepMC::CountHepMC
CountHepMC(const std::string &name, ISvcLocator *pSvcLocator)
Definition
CountHepMC.cxx:30
CountHepMC::m_newRunNumber
uint32_t m_newRunNumber
Definition
CountHepMC.h:45
CountHepMC::m_corHepMC
bool m_corHepMC
Definition
CountHepMC.h:47
CountHepMC::execute
virtual StatusCode execute(const EventContext &ctx) override
Execute method.
Definition
CountHepMC.cxx:64
CountHepMC::m_nCount
uint64_t m_nCount
Definition
CountHepMC.h:42
CountHepMC::initialize
virtual StatusCode initialize() override
Definition
CountHepMC.cxx:43
CountHepMC::m_corRunNumber
bool m_corRunNumber
Definition
CountHepMC.h:49
CountHepMC::m_firstEv
uint64_t m_firstEv
Definition
CountHepMC.h:44
CountHepMC::handle
virtual void handle(const Incident &inc) override
Definition
CountHepMC.cxx:293
GenBase::GenBase
GenBase(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
GenBase.cxx:11
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition
StoreGate/StoreGate/ReadDecorHandleKey.h:86
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
ServiceHandle< StoreGateSvc >
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0