6#include "GaudiKernel/ISvcLocator.h"
7#include "GaudiKernel/DataSvc.h"
23 return StatusCode::SUCCESS;
32 ATH_MSG_DEBUG(
"Creating new McEventCollection in the event store");
34 if (evtStore()->record(mcevents, m_mcEventKey).isFailure())
40 if (evtStore()->retrieve (mecc, m_mcEventKey).isFailure())
#define ATH_CHECK
Evaluate an expression and check for errors.
McEventCollection *GenBase::events ATLAS_NOT_CONST_THREAD_SAFE()
Access the current event's McEventCollection.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
std::string m_mcEventKey
StoreGate key for the MC event collection (defaults to GEN_EVENT)
virtual StatusCode initialize() override
GenBase(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
ServiceHandle< IPartPropSvc > m_ppSvc
Handle on the particle property service.
SG::ReadHandleKey< McEventCollection > m_mcevents_const
Const handle to the MC event collection.
This defines the McEventCollection, which is really just an ObjectVector of McEvent objectsFile: Gene...
bool contains(const std::string &s, const std::string ®x)
does a string contain the substring