7#include "GaudiKernel/IIncidentSvc.h"
46 return StatusCode::SUCCESS;
59 <<
" will return a vertex barcode greater than 0: "
75 ATH_MSG_ERROR(
"ValidationBarcodeSvc::newSecondaryParticle(...)"
76 <<
" will return a particle barcode of less than 0: "
94 ATH_MSG_ERROR(
"ValidationBarcodeSvc::newGeneratedParticle(...)"
95 <<
" will return a particle barcode of less than 0: "
113 ATH_MSG_ERROR(
"ValidationBarcodeSvc::newGeneratedVertex(...)"
114 <<
" will return a vertex barcode greater than 0: "
138 if ( inc.type() == IncidentType::BeginEvent )
140 ATH_MSG_VERBOSE(
"'BeginEvent' incident caught. Resetting Vertex and Particle barcode counters.");
152 return StatusCode::SUCCESS;
#define ATH_MSG_VERBOSE(x)
#define CHECK(...)
Evaluate an expression and check for errors.
int m_particleGenerationIncrement
barcode offset for each generation of updated particles
ValidationBarcodeSvc(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters.
virtual int newSecondaryParticle(int parentBC=HepMC::UNDEFINED_ID) override
Generate a new unique barcode for a secondary particle, based on the parent particle barcode.
virtual int secondaryVertexBcOffset() const override
Return the secondary vertex offset.
virtual StatusCode finalize() override
framework methods
virtual int newGeneratedVertex() override
Generate a new unique vertex barcode below the simulation offset.
int m_firstSecondary
barcode information used for secondary GenParticles
virtual int newGeneratedParticle(int parentBC=HepMC::UNDEFINED_ID) override
Generate a new unique particle barcode below the simulation offset (for particles from pre-defined de...
virtual int newSimulationVertex() override
Generate a new unique vertex barcode, based on the parent particle barcode and the physics process co...
virtual StatusCode initialize() override
Athena algorithm's interface methods.
virtual void handle(const Incident &inc) override
Incident to reset the barcodes at the beginning of the event.
ServiceHandle< IIncidentSvc > m_incidentSvc
IncidentSvc to catch begin of event and end of envent.
virtual ~ValidationBarcodeSvc()
Destructor.
int m_barcodeGenerationOffset
not sure why this is needed...
virtual int secondaryParticleBcOffset() const override
Return the secondary particle and vertex offsets.
int m_firstVertex
barcode information used for GenVertices