Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ActsExamples::EventStore Struct Reference

Common event store for all Geant4 related sub algorithms. More...

#include <acts/blob/sPHENIX/Examples/Algorithms/Geant4/include/ActsExamples/Geant4/EventStore.hpp>

+ Collaboration diagram for ActsExamples::EventStore:

Public Types

using ParticleContainer = std::set< ActsFatras::Particle, ActsExamples::detail::CompareParticleId >
 
using BarcodeWithoutSubparticle = Acts::MultiIndex< uint64_t, 16, 16, 16, 16 >
 

Public Attributes

WhiteBoardstore = nullptr
 The current event store.
 
ParticleContainer particlesInitial
 Initial and final particle collections.
 
ParticleContainer particlesFinal
 
SimHitContainer::sequence_type hits
 The hits in sensitive detectors.
 
std::vector< ActsFatras::HithitBuffer
 Hit buffer for step merging (multiple steps in sensitive volume)
 
std::size_t numberGeantSteps = 0
 Some statistics for the step merging.
 
std::size_t maxStepsForHit = 0
 
std::unordered_map
< std::size_t,
Acts::RecordedMaterialTrack
materialTracks
 Tracks recorded in material mapping.
 
std::unordered_map< SimBarcode,
std::size_t > 
particleHitCount
 Particle hit count (for hit indexing)
 
std::unordered_map< G4int,
SimBarcode
trackIdMapping
 Geant4 Track ID to Barcode mapping.
 
std::unordered_map< G4int,
std::size_t > 
trackIdSubparticleCount
 Geant4 Track ID subparticle counter (for subparticle indexing)
 
const ReadDataHandle
< SimParticleContainer > * 
inputParticles {nullptr}
 Data handles to read particles from the whiteboard.
 
std::size_t particleIdCollisionsInitial = 0
 Count particle ID collisions.
 
std::size_t particleIdCollisionsFinal = 0
 
std::size_t parentIdNotFound = 0
 
std::unordered_map
< BarcodeWithoutSubparticle,
std::size_t > 
subparticleMap
 

Detailed Description

Common event store for all Geant4 related sub algorithms.

Definition at line 30 of file EventStore.hpp.

View newest version in sPHENIX GitHub at line 30 of file EventStore.hpp

Member Typedef Documentation

Store subparticle count for {primVertex, secVertex, part, gen} This is done using a pseudo-barcode that contains all fields but not the subparticle counter. This can be used as key in a map to store the subparticle information

Definition at line 76 of file EventStore.hpp.

View newest version in sPHENIX GitHub at line 76 of file EventStore.hpp

Use a std::set here because it allows for fast insertion and ensures uniqueness. Thus particle collisions are detected early.

Definition at line 38 of file EventStore.hpp.

View newest version in sPHENIX GitHub at line 38 of file EventStore.hpp

Member Data Documentation

std::vector<ActsFatras::Hit> ActsExamples::EventStore::hitBuffer

Hit buffer for step merging (multiple steps in sensitive volume)

Definition at line 48 of file EventStore.hpp.

View newest version in sPHENIX GitHub at line 48 of file EventStore.hpp

SimHitContainer::sequence_type ActsExamples::EventStore::hits

The hits in sensitive detectors.

Definition at line 45 of file EventStore.hpp.

View newest version in sPHENIX GitHub at line 45 of file EventStore.hpp

const ReadDataHandle<SimParticleContainer>* ActsExamples::EventStore::inputParticles {nullptr}

Data handles to read particles from the whiteboard.

Definition at line 65 of file EventStore.hpp.

View newest version in sPHENIX GitHub at line 65 of file EventStore.hpp

std::unordered_map<std::size_t, Acts::RecordedMaterialTrack> ActsExamples::EventStore::materialTracks

Tracks recorded in material mapping.

Definition at line 55 of file EventStore.hpp.

View newest version in sPHENIX GitHub at line 55 of file EventStore.hpp

std::size_t ActsExamples::EventStore::maxStepsForHit = 0

Definition at line 52 of file EventStore.hpp.

View newest version in sPHENIX GitHub at line 52 of file EventStore.hpp

std::size_t ActsExamples::EventStore::numberGeantSteps = 0

Some statistics for the step merging.

Definition at line 51 of file EventStore.hpp.

View newest version in sPHENIX GitHub at line 51 of file EventStore.hpp

std::size_t ActsExamples::EventStore::parentIdNotFound = 0

Definition at line 70 of file EventStore.hpp.

View newest version in sPHENIX GitHub at line 70 of file EventStore.hpp

std::unordered_map<SimBarcode, std::size_t> ActsExamples::EventStore::particleHitCount

Particle hit count (for hit indexing)

Definition at line 58 of file EventStore.hpp.

View newest version in sPHENIX GitHub at line 58 of file EventStore.hpp

std::size_t ActsExamples::EventStore::particleIdCollisionsFinal = 0

Definition at line 69 of file EventStore.hpp.

View newest version in sPHENIX GitHub at line 69 of file EventStore.hpp

std::size_t ActsExamples::EventStore::particleIdCollisionsInitial = 0

Count particle ID collisions.

Definition at line 68 of file EventStore.hpp.

View newest version in sPHENIX GitHub at line 68 of file EventStore.hpp

ParticleContainer ActsExamples::EventStore::particlesFinal

Definition at line 42 of file EventStore.hpp.

View newest version in sPHENIX GitHub at line 42 of file EventStore.hpp

ParticleContainer ActsExamples::EventStore::particlesInitial

Initial and final particle collections.

Definition at line 41 of file EventStore.hpp.

View newest version in sPHENIX GitHub at line 41 of file EventStore.hpp

WhiteBoard* ActsExamples::EventStore::store = nullptr

The current event store.

Definition at line 33 of file EventStore.hpp.

View newest version in sPHENIX GitHub at line 33 of file EventStore.hpp

Referenced by ActsExamples::Geant4SimulationBase::execute().

std::unordered_map<BarcodeWithoutSubparticle, std::size_t> ActsExamples::EventStore::subparticleMap

Definition at line 77 of file EventStore.hpp.

View newest version in sPHENIX GitHub at line 77 of file EventStore.hpp

std::unordered_map<G4int, SimBarcode> ActsExamples::EventStore::trackIdMapping

Geant4 Track ID to Barcode mapping.

Definition at line 60 of file EventStore.hpp.

View newest version in sPHENIX GitHub at line 60 of file EventStore.hpp

std::unordered_map<G4int, std::size_t> ActsExamples::EventStore::trackIdSubparticleCount

Geant4 Track ID subparticle counter (for subparticle indexing)

Definition at line 62 of file EventStore.hpp.

View newest version in sPHENIX GitHub at line 62 of file EventStore.hpp


The documentation for this struct was generated from the following file: