LDMX Software
simcore::ParallelWorld Class Reference

Public Member Functions

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

Private Member Functions

 enableLogging ("ParallelWorld")
 Enable logging.
 

Private Attributes

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

Detailed Description

Definition at line 28 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:29
G4GDMLParser * parser_
GDML parser.
geo::AuxInfoReader * aux_info_reader_
The auxiliary GDML info reader.

◆ ~ParallelWorld()

simcore::ParallelWorld::~ParallelWorld ( )

Destructor.

Definition at line 13 of file ParallelWorld.cxx.

13{ delete aux_info_reader_; }

References aux_info_reader_.

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 *world_physical = GetWorld();
19 G4LogicalVolume *world_logical = world_physical->GetLogicalVolume();
20
21 G4LogicalVolume *parallel_world_logical =
22 parser_->GetWorldVolume()->GetLogicalVolume();
24
25 for (int index = 0; index < parallel_world_logical->GetNoDaughters();
26 index++) {
27 G4VPhysicalVolume *physical_vol =
28 parallel_world_logical->GetDaughter(index);
29 ldmx_log(debug) << "Adding : " << physical_vol->GetName()
30 << " to parallel world.";
31 world_logical->AddDaughter(physical_vol);
32 }
33
35}
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

◆ aux_info_reader_

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

The auxiliary GDML info reader.

Definition at line 47 of file ParallelWorld.h.

47{nullptr};

Referenced by ~ParallelWorld().

◆ parser_

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

GDML parser.

Definition at line 44 of file ParallelWorld.h.

44{nullptr};

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