|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef BARCODESERVICES_LEGACYBARCODESVC_H
6 #define BARCODESERVICES_LEGACYBARCODESVC_H 1
12 #include "GaudiKernel/ServiceHandle.h"
18 #include "tbb/concurrent_unordered_map.h"
107 #endif //> !BARCODESERVICES_LEGACYBARCODESVC_H
virtual void registerLargestSecondaryParticleBC(int bc) override
tbb::concurrent_unordered_map< std::thread::id, BarcodeInfo, std::hash< std::thread::id > > LegacyBarcodeSvcThreadMap_t
LegacyBarcodeSvcThreadMap_t m_bcThreadMap
virtual void registerLargestSimulationVtxBC(int bc) override
virtual StatusCode resetBarcodes(int largestGeneratedParticleBC=0, int largestGeneratedVertexBC=0) override
Reset barcodes.
virtual int newSecondaryParticle(int) override
Generate a new unique barcode for a secondary particle above the simulation offset.
int currentSimulationVertex
virtual void registerLargestGeneratedVtxBC(int bc) override
int currentGeneratedParticle
::StatusCode StatusCode
StatusCode definition for legacy code.
LegacyBarcodeSvc(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters.
int m_firstSecondary
barcode information used for secondary GenParticles
virtual int newGeneratedVertex() override
Generate a new unique vertex barcode below the simulation offset.
virtual int secondaryParticleBcOffset() const override
Return the secondary particle and vertex offsets.
virtual ~LegacyBarcodeSvc()=default
Destructor.
virtual StatusCode initializeBarcodes(int largestGeneratedParticleBC=0, int largestGeneratedVertexBC=0) override
Construct and insert a new set of barcode members.
int currentSecondaryParticle
virtual int newSimulationVertex() override
Generate a new unique vertex barcode above the simulation offset.
virtual void registerLargestGeneratedParticleBC(int bc) override
Inform the BarcodeSvc about the largest particle and vertex Barcodes in the event input.
BarcodeInfo(int csv, int csp, int cgv, int cgp)
virtual int secondaryVertexBcOffset() const override
Return the secondary vertex offset.
BarcodeInfo & getBarcodeInfo()
virtual int newGeneratedParticle(int) override
Generate a new unique particle barcode below the simulation offset (for particles from pre-defined de...
virtual StatusCode initialize() override
Athena algorithm's interface methods.
int currentGeneratedVertex
int m_firstVertex
barcode information used for GenVertices