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

#include <Doxymodules_parameterisations.h>

Inheritance diagram for ExGflash3DetectorConstruction:
G4VUserDetectorConstruction

Public Member Functions

 ExGflash3DetectorConstruction ()
 
 ~ExGflash3DetectorConstruction () override
 
G4VPhysicalVolumeConstruct () override
 
void ConstructSDandField () override
 

Private Attributes

G4RegionfRegion {nullptr}
 

Static Private Attributes

static G4ThreadLocal GFlashShowerModelfFastShowerModel = nullptr
 
static G4ThreadLocal GFlashHomoShowerParameterisationfParameterisation = nullptr
 
static G4ThreadLocal GFlashParticleBoundsfParticleBounds = nullptr
 
static G4ThreadLocal GFlashHitMakerfHitMaker = nullptr
 

Detailed Description

Definition at line 139 of file Doxymodules_parameterisations.h.

Constructor & Destructor Documentation

◆ ExGflash3DetectorConstruction()

ExGflash3DetectorConstruction::ExGflash3DetectorConstruction ( )

Definition at line 63 of file ExGflash3DetectorConstruction.cc.

64{
65 G4cout << "ExGflash3DetectorConstruction::Detector constructor" << G4endl;
66}

◆ ~ExGflash3DetectorConstruction()

ExGflash3DetectorConstruction::~ExGflash3DetectorConstruction ( )
override

Definition at line 70 of file ExGflash3DetectorConstruction.cc.

71{
72 delete fFastShowerModel;
73 delete fParameterisation;
74 delete fParticleBounds;
75 delete fHitMaker;
76}
static G4ThreadLocal GFlashParticleBounds * fParticleBounds
static G4ThreadLocal GFlashHomoShowerParameterisation * fParameterisation
static G4ThreadLocal GFlashHitMaker * fHitMaker
static G4ThreadLocal GFlashShowerModel * fFastShowerModel

Member Function Documentation

◆ Construct()

G4VPhysicalVolume * ExGflash3DetectorConstruction::Construct ( )
override

Definition at line 80 of file ExGflash3DetectorConstruction.cc.

81{
82 //--------- Definitions of Solids, Logical Volumes, Physical Volumes ---------
83 G4cout << "Defining the materials" << G4endl;
84 // Get nist material manager
85 G4NistManager* nistManager = G4NistManager::Instance();
86 // Build materials
87 G4Material* air = nistManager->FindOrBuildMaterial("G4_AIR");
88 G4Material* pbWO4 = nistManager->FindOrBuildMaterial("G4_PbWO4");
89
90 /*******************************
91 * The Experimental Hall *
92 *******************************/
93 G4double experimentalHall_x = 1000. * cm;
94 G4double experimentalHall_y = 1000. * cm;
95 G4double experimentalHall_z = 1000. * cm;
96
97 G4VSolid* experimentalHall_box = new G4Box("expHall_box", // World Volume
98 experimentalHall_x, // x size
99 experimentalHall_y, // y size
100 experimentalHall_z); // z size
101
102 auto experimentalHallLog = new G4LogicalVolume(experimentalHall_box, air, "expHallLog",
103 nullptr, // opt: fieldManager
104 nullptr, // opt: SensitiveDetector
105 nullptr); // opt: UserLimits
106 G4VPhysicalVolume* experimentalHall_phys =
107 new G4PVPlacement(nullptr,
108 G4ThreeVector(), // at (0,0,0)
109 "expHall", experimentalHallLog, nullptr, false, 0);
110
111 //------------------------------
112 // Calorimeter segments
113 //------------------------------
114 // Simplified `CMS-like` PbWO4 crystal calorimeter
115
116 G4int nbOfCrystals = 10; // this are the crystals PER ROW in this example
117 // cube of 10 x 10 crystals
118 // don't change it @the moment, since
119 // the readout in event action assumes this
120 // dimensions and is not automatically adapted
121 // in this version of the example :-(
122 // Simplified `CMS-like` PbWO4 crystal calorimeter
123 G4double calo_xside = 31 * cm;
124 G4double calo_yside = 31 * cm;
125 G4double calo_zside = 24 * cm;
126
127 G4double crystalWidth = 3 * cm;
128 G4double crystalLength = 24 * cm;
129
130 calo_xside = (crystalWidth * nbOfCrystals) + 1 * cm;
131 calo_yside = (crystalWidth * nbOfCrystals) + 1 * cm;
132 calo_zside = crystalLength;
133
134 auto calo_box = new G4Box("CMS calorimeter", // its name
135 calo_xside / 2., // size
136 calo_yside / 2., calo_zside / 2.);
137 auto caloLog = new G4LogicalVolume(calo_box, // its solid
138 pbWO4, // its material
139 "calo log", // its name
140 nullptr, // opt: fieldManager
141 nullptr, // opt: SensitiveDetector
142 nullptr); // opt: UserLimit
143
144 G4double xpos = 0.0;
145 G4double ypos = 0.0;
146 G4double zpos = 100.0 * cm;
147 new G4PVPlacement(nullptr, G4ThreeVector(xpos, ypos, zpos), caloLog, "calorimeter",
148 experimentalHallLog, false, 1);
149
150 // Individual crystals are created as part of the readout geometry in the parallel world
151
152 experimentalHallLog->SetVisAttributes(G4VisAttributes::GetInvisible());
153 auto caloVisAtt = new G4VisAttributes(G4Colour(1.0, 1.0, 1.0));
154 caloLog->SetVisAttributes(caloVisAtt);
155
156 // define the fParameterisation region
157 fRegion = new G4Region("crystals");
158 caloLog->SetRegion(fRegion);
159 fRegion->AddRootLogicalVolume(caloLog);
160
161 return experimentalHall_phys;
162}

