78 fAir = nistManager->FindOrBuildMaterial(
"G4_AIR");
79 fLead = nistManager->FindOrBuildMaterial(
"G4_Pb");
80 fSilicon = nistManager->FindOrBuildMaterial(
"G4_Si");
82 G4double
a, z, density;
87 density= 1.782e-03*g/cm3;
91 G4Element* elH = nistManager->FindOrBuildElement(
"H");
92 G4Element* elC = nistManager->FindOrBuildElement(
"C");
105 static G4bool fieldIsInitialized =
false;
106 if ( !fieldIsInitialized ) {
109 = G4TransportationManager::GetTransportationManager()->
111 fieldMgr-> SetDetectorField(myField);
112 fieldMgr-> CreateChordFinder(myField);
113 fieldIsInitialized =
true;
126 G4Box* experimentalHall_box =
132 "expHall_P", 0,
false,0);
135 experimentalHallVisAtt-> SetForceWireframe(
true);
136 experimentalHall_log-> SetVisAttributes(experimentalHallVisAtt);
145 new G4PVPlacement(0,G4ThreeVector(), tracker_log,
"tracker_phys",
146 experimentalHall_log,
false, 0);
149 tracker_logVisAtt->SetForceWireframe(
true);
150 tracker_log->SetVisAttributes(tracker_logVisAtt);
168 trackerLayer_logVisAtt->SetForceWireframe(
true);
169 trackerLayer_log->SetVisAttributes(trackerLayer_logVisAtt);
178 new G4PVPlacement(0,G4ThreeVector(), calorimeter_log,
"caloM_P",
179 experimentalHall_log,
false,0);
182 calorimeter_logVisATT->SetForceWireframe(
true);
183 calorimeter_log->SetVisAttributes(calorimeter_logVisATT);
201 caloLayer_logVisAtt->SetForceWireframe(
true);
202 caloLayer_log->SetVisAttributes(caloLayer_logVisAtt);
212 G4double phi, x, y, z;
221 muoncounter_log,
"muoncounter_P",
222 experimentalHall_log,
false,i);
226 muoncounter_logVisAtt->SetForceWireframe(
true);
227 muoncounter_log->SetVisAttributes(muoncounter_logVisAtt);
235 G4String trackerSDname =
"/mydet/tracker";
237 SDman->AddNewDetector(trackerSD);
238 trackerLayer_log->SetSensitiveDetector(trackerSD);
240 G4String calorimeterSDname =
"/mydet/calorimeter";
242 G4String ROgeometryName =
"CalorimeterROGeom";
244 calRO->BuildROGeometry();
245 calorimeterSD->SetROgeometry(calRO);
246 SDman->AddNewDetector(calorimeterSD);
247 calorimeter_log->SetSensitiveDetector(calorimeterSD);
249 G4String muonSDname =
"/mydet/muon";
251 SDman->AddNewDetector(muonSD);
252 muoncounter_log->SetSensitiveDetector(muonSD);
258 return experimentalHall_phys;