Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G02DetectorConstruction.cc
이 파일의 문서화 페이지로 가기
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //g
28 //
29 //
30 // $Id: G02DetectorConstruction.cc 104689 2017-06-12 12:17:25Z gcosmo $
31 //
32 // Class G02DetectorConstruction implementation
33 //
34 // ----------------------------------------------------------------------------
35 
37 
38 // Geant4 includes
39 //
40 #include "globals.hh"
41 #include "G4GeometryManager.hh"
42 #include "G4VisAttributes.hh"
43 
44 // Materials
45 //
46 #include "G4Material.hh"
47 
48 // Geometry includes
49 //
50 #include "G4LogicalVolume.hh"
51 #include "G4VPhysicalVolume.hh"
52 #include "G4PVParameterised.hh"
53 #include "G4PVPlacement.hh"
54 #include "G4Box.hh"
55 #include "G4Tubs.hh"
56 
57 // Reflected solids
58 //
59 #include "G4ReflectedSolid.hh"
60 #include "G4DisplacedSolid.hh"
61 #include "G4ReflectionFactory.hh"
62 #include "G4RotationMatrix.hh"
63 #include "G4AffineTransform.hh"
64 #include "G4Transform3D.hh"
65 
66 // Assembly volumes
67 //
68 #include "G4AssemblyVolume.hh"
69 
70 // Volume parameterisations
71 //
73 
74 // Messenger
75 //
76 #include "G02DetectorMessenger.hh"
77 
78 // GDML parser include
79 //
80 #include "G4GDMLParser.hh"
81 
82 #include "G4PhysicalConstants.hh"
83 #include "G4SystemOfUnits.hh"
84 
85 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
86 //
87 // Constructor
88 //
91  fAir(0), fAluminum(0), fPb(0), fXenon(0),
92  fDetectorMessenger(0)
93 {
94  fExpHall_x=5.*m;
95 
96  fReadFile ="test.gdml";
97  fWriteFile="wtest.gdml";
98  fStepFile ="mbb";
100 
102 }
103 
104 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
105 //
106 // Destructor
107 //
109 {
111 }
112 
113 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
114 //
115 // Constructs geometries and materials
116 //
118 {
119  // Writing or Reading of Geometry using G4GDML
120 
121  G4VPhysicalVolume* fWorldPhysVol;
122 
123  if(fWritingChoice==0)
124  {
125  // **** LOOK HERE*** FOR READING GDML FILES
126  //
127 
128  // ACTIVATING OVERLAP CHECK when read volumes are placed.
129  // Can take long time in case of complex geometries
130  //
131  // fParser.SetOverlapCheck(true);
132 
134 
135  // READING GDML FILES OPTION: 2nd Boolean argument "Validate".
136  // Flag to "false" disables check with the Schema when reading GDML file.
137  // See the GDML Documentation for more information.
138  //
139  // fParser.Read(fReadFile,false);
140 
141  // Prints the material information
142  //
144 
145  // Giving World Physical Volume from GDML Parser
146  //
147  fWorldPhysVol = fParser.GetWorldVolume();
148  }
149  else if(fWritingChoice==1)
150  {
151  // **** LOOK HERE*** FOR WRITING GDML FILES
152  // Detector Construction and WRITING to GDML
153  //
154  ListOfMaterials();
155  fWorldPhysVol = ConstructDetector();
156 
157  // OPTION: TO ADD MODULE AT DEPTH LEVEL ...
158  //
159  // Can be a integer or a pointer to the top Physical Volume:
160  //
161  // G4int depth=1;
162  // fParser.AddModule(depth);
163 
164  // OPTION: SETTING ADDITION OF POINTER TO NAME TO FALSE
165  //
166  // By default, written names in GDML consist of the given name with
167  // appended the pointer reference to it, in order to make it unique.
168  // Naming policy can be changed by using the following method, or
169  // calling Write with additional Boolean argument to "false".
170  // NOTE: you have to be sure not to have duplication of names in your
171  // Geometry Setup.
172  //
173  // fParser.SetAddPointerToName(false);
174  //
175  // or
176  //
177  // fParser.Write(fWriteFile, fWorldPhysVol, false);
178 
179  // OPTION: SET MAXIMUM LEVEL TO EXPORT (REDUCED TREE)...
180  //
181  // Can be a integer greater than zero:
182  //
183  // G4int maxlevel=3;
184  // fParser.SetMaxExportLevel(maxlevel);
185 
186  // Writing Geometry to GDML File
187  //
188  fParser.Write(fWriteFile, fWorldPhysVol);
189 
190  // OPTION: SPECIFYING THE SCHEMA LOCATION
191  //
192  // When writing GDML file the default the Schema Location from the
193  // GDML web site will be used:
194  // "http://cern.ch/service-spi/app/releases/GDML/GDML_2_10_0/src/GDMLSchema/gdml.xsd"
195  //
196  // NOTE: GDML Schema is distributed in Geant4 in the directory:
197  // $G4INSTALL/source/persistency/gdml/schema
198  //
199  // You can change the Schema path by adding a parameter to the Write
200  // command, as follows:
201  //
202  // fParser.Write(fWriteFile, fWorldPhysVol, "your-path-to-schema/gdml.xsd");
203  }
204  else // Demonstration how to Read STEP files using GDML
205  {
206  // Some printout...
207  //
208  ListOfMaterials();
209 
210  // Arbitrary values that should enclose any reasonable geometry
211  //
212  const G4double expHall_y = fExpHall_x/50.;
213  const G4double expHall_z = fExpHall_x/50.;
214 
215  // Create the hall
216  //
217  G4Box * experimentalHallBox
218  = new G4Box("ExpHallBox",fExpHall_x/50.,expHall_y,expHall_z);
219  G4LogicalVolume * experimentalHallLV
220  = new G4LogicalVolume(experimentalHallBox, fAir,"ExpHallLV");
221  fWorldPhysVol
222  = new G4PVPlacement(0, G4ThreeVector(0.0,0.0,0.0),
223  experimentalHallLV, "ExpHallPhys", 0, false, 0);
224 
225  // G02DetectorConstruction via reading STEP File
226  //
227  G4LogicalVolume* LogicalVolST
229 
230  // Placement inside of the hall
231  //
232  new G4PVPlacement(0, G4ThreeVector(10.0,0.0,0.0), LogicalVolST,
233  "StepPhys", experimentalHallLV, false, 0);
234  }
235 
236  // Set Visualization attributes to world
237  //
238  G4VisAttributes* BoxVisAtt= new G4VisAttributes(G4Colour(1.0,1.0,1.0));
239  fWorldPhysVol->GetLogicalVolume()->SetVisAttributes(BoxVisAtt);
240 
241  return fWorldPhysVol;
242 }
243 
244 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
245 //
246 // Utility to build and list necessary materials
247 //
249 {
250  G4double a; // atomic mass
251  G4double z; // atomic number
252  G4double density,temperature,pressure;
253  G4double fractionmass;
254  G4String name, symbol;
255  G4int ncomponents;
256 
257  // Elements needed for the materials
258 
259  a = 14.01*g/mole;
260  G4Element* elN = new G4Element(name="Nitrogen", symbol="N", z=7., a);
261 
262  a = 16.00*g/mole;
263  G4Element* elO = new G4Element(name="Oxygen", symbol="O", z=8., a);
264 
265  a = 26.98*g/mole;
266  G4Element* elAl = new G4Element(name="Aluminum", symbol="Al", z=13., a);
267 
268  // Print the Element information
269  //
271 
272  // Air
273  //
274  density = 1.29*mg/cm3;
275  fAir = new G4Material(name="Air", density, ncomponents=2);
276  fAir->AddElement(elN, fractionmass=0.7);
277  fAir->AddElement(elO, fractionmass=0.3);
278 
279  // Aluminum
280  //
281  density = 2.70*g/cm3;
282  fAluminum = new G4Material(name="Aluminum", density, ncomponents=1);
283  fAluminum->AddElement(elAl, fractionmass=1.0);
284 
285  // Lead
286  //
287  fPb = new G4Material("Lead", z=82., a= 207.19*g/mole, density= 11.35*g/cm3);
288 
289  // Xenon gas
290  //
291  fXenon = new G4Material("XenonGas", z=54., a=131.29*g/mole,
292  density= 5.458*mg/cm3, kStateGas,
293  temperature= 293.15*kelvin, pressure= 1*atmosphere);
294 
295  // Prints the material information
296  //
298 }
299 
300 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
301 //
302 // Detector Construction
303 //
304 // Detector consist from DetectorBox, Conrol Room and 4 SubDetectors
305 // SubDetectors1 and 2 show how to use Reflection Factory and Assembly
306 // SubDetectors 3 and 4 show how to use Parameterisation
307 //
309 {
310  // Arbitary values that should enclose any reasonable geometry
311  //
312  const G4double expHall_y = fExpHall_x;
313  const G4double expHall_z = fExpHall_x;
314 
315  // Create the hall
316  //
317  G4Box * experimentalHallBox =
318  new G4Box("ExpHallBox", fExpHall_x, expHall_y, expHall_z);
319  G4LogicalVolume * experimentalHallLV =
320  new G4LogicalVolume(experimentalHallBox, fAir, "ExpHallLV");
321  G4PVPlacement * experimentalHallPhys =
322  new G4PVPlacement(0, G4ThreeVector(0.0,0.0,0.0), experimentalHallLV,
323  "ExpHallPhys", 0, false, 0);
324 
325  // G02DetectorConstruction
326 
327  const G4double det_x = fExpHall_x*0.8;
328  const G4double det_y = fExpHall_x*0.7;
329  const G4double det_z = det_y;
330 
331  // Create the detector box
332  //
333  G4Box * detectorBox =
334  new G4Box("detectorBox", det_x, det_y, det_z);
335  G4LogicalVolume * detectorLV =
336  new G4LogicalVolume(detectorBox, fAir, "detLV");
337  // G4PVPlacement * detectorPhys =
338  new G4PVPlacement(0, G4ThreeVector(0.0,0.0,0.0), detectorLV,
339  "detPhys", experimentalHallLV, false, 0);
340 
341  // Create the Control room box
342  //
343  const G4double room_x = fExpHall_x/20.;
344  const G4double room_y = room_x;
345  const G4double room_z = room_x;
346 
347  G4Box * roomBox =
348  new G4Box("roomBox", room_x, room_y, room_z);
349  G4LogicalVolume * roomLV =
350  new G4LogicalVolume(roomBox, fAir, "roomLV");
351  // G4PVPlacement * roomPhys =
352  new G4PVPlacement(0, G4ThreeVector(fExpHall_x-room_x-10.,0.0,0.0), roomLV,
353  "roomPhys", experimentalHallLV, false, 0);
354 
355  // SubDetector1
356  //
357  const G4double bigL=fExpHall_x/5.+50.;
358  G4LogicalVolume* subDetectorLV1 = ConstructSubDetector1();
359  // G4PVPlacement * detPhys1 =
360  new G4PVPlacement(0, G4ThreeVector(bigL,0.0,0.0), subDetectorLV1,
361  "PhysSubDetector1", detectorLV, false, 0);
362 
363  //
364  // LOOK HERE FOR REFLECTIONS
365  //
366 
367  // SubDetector2
368  //
369  G4Translate3D translation(-bigL, 0., 0.);
370  G4RotationMatrix* rotD3 = new G4RotationMatrix();
371  G4Transform3D rotation = G4Rotate3D(*rotD3);
372  G4ReflectX3D reflection;
373  G4Transform3D transform = translation*rotation*reflection;
374 
375  // Place the reflected part using G4ReflectionFactory
376  //
377  G4ReflectionFactory::Instance()->Place(transform, "reflSubDetector",
378  subDetectorLV1, detectorLV, false, 0);
379 
380  // SubDetector3
381  //
382  G4LogicalVolume* subDetectorLV3 = ConstructSubDetector2();
383  // G4PVPlacement * detPhys3 =
384  new G4PVPlacement(0, G4ThreeVector(0.0,bigL,0.0), subDetectorLV3,
385  "PhysSubDetectorFirst3", detectorLV, false, 0);
386 
387  // SubDetector4, placement of parameterised chambers
388  //
389  G4LogicalVolume* subDetectorLV4 = ConstructSubDetector2();
391  // G4PVPlacement * detChamb =
392  new G4PVPlacement(0, G4ThreeVector(0,0.0,0.0), subChamberLV,
393  "AssemblyPhys", subDetectorLV4, false, 0);
394  // G4PVPlacement * detPhys4 =
395  new G4PVPlacement(0, G4ThreeVector(0.0,-bigL,0.0), subDetectorLV4,
396  "PhysSubDetectorSecond3", detectorLV, false, 0);
397 
398  return experimentalHallPhys;
399 }
400 
401 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
402 //
403 // SubDetector1
404 //
406 {
407  const G4double sub_x = fExpHall_x/5.;
408  const G4double sub_y = sub_x;
409 
410  // Create the hall
411  //
412  G4Tubs * subTub =
413  new G4Tubs("subTub", 0., sub_x, sub_y, -90.*deg, 180*deg);
414  G4LogicalVolume * subTubLV =
415  new G4LogicalVolume(subTub, fPb, "tubLV");
416  G4LogicalVolume *AssemblyLV = ConstructAssembly();
417  // G4PVPlacement * detAss =
418  new G4PVPlacement(0, G4ThreeVector(sub_x/3,0.0,0.0), AssemblyLV,
419  "AssemblyPhys", subTubLV, false, 0);
420  return subTubLV;
421 }
422 
423 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
424 //
425 // SubDetector2
426 //
428 {
429  const G4double sub_x = fExpHall_x/10.;
430  const G4double sub_y = sub_x*2.;
431  const G4double sub_z = sub_x;
432 
433  // Create the hall
434  //
435  G4Box * detHallBox =
436  new G4Box("detHallBox", sub_x, sub_y, sub_z);
437  G4LogicalVolume * detHallLV =
438  new G4LogicalVolume(detHallBox, fAluminum, "detHallLV");
439 
440  return detHallLV;
441 }
442 
443 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
444 //
445 // Assembly
446 //
448 {
449  const G4double big_x = fExpHall_x/17;
450  const G4double big_y = big_x;
451  const G4double big_z = big_x;
452 
453  // Create the Box
454  //
455  G4Box * OuterBox =
456  new G4Box("OuterBox", big_x, big_y, big_z);
457  G4LogicalVolume * OuterBoxLV =
458  new G4LogicalVolume(OuterBox, fAir, "OuterBoxLV");
459  // G4PVPlacement * OuterBoxPhys =
460  new G4PVPlacement(0, G4ThreeVector(0.0,0.0,0.0), OuterBoxLV,
461  "OuterBoxPhys", 0, false, 0);
462 
463  // The aluminum object's logical volume
464  //
465  const G4double bigL=big_x/2.5;
466  const G4double medL=big_x/8;
467  const G4double smalL=big_x/12;
468 
469  G4Box * BigBox =
470  new G4Box("BBox", bigL, bigL, bigL);
471  G4LogicalVolume * BigBoxLV =
472  new G4LogicalVolume(BigBox, fAluminum, "AlBigBoxLV");
473  G4Box * MedBox =
474  new G4Box("MBox", medL, medL, medL);
475  G4LogicalVolume * MedBoxLV1 =
476  new G4LogicalVolume(MedBox, fAluminum, "AlMedBoxLV1");
477  G4Box * SmallBox =
478  new G4Box("SBox", smalL, smalL, smalL);
479  G4LogicalVolume * SmallBoxLV =
480  new G4LogicalVolume(SmallBox, fAluminum, "AlSmaBoxLV");
481 
482  const G4double bigPlace=bigL+10.;
483  const G4double medPlace=medL+10.;
484  // G4PVPlacement * BigBoxPhys =
485  new G4PVPlacement(0, G4ThreeVector(bigPlace,0.0,0.0), BigBoxLV,
486  "AlPhysBig", OuterBoxLV, false, 0);
487 
488  // Construction of Tub
489  //
490  G4Tubs * BigTube =
491  new G4Tubs("BTube",0,smalL,smalL,-pi/2.,pi);
492 
493  // Construction of Reflection of Tub
494  //
495  G4ReflectX3D Xreflection;
496  G4Translate3D translation(-bigPlace, 0., 0.);
497  G4Transform3D transform =Xreflection;
498 
499  G4ReflectedSolid * ReflBig =
500  new G4ReflectedSolid("Refll_Big", BigTube, transform);
501  G4LogicalVolume * ReflBigLV =
502  new G4LogicalVolume(ReflBig, fXenon, "ReflBigAl");
503  new G4PVPlacement(0, G4ThreeVector(0.,0.0,0.0), ReflBigLV,
504  "AlPhysBigTube", SmallBoxLV, false, 0);
505  //
506  // LOOK HERE FOR ASSEMBLY
507  //
508 
509  // create Assembly of Boxes and Tubs
510  //
511  G4AssemblyVolume* assembly = new G4AssemblyVolume();
512  G4RotationMatrix* rot = new G4RotationMatrix();
513  G4ThreeVector posBig(-bigPlace, 0, 0);
514  G4ThreeVector posBig0(bigPlace/4, 0, 0);
515  G4ThreeVector posMed(-medPlace, 0, 0);
516  G4ThreeVector posMed0(medPlace, 0, 0);
517  G4ThreeVector position(0., 0., 0.);
518 
519  // Add to Assembly the MediumBox1
520  //
521  assembly->AddPlacedVolume(MedBoxLV1, posMed0, rot);
522 
523  // Add to Assembly the Small Box
524  //
525  assembly->AddPlacedVolume(SmallBoxLV, posMed, rot);
526 
527  // Place the Assembly
528  //
529  assembly->MakeImprint(BigBoxLV, posBig0, rot, 0);
530 
531  //
532  // LOOK HERE FOR ASSEMBLY with REFLECTION
533  //
534 
535  G4Translate3D translation1(-bigPlace, 0., 0.);
536  G4RotationMatrix* rotD3 = new G4RotationMatrix();
537  G4Transform3D rotation = G4Rotate3D(*rotD3);
538  G4ReflectX3D reflection;
539  G4Transform3D transform1 = translation1*rotation*reflection;
540 
541  assembly->MakeImprint(OuterBoxLV, transform1, 0, 0);
542 
543  return OuterBoxLV;
544 }
545 
546 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
547 //
548 // Parameterised Chamber
549 //
551 {
552  const G4double chamber_x = fExpHall_x/12.;
553  const G4double chamber_y = chamber_x;
554  const G4double chamber_z = chamber_x;
555 
556  // Create the hall
557  //
558  G4Box * paramChamberBox =
559  new G4Box("ChamberBox", chamber_x, chamber_y, chamber_z);
560  G4LogicalVolume * paramChamberLV =
561  new G4LogicalVolume(paramChamberBox, fAir, "ChamberLV");
562 
563  // Parametrisation Chamber (taken from N02 novice example)
564  //
565  G4int NbOfChambers = 5;
566  G4double ChamberWidth = 2*cm;
567  G4double ChamberSpacing = 8*cm;
568  G4double fTrackerLength = (NbOfChambers+1)*ChamberSpacing; // Full length
569  G4double trackerSize = 0.5*fTrackerLength;
570 
571  // An example of parameterised volume
572  // dummy values for G4Box -- modified by parameterised volume
573  //
574  G4Box *solidChamber =
575  new G4Box("chamber", 10*cm, 10*cm, 1*cm);
576  G4LogicalVolume* logicChamber =
577  new G4LogicalVolume(solidChamber, fAluminum, "Chamber", 0, 0, 0);
578 
579  G4double firstPosition = -trackerSize + 0.5*ChamberWidth;
580  G4double firstLength = fTrackerLength/10;
581  G4double lastLength = fTrackerLength;
582 
583  G4VPVParameterisation* chamberParam =
584  new G02ChamberParameterisation( NbOfChambers, // NoChambers
585  firstPosition, // Z of center of first
586  ChamberSpacing, // Z spacing of centers
587  ChamberWidth, // Width Chamber
588  firstLength, // lengthInitial
589  lastLength); // lengthFinal
590  // G4VPhysicalVolume* physiChamber =
591  new G4PVParameterised( "Chamber", // their name
592  logicChamber, // their logical volume
593  paramChamberLV, // mother logical volume
594  kZAxis, // Are placed along this axis
595  NbOfChambers, // Number of chambers
596  chamberParam); // The parametrisation
597  return paramChamberLV;
598 }
599 
600 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
601 //
602 // SetReadFile
603 //
605 {
606  fReadFile=File;
607  fWritingChoice=0;
608 }
609 
610 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
611 //
612 // SetWriteFile
613 //
615 {
616  fWriteFile=File;
617  fWritingChoice=1;
618 }
619 
620 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
621 //
622 // SetStepFile
623 //
625 {
626  fStepFile=File;
627  fWritingChoice=3;
628 }
static constexpr double kelvin
Definition: G4SIunits.hh:281
Definition of the G02ChamberParameterisation class.
G4VPhysicalVolume * GetWorldVolume(const G4String &setupName="Default") const
const XML_Char * name
Definition: expat.h:151
static constexpr double atmosphere
Definition: G4SIunits.hh:237
void AddPlacedVolume(G4LogicalVolume *pPlacedVolume, G4ThreeVector &translation, G4RotationMatrix *rotation)
CLHEP::Hep3Vector G4ThreeVector
std::vector< ExP01TrackerHit * > a
Definition: ExP01Classes.hh:33
G4LogicalVolume * GetLogicalVolume() const
G4LogicalVolume * ConstructAssembly()
static G4MaterialTable * GetMaterialTable()
Definition: G4Material.cc:593
G4LogicalVolume * ConstructSubDetector2()
Definition: G4Tubs.hh:85
G02DetectorMessenger * fDetectorMessenger
Definition of the G02DetectorMessenger class.
CLHEP::HepRotation G4RotationMatrix
#define G4endl
Definition: G4ios.hh:61
Double_t z
G4LogicalVolume * ConstructParametrisationChamber()
Detector messenger class used in GDML read/write example.
void Read(const G4String &filename, G4bool Validate=true)
static constexpr double g
Definition: G4SIunits.hh:183
static constexpr double m
Definition: G4SIunits.hh:129
void SetReadFile(const G4String &File)
double G4double
Definition: G4Types.hh:76
void MakeImprint(G4LogicalVolume *pMotherLV, G4ThreeVector &translationInMother, G4RotationMatrix *pRotationInMother, G4int copyNumBase=0, G4bool surfCheck=false)
#define position
Definition: xmlparse.cc:622
static constexpr double deg
Definition: G4SIunits.hh:152
static constexpr double mg
Definition: G4SIunits.hh:184
Definition: G4Box.hh:64
void SetVisAttributes(const G4VisAttributes *pVA)
void SetWriteFile(const G4String &File)
Chamber parametrisation used in the GDML read/write example.
Definition of the G02DetectorConstruction class.
int G4int
Definition: G4Types.hh:78
G4LogicalVolume * ConstructSubDetector1()
void AddElement(G4Element *element, G4int nAtoms)
Definition: G4Material.cc:368
void SetStepFile(const G4String &File)
static constexpr double cm
Definition: G4SIunits.hh:119
G4GLOB_DLL std::ostream G4cout
void Write(const G4String &filename, const G4VPhysicalVolume *pvol=0, G4bool storeReferences=true, const G4String &SchemaLocation=G4GDML_DEFAULT_SCHEMALOCATION)
static constexpr double pi
Definition: G4SIunits.hh:75
G4VPhysicalVolume * ConstructDetector()
static constexpr double mole
Definition: G4SIunits.hh:286
HepGeom::Rotate3D G4Rotate3D
G4LogicalVolume * ParseST(const G4String &name, G4Material *medium, G4Material *solid)
static constexpr double cm3
Definition: G4SIunits.hh:121
G4PhysicalVolumesPair Place(const G4Transform3D &transform3D, const G4String &name, G4LogicalVolume *LV, G4LogicalVolume *motherLV, G4bool isMany, G4int copyNo, G4bool surfCheck=false)
virtual G4VPhysicalVolume * Construct()
static G4ElementTable * GetElementTable()
Definition: G4Element.cc:398
static G4ReflectionFactory * Instance()