ATLAS Offline Software
Loading...
Searching...
No Matches
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
13#include "GaudiKernel/IIncidentListener.h"
14
15#include <cstdint>
16
24
25class CountHepMC : public GenBase,
26 public virtual IIncidentListener {
27public:
28
29 CountHepMC(const std::string& name, ISvcLocator* pSvcLocator);
30
31 virtual StatusCode initialize() override;
32 virtual StatusCode execute() override;
33 virtual StatusCode finalize() override;
34
35 virtual void handle(const Incident& inc) override;
36
37private:
38
40 "StoreGateSvc/MetaDataStore", name()};
41 uint64_t m_nPass{0};
42 uint64_t m_nCount;
43
44 uint64_t m_firstEv;
46
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
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
SG::ReadDecorHandleKey< xAOD::EventInfo > m_mcWeightsKey
Definition CountHepMC.h:56
bool m_copyRunNumber
Definition CountHepMC.h:50
bool m_corEvtID
Definition CountHepMC.h:48
SG::ReadHandleKey< xAOD::EventInfo > m_inputEvtInfoKey
Definition CountHepMC.h:53
uint64_t m_nPass
Definition CountHepMC.h:41
ServiceHandle< StoreGateSvc > m_metaDataStore
Definition CountHepMC.h:39
virtual StatusCode finalize() override
std::string m_inputKeyName
Definition CountHepMC.h:51
SG::WriteHandleKey< xAOD::EventInfo > m_outputEvtInfoKey
Definition CountHepMC.h:54
virtual StatusCode execute() override
CountHepMC(const std::string &name, ISvcLocator *pSvcLocator)
uint32_t m_newRunNumber
Definition CountHepMC.h:45
bool m_corHepMC
Definition CountHepMC.h:47
uint64_t m_nCount
Definition CountHepMC.h:42
virtual StatusCode initialize() override
bool m_corRunNumber
Definition CountHepMC.h:49
uint64_t m_firstEv
Definition CountHepMC.h:44
virtual void handle(const Incident &inc) 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 ReadDecorHandle is made.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.