![]() |
ATLAS Offline Software
|
This BarcodeService reproduces the barcode treatmend for MC12: http://acode-browser.usatlas.bnl.gov/lxr/source/atlas/Simulation/G4Sim/MCTruth/src/TruthStrategyManager.cxx. More...
#include <LegacyBarcodeSvc.h>
Classes | |
| struct | BarcodeInfo |
Public Member Functions | |
| LegacyBarcodeSvc (const std::string &name, ISvcLocator *pSvcLocator) | |
| Constructor with parameters. | |
| virtual | ~LegacyBarcodeSvc ()=default |
| Destructor. | |
| virtual StatusCode | initialize () override |
| Athena algorithm's interface methods. | |
| virtual StatusCode | initializeBarcodes (int largestGeneratedParticleBC=0, int largestGeneratedVertexBC=0) override |
| Construct and insert a new set of barcode members. | |
| 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. | |
| virtual int | newGeneratedParticle (int) override |
| Generate a new unique particle barcode below the simulation offset (for particles from pre-defined decays) | |
| virtual int | newSimulationVertex () override |
| Generate a new unique vertex barcode above the simulation offset. | |
| virtual int | newGeneratedVertex () override |
| Generate a new unique vertex barcode below the simulation offset. | |
| virtual void | registerLargestGeneratedParticleBC (int bc) override |
| Inform the BarcodeSvc about the largest particle and vertex Barcodes in the event input. | |
| virtual void | registerLargestGeneratedVtxBC (int bc) override |
| virtual void | registerLargestSecondaryParticleBC (int bc) override |
| virtual void | registerLargestSimulationVtxBC (int bc) override |
| virtual int | secondaryParticleBcOffset () const override |
| Return the secondary particle and vertex offsets. | |
| virtual int | secondaryVertexBcOffset () const override |
| Return the secondary vertex offset. | |
Private Types | |
| using | LegacyBarcodeSvcThreadMap_t |
Private Member Functions | |
| BarcodeInfo & | getBarcodeInfo () |
Private Attributes | |
| int | m_firstVertex |
| barcode information used for GenVertices | |
| int | m_vertexIncrement |
| int | m_firstSecondary |
| barcode information used for secondary GenParticles | |
| int | m_particleIncrement |
| LegacyBarcodeSvcThreadMap_t | m_bcThreadMap |
This BarcodeService reproduces the barcode treatmend for MC12: http://acode-browser.usatlas.bnl.gov/lxr/source/atlas/Simulation/G4Sim/MCTruth/src/TruthStrategyManager.cxx.
Definition at line 32 of file LegacyBarcodeSvc.h.
|
private |
Definition at line 96 of file LegacyBarcodeSvc.h.
| Barcode::LegacyBarcodeSvc::LegacyBarcodeSvc | ( | const std::string & | name, |
| ISvcLocator * | pSvcLocator ) |
Constructor with parameters.
Constructor.
Definition at line 11 of file LegacyBarcodeSvc.cxx.
|
virtualdefault |
Destructor.
|
private |
Definition at line 61 of file LegacyBarcodeSvc.cxx.
|
overridevirtual |
Athena algorithm's interface methods.
framework methods
Definition at line 22 of file LegacyBarcodeSvc.cxx.
|
overridevirtual |
Construct and insert a new set of barcode members.
To be called for every new thread.
Definition at line 34 of file LegacyBarcodeSvc.cxx.
|
overridevirtual |
Generate a new unique particle barcode below the simulation offset (for particles from pre-defined decays)
Generate a new unique barcode for a particle produced in a pre-defined decay.
Definition at line 149 of file LegacyBarcodeSvc.cxx.
|
overridevirtual |
Generate a new unique vertex barcode below the simulation offset.
Generate a new unique vertex barcode for pre-defined decay vertices.
Definition at line 123 of file LegacyBarcodeSvc.cxx.
|
overridevirtual |
Generate a new unique barcode for a secondary particle above the simulation offset.
Generate a new unique barcode for a secondary particle.
Definition at line 101 of file LegacyBarcodeSvc.cxx.
|
overridevirtual |
Generate a new unique vertex barcode above the simulation offset.
Generate a new unique vertex simulated barcode.
Definition at line 80 of file LegacyBarcodeSvc.cxx.
|
overridevirtual |
Inform the BarcodeSvc about the largest particle and vertex Barcodes in the event input.
Definition at line 175 of file LegacyBarcodeSvc.cxx.
|
overridevirtual |
Definition at line 182 of file LegacyBarcodeSvc.cxx.
|
overridevirtual |
Definition at line 189 of file LegacyBarcodeSvc.cxx.
|
overridevirtual |
Definition at line 193 of file LegacyBarcodeSvc.cxx.
|
overridevirtual |
Reset barcodes.
To be called at the beginning of each event.
Definition at line 209 of file LegacyBarcodeSvc.cxx.
|
overridevirtual |
Return the secondary particle and vertex offsets.
Return the secondary particle offset.
Definition at line 198 of file LegacyBarcodeSvc.cxx.
|
overridevirtual |
Return the secondary vertex offset.
Definition at line 204 of file LegacyBarcodeSvc.cxx.
|
private |
Definition at line 98 of file LegacyBarcodeSvc.h.
|
private |
barcode information used for secondary GenParticles
Definition at line 80 of file LegacyBarcodeSvc.h.
|
private |
barcode information used for GenVertices
Definition at line 76 of file LegacyBarcodeSvc.h.
|
private |
Definition at line 81 of file LegacyBarcodeSvc.h.
|
private |
Definition at line 77 of file LegacyBarcodeSvc.h.