![]() |
ATLAS Offline Software
|
HepMC based version of the ISF::ITruthSvc, currently it takes an ITruthIncident base class. More...
#include <TruthSvc.h>
Public Member Functions | |
| TruthSvc (const std::string &name, ISvcLocator *pSvcLocator) | |
| Constructor. | |
| virtual | ~TruthSvc ()=default |
| Destructor. | |
| StatusCode | initialize () override |
| Athena algorithm's interface method initialize() | |
| StatusCode | finalize () override |
| Athena algorithm's interface method finalize() | |
| void | registerTruthIncident (ITruthIncident &truthincident, bool saveAllChildren=false) const override |
| Register a truth incident. | |
| StatusCode | initializeTruthCollection (int largestGeneratedParticleBC=0, int largestGeneratedVertexBC=0) override |
| Initialize the Truth Svc at the beginning of each event. | |
| StatusCode | releaseEvent () override |
| Finalize the Truth Svc at the end of each event. | |
Private Member Functions | |
| void | recordIncidentToMCTruth (ITruthIncident &truthincident, bool passWholeVertex) const |
| Record the given truth incident to the MC Truth. | |
| HepMC::GenVertexPtr | createGenVertexFromTruthIncident (ITruthIncident &truthincident) const |
| Record and end vertex to the MC Truth for the parent particle. | |
Private Attributes | |
| ServiceHandle< Barcode::IBarcodeSvc > | m_barcodeSvc {this, "BarcodeSvc", "BarcodeSvc", ""} |
| The Barcode service. | |
| ToolHandleArray< ITruthStrategy > | m_truthStrategies {this, "TruthStrategies", {}, ""} |
| the truth strategies applied (as AthenaToolHandle Array) | |
| ITruthStrategy ** | m_geoStrategies [AtlasDetDescr::fNumAtlasRegions] |
| for faster access: using an internal pointer to the actual ITruthStrategy instances | |
| unsigned short | m_numStrategies [AtlasDetDescr::fNumAtlasRegions] |
| Gaudi::Property< bool > | m_skipIfNoChildren {this, "SkipIfNoChildren", true, ""} |
| MCTruth steering. | |
| Gaudi::Property< bool > | m_skipIfNoParentId {this, "SkipIfNoParentId", true, ""} |
| do not record if parentId == HepMC::UNDEFINED_ID | |
| Gaudi::Property< bool > | m_ignoreUndefinedBarcodes {this, "IgnoreUndefinedBarcodes", false, ""} |
| do/don't abort if retrieve an undefined barcode | |
| Gaudi::Property< bool > | m_passWholeVertex {this, "PassWholeVertices", true, ""} |
| Gaudi::Property< std::vector< unsigned int > > | m_forceEndVtxRegionsVec {this, "ForceEndVtxInRegions", {}, ""} |
| property containing AtlasRegions for which | |
| std::array< bool, AtlasDetDescr::fNumAtlasRegions > | m_forceEndVtx {} |
| attach end vertex to | |
| Gaudi::Property< bool > | m_quasiStableParticlesIncluded {this, "QuasiStableParticlesIncluded", false, ""} |
| does this job simulate quasi-stable particles. | |
| Gaudi::Property< bool > | m_quasiStableParticleOverwrite {this, "QuasiStableParticleOverwrite", true, ""} |
| should the job be overwriting QS particles | |
HepMC based version of the ISF::ITruthSvc, currently it takes an ITruthIncident base class.
Definition at line 50 of file TruthSvc.h.
| ISF::TruthSvc::TruthSvc | ( | const std::string & | name, |
| ISvcLocator * | pSvcLocator ) |
Constructor.
Definition at line 49 of file TruthSvc.cxx.
|
virtualdefault |
Destructor.
|
private |
Record and end vertex to the MC Truth for the parent particle.
Record the given truth incident to the MC Truth.
Definition at line 300 of file TruthSvc.cxx.
|
override |
Athena algorithm's interface method finalize()
framework methods
Definition at line 105 of file TruthSvc.cxx.
|
override |
Athena algorithm's interface method initialize()
framework methods
Definition at line 57 of file TruthSvc.cxx.
|
override |
Initialize the Truth Svc at the beginning of each event.
Initialize the TruthSvc and the truthSvc.
Definition at line 113 of file TruthSvc.cxx.
|
private |
Record the given truth incident to the MC Truth.
Definition at line 199 of file TruthSvc.cxx.
|
override |
Register a truth incident.
Definition at line 125 of file TruthSvc.cxx.
|
override |
Finalize the Truth Svc at the end of each event.
Definition at line 119 of file TruthSvc.cxx.
|
private |
The Barcode service.
Definition at line 83 of file TruthSvc.h.
|
private |
|
private |
property containing AtlasRegions for which
Definition at line 98 of file TruthSvc.h.
|
private |
for faster access: using an internal pointer to the actual ITruthStrategy instances
Definition at line 88 of file TruthSvc.h.
|
private |
do/don't abort if retrieve an undefined barcode
Definition at line 94 of file TruthSvc.h.
|
private |
Definition at line 89 of file TruthSvc.h.
|
private |
Definition at line 96 of file TruthSvc.h.
|
private |
should the job be overwriting QS particles
Definition at line 104 of file TruthSvc.h.
|
private |
does this job simulate quasi-stable particles.
Definition at line 103 of file TruthSvc.h.
|
private |
MCTruth steering.
do not record incident if numChildren==0
Definition at line 92 of file TruthSvc.h.
|
private |
do not record if parentId == HepMC::UNDEFINED_ID
Definition at line 93 of file TruthSvc.h.
|
private |
the truth strategies applied (as AthenaToolHandle Array)
Definition at line 86 of file TruthSvc.h.