|
ATLAS Offline Software
|
Go to the documentation of this file.
12 #include "GaudiKernel/DataSvc.h"
36 return StatusCode::SUCCESS;
52 msg(MSG::ERROR) <<
"Could not record McEventCollection" <<
endmsg;
57 HepMC3::GenEvent*
evt =
new HepMC3::GenEvent();
65 const auto cs =
evt->cross_section();
83 HepMC::GenCrossSection* cs=
evt->cross_section();
86 xs=cs->cross_section();
92 return StatusCode::SUCCESS;
99 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
HepMCReadFromFile(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::unique_ptr< HepMC::IO_GenEvent > m_hepmcio
std::string m_mcEventKey
StoreGate key for the MC event collection (defaults to GEN_EVENT)
virtual StatusCode initialize() override
virtual StatusCode execute() override
virtual StatusCode finalize() override
bool msgLvl(const MSG::Level lvl) const
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Base class for common behaviour of MC truth algorithms.
::StatusCode StatusCode
StatusCode definition for legacy code.
#define CHECK(...)
Evaluate an expression and check for errors.
This defines the McEventCollection, which is really just an ObjectVector of McEvent objects.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
virtual StatusCode initialize() override