◆ ConstructSDandField()

void ExGflash3DetectorConstruction::ConstructSDandField ( )
override

Definition at line 166 of file ExGflash3DetectorConstruction.cc.

167{
168 // SD moved to parallel world
169
170 // -- fast simulation models:
171 // **********************************************
172 // * Initializing shower modell
173 // ***********************************************
174 G4cout << "Creating shower parameterization models" << G4endl;
175 fFastShowerModel = new GFlashShowerModel("fFastShowerModel", fRegion);
176 fParameterisation = new GFlashHomoShowerParameterisation(fRegion->GetMaterialIterator()[0]);
177 fFastShowerModel->SetParameterisation(*fParameterisation);
178 // Energy Cuts to kill particles:
180 fFastShowerModel->SetParticleBounds(*fParticleBounds);
181 // Makes the EnergieSpots
183 // Important: use SD defined in different geometry
184 fHitMaker->SetNameOfWorldWithSD("parallelWorld");
185 fFastShowerModel->SetHitMaker(*fHitMaker);
186 G4cout << "end shower parameterization." << G4endl;
187 // **********************************************
188}

Member Data Documentation

◆ fRegion

G4Region* ExGflash3DetectorConstruction::fRegion {nullptr}
private

Definition at line 55 of file ExGflash3DetectorConstruction.hh.

55{nullptr};

◆ fFastShowerModel

G4ThreadLocal GFlashShowerModel* ExGflash3DetectorConstruction::fFastShowerModel = nullptr
inlinestaticprivate

Definition at line 57 of file ExGflash3DetectorConstruction.hh.

◆ fParameterisation

G4ThreadLocal GFlashHomoShowerParameterisation* ExGflash3DetectorConstruction::fParameterisation = nullptr
inlinestaticprivate

Definition at line 58 of file ExGflash3DetectorConstruction.hh.

◆ fParticleBounds

G4ThreadLocal GFlashParticleBounds* ExGflash3DetectorConstruction::fParticleBounds = nullptr
inlinestaticprivate

Definition at line 59 of file ExGflash3DetectorConstruction.hh.

◆ fHitMaker

G4ThreadLocal GFlashHitMaker* ExGflash3DetectorConstruction::fHitMaker = nullptr
inlinestaticprivate

Definition at line 60 of file ExGflash3DetectorConstruction.hh.


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

Applications | User Support | Publications | Collaboration