5#ifndef BARCODESERVICES_VALIDATIONBARCODESVC_H
6#define BARCODESERVICES_VALIDATIONBARCODESVC_H 1
12#include "GaudiKernel/IIncidentListener.h"
13#include "GaudiKernel/ServiceHandle.h"
43 virtual StatusCode
finalize()
override;
46 virtual void handle(
const Incident& inc)
override;
int m_particleGenerationIncrement
barcode offset for each generation of updated particles
virtual void registerLargestGeneratedVtxBC(int) override
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 void registerLargestSecondaryParticleBC(int) override
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 void registerLargestGeneratedParticleBC(int) override
Inform the BarcodeSvc about the largest particle and vertex Barcodes in the event input.
virtual int secondaryParticleBcOffset() const override
Return the secondary particle and vertex offsets.
virtual void registerLargestSimulationVtxBC(int) override
int m_firstVertex
barcode information used for GenVertices
constexpr int UNDEFINED_ID