![]() |
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 <ValidationBarcodeSvc.h>
Public Member Functions | |
| ValidationBarcodeSvc (const std::string &name, ISvcLocator *pSvcLocator) | |
| Constructor with parameters. | |
| virtual | ~ValidationBarcodeSvc () |
| Destructor. | |
| virtual StatusCode | initialize () override |
| Athena algorithm's interface methods. | |
| virtual StatusCode | finalize () override |
| framework methods | |
| virtual void | handle (const Incident &inc) override |
| Incident to reset the barcodes at the beginning of the event. | |
| virtual int | newSimulationVertex () override |
| Generate a new unique vertex barcode, based on the parent particle barcode and the physics process code causing the truth vertex. | |
| 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 | newGeneratedParticle (int parentBC=HepMC::UNDEFINED_ID) override |
| Generate a new unique particle barcode below the simulation offset (for particles from pre-defined decays) | |
| 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 int | secondaryVertexBcOffset () const override |
| Return the secondary vertex offset. | |
| virtual void | registerLargestGeneratedParticleBC (int) override |
| Inform the BarcodeSvc about the largest particle and vertex Barcodes in the event input. | |
| virtual void | registerLargestGeneratedVtxBC (int) override |
| virtual void | registerLargestSecondaryParticleBC (int) override |
| virtual void | registerLargestSimulationVtxBC (int) override |
Private Attributes | |
| ServiceHandle< IIncidentSvc > | m_incidentSvc |
| IncidentSvc to catch begin of event and end of envent. | |
| int | m_firstVertex |
| barcode information used for GenVertices | |
| int | m_vertexIncrement |
| int | m_currentVertex |
| int | m_firstSecondary |
| barcode information used for secondary GenParticles | |
| int | m_secondaryIncrement |
| int | m_currentSecondary |
| int | m_particleGenerationIncrement |
| barcode offset for each generation of updated particles | |
| int | m_barcodeGenerationOffset |
| not sure why this is needed... | |
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 ValidationBarcodeSvc.h.
| Barcode::ValidationBarcodeSvc::ValidationBarcodeSvc | ( | const std::string & | name, |
| ISvcLocator * | pSvcLocator ) |
Constructor with parameters.
Constructor.
Definition at line 12 of file ValidationBarcodeSvc.cxx.
|
virtual |
|
overridevirtual |
framework methods
Definition at line 148 of file ValidationBarcodeSvc.cxx.
|
overridevirtual |
Incident to reset the barcodes at the beginning of the event.
Handle incident.
Definition at line 136 of file ValidationBarcodeSvc.cxx.
|
overridevirtual |
Athena algorithm's interface methods.
framework methods
Definition at line 36 of file ValidationBarcodeSvc.cxx.
|
overridevirtual |
Generate a new unique particle barcode below the simulation offset (for particles from pre-defined decays)
Definition at line 87 of file ValidationBarcodeSvc.cxx.
|
overridevirtual |
Generate a new unique vertex barcode below the simulation offset.
Generate a new unique vertex barcode.
Definition at line 106 of file ValidationBarcodeSvc.cxx.
|
overridevirtual |
Generate a new unique barcode for a secondary particle, based on the parent particle barcode.
Definition at line 68 of file ValidationBarcodeSvc.cxx.
|
overridevirtual |
Generate a new unique vertex barcode, based on the parent particle barcode and the physics process code causing the truth vertex.
Generate a new unique vertex barcode.
Definition at line 51 of file ValidationBarcodeSvc.cxx.
|
inlineoverridevirtual |
Inform the BarcodeSvc about the largest particle and vertex Barcodes in the event input.
Definition at line 68 of file ValidationBarcodeSvc.h.
|
inlineoverridevirtual |
Definition at line 69 of file ValidationBarcodeSvc.h.
|
inlineoverridevirtual |
Definition at line 70 of file ValidationBarcodeSvc.h.
|
inlineoverridevirtual |
Definition at line 71 of file ValidationBarcodeSvc.h.
|
overridevirtual |
Return the secondary particle and vertex offsets.
Return the secondary particle offset.
Definition at line 122 of file ValidationBarcodeSvc.cxx.
|
overridevirtual |
Return the secondary vertex offset.
Definition at line 129 of file ValidationBarcodeSvc.cxx.
|
private |
not sure why this is needed...
Definition at line 88 of file ValidationBarcodeSvc.h.
|
private |
Definition at line 84 of file ValidationBarcodeSvc.h.
|
private |
Definition at line 79 of file ValidationBarcodeSvc.h.
|
private |
barcode information used for secondary GenParticles
Definition at line 82 of file ValidationBarcodeSvc.h.
|
private |
barcode information used for GenVertices
Definition at line 77 of file ValidationBarcodeSvc.h.
|
private |
IncidentSvc to catch begin of event and end of envent.
Definition at line 74 of file ValidationBarcodeSvc.h.
|
private |
barcode offset for each generation of updated particles
Definition at line 87 of file ValidationBarcodeSvc.h.
|
private |
Definition at line 83 of file ValidationBarcodeSvc.h.
|
private |
Definition at line 78 of file ValidationBarcodeSvc.h.