aegir
Phlex-based simulation framework for the SHiP experiment.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
SHiP::g4::ScoringParallelWorld Class Reference

The parallel world holding the scoring planes. More...

#include <scoring_planes.hpp>

Inheritance diagram for SHiP::g4::ScoringParallelWorld:
Inheritance graph
[legend]
Collaboration diagram for SHiP::g4::ScoringParallelWorld:
Collaboration graph
[legend]

Public Member Functions

 ScoringParallelWorld (std::vector< ScoringPlaneConfig > planes)
 
void Construct () override
 
void ConstructSD () override
 
bool contains (G4LogicalVolume *lv) const
 Whether lv belongs to this world (a plane or the world volume), so that detector-geometry patterns (sensitive volumes, field regions) can skip it.
 

Detailed Description

The parallel world holding the scoring planes.

Registered with the detector construction when planes are configured; Geant4 calls Construct() once on the geometry thread and ConstructSD() on every thread that tracks. The run also needs G4ParallelWorldPhysics(kScoringWorldName) in its physics list, so that particles are transported through this world.

Constructor & Destructor Documentation

◆ ScoringParallelWorld()

SHiP::g4::ScoringParallelWorld::ScoringParallelWorld ( std::vector< ScoringPlaneConfig >  planes)
inlineexplicit

Member Function Documentation

◆ Construct()

void SHiP::g4::ScoringParallelWorld::Construct ( )
inlineoverride

◆ ConstructSD()

void SHiP::g4::ScoringParallelWorld::ConstructSD ( )
inlineoverride

◆ contains()

bool SHiP::g4::ScoringParallelWorld::contains ( G4LogicalVolume *  lv) const
inline

Whether lv belongs to this world (a plane or the world volume), so that detector-geometry patterns (sensitive volumes, field regions) can skip it.

Valid once Construct() has run.


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