LDMX Software
Public Member Functions | Private Attributes | List of all members
simcore::ParallelWorld Class Reference

Public Member Functions

 ParallelWorld (G4GDMLParser *parser, G4String worldName)
 Constructor.
 
 ~ParallelWorld ()
 Destructor.
 
void Construct ()
 
void ConstructSD ()
 

Private Attributes

G4GDMLParser * parser_ {nullptr}
 GDML parser.
 
geo::AuxInfoReaderauxInfoReader_ {nullptr}
 The auxiliary GDML info reader.
 

Detailed Description

Definition at line 27 of file ParallelWorld.h.

Constructor & Destructor Documentation

◆ ParallelWorld()

simcore::ParallelWorld::ParallelWorld ( G4GDMLParser *  parser,
G4String  worldName 
)

Constructor.

Definition at line 7 of file ParallelWorld.cxx.

8 : G4VUserParallelWorld(worldName),
9 parser_(parser),
11 new geo::AuxInfoReader(parser, framework::config::Parameters())) {}
Class encapsulating parameters for configuring a processor.
Definition Parameters.h:27
G4GDMLParser * parser_
GDML parser.
geo::AuxInfoReader * auxInfoReader_
The auxiliary GDML info reader.

◆ ~ParallelWorld()

simcore::ParallelWorld::~ParallelWorld ( )

Destructor.

Definition at line 13 of file ParallelWorld.cxx.

13{ delete auxInfoReader_; }

References auxInfoReader_.

Member Function Documentation

◆ Construct()

void simcore::ParallelWorld::Construct ( )

Definition at line 15 of file ParallelWorld.cxx.

15{}

◆ ConstructSD()

void simcore::ParallelWorld::ConstructSD ( )

Definition at line 17 of file ParallelWorld.cxx.

17 {
18 G4VPhysicalVolume *worldPhysical = GetWorld();
19 G4LogicalVolume *worldLogical = worldPhysical->GetLogicalVolume();
20
21 G4LogicalVolume *parallelWorldLogical =
22 parser_->GetWorldVolume()->GetLogicalVolume();
24
25 for (int index = 0; index < parallelWorldLogical->GetNoDaughters(); index++) {
26 G4VPhysicalVolume *physicalVol = parallelWorldLogical->GetDaughter(index);
27 ldmx_log(debug) << "Adding : " << physicalVol->GetName()
28 << " to parallel world.";
29 worldLogical->AddDaughter(physicalVol);
30 }
31
33}
void assignAuxInfoToVolumes()
Assign auxiliary info to volumes such as sensitive detectors.
void readGlobalAuxInfo()
Read the global auxiliary information from the auxinfo block.

Member Data Documentation

◆ auxInfoReader_

geo::AuxInfoReader* simcore::ParallelWorld::auxInfoReader_ {nullptr}
private

The auxiliary GDML info reader.

Definition at line 46 of file ParallelWorld.h.

46{nullptr};

Referenced by ~ParallelWorld().

◆ parser_

G4GDMLParser* simcore::ParallelWorld::parser_ {nullptr}
private

GDML parser.

Definition at line 43 of file ParallelWorld.h.

43{nullptr};

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