Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | List of all members
Par01ParallelWorldForPion Class Reference

#include <Doxymodules_parameterisations.h>

Inheritance diagram for Par01ParallelWorldForPion:
G4VUserParallelWorld

Public Member Functions

 Par01ParallelWorldForPion (G4String worldName)
 
 ~Par01ParallelWorldForPion ()
 

Private Member Functions

virtual void Construct ()
 
virtual void ConstructSD ()
 

Detailed Description

Definition at line 23 of file Doxymodules_parameterisations.h.

Constructor & Destructor Documentation

◆ Par01ParallelWorldForPion()

Par01ParallelWorldForPion::Par01ParallelWorldForPion ( G4String  worldName)

Definition at line 45 of file Par01ParallelWorldForPion.cc.

◆ ~Par01ParallelWorldForPion()

Par01ParallelWorldForPion::~Par01ParallelWorldForPion ( )

Definition at line 51 of file Par01ParallelWorldForPion.cc.

52{;}

Member Function Documentation

◆ Construct()

void Par01ParallelWorldForPion::Construct ( )
privatevirtual

Definition at line 56 of file Par01ParallelWorldForPion.cc.

57{
58 // -- Get nist material manager
59 G4NistManager* nistManager = G4NistManager::Instance();
60
61 // Build materials
62 G4Material* air = nistManager->FindOrBuildMaterial("G4_AIR");
63
64 // -------------------------------
65 // Build parallel/ghost geometry:
66 // -------------------------------
67
68 // -- Obtain clone of mass geometry world from GetWorld() base class utility:
69 G4VPhysicalVolume* ghostWorld = GetWorld();
70 // -- Why needed ? No default ?
71 ghostWorld->GetLogicalVolume()->SetMaterial(air);
72 G4Region* parallelWorldRegion = new G4Region("ParallelWorldRegion");
73 parallelWorldRegion->AddRootLogicalVolume(ghostWorld->GetLogicalVolume());
74
75 // -- Create box for encompassing Elec.+Had. calorimeters together:
76 G4double detectSize = 125*cm;
77 G4Box *ghostBox
78 = new G4Box("GhostBox", detectSize+5*cm, detectSize+5*cm, 80*cm);
79 // -- Build the subsequent logical volume:
80 G4LogicalVolume* ghostLogical
81 = new G4LogicalVolume(ghostBox,
82 air, // -- no material : IMPOSSIBLE !!!
83 "GhostLogical",
84 0, 0, 0);
85 // -- And place this logical volume in the parallel geometry:
86 new G4PVPlacement(0,G4ThreeVector(0., 0., 175*cm),
87 "GhostPhysical",
88 ghostLogical,
89 ghostWorld,false,0);
90
91 // -----------------------
92 // Setup fast simulation:
93 // -----------------------
94
95 // -- Make Elec+Had logical volume becoming a region:
96 G4cout << "Declaring region..." << G4endl;
97 G4Region* ghostRegion = new G4Region("GhostCalorimeterRegion");
98 G4cout << "... region declared. Setting it the ghostLogical volume..." << G4endl;
99 ghostRegion->AddRootLogicalVolume(ghostLogical);
100 G4cout << "... succes.\n" << G4endl;
101
102}

◆ ConstructSD()

void Par01ParallelWorldForPion::ConstructSD ( )
privatevirtual

Definition at line 106 of file Par01ParallelWorldForPion.cc.

107{
108 G4RegionStore* regionStore = G4RegionStore::GetInstance();
109
110 G4Region* ghostRegion = regionStore->GetRegion("GhostCalorimeterRegion");
111 // -- Attach fast simulation model (create the G4FastSimulationManager if needed):
112 new Par01PionShowerModel("ghostPionShowerModel",ghostRegion);
113
114}

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

Applications | User Support | Publications | Collaboration