Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DetectorConstruction.hh
Go to the documentation of this file.
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 //
26 // -------------------------------------------------------------------
27 // $Id$
28 // -------------------------------------------------------------------
29 
30 #ifndef DetectorConstruction_h
31 #define DetectorConstruction_h 1
32 
34 #include "G4Material.hh"
35 #include "G4Box.hh"
36 #include "G4PVPlacement.hh"
37 #include "G4Mag_UsualEqRhs.hh"
38 #include "G4FieldManager.hh"
40 #include "G4EqMagElectricField.hh"
41 #include "G4UserLimits.hh"
42 #include "G4MagIntegratorDriver.hh"
43 #include "G4ClassicalRK4.hh"
44 #include "G4ChordFinder.hh"
45 #include "G4PropagatorInField.hh"
46 
47 #include "DetectorMessenger.hh"
48 #include "TabulatedField3D.hh"
49 
50 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
51 
53 {
54 public:
57 
60 
61  void SetG1 (G4float);
62  void SetG2 (G4float);
63  void SetG3 (G4float);
64  void SetG4 (G4float);
65  void UpdateGeometry();
66 
67  void SetModel (G4int);
68 
69  G4int GetCoef();
70  void SetCoef();
71 
72  G4int GetProfile(){return profile;};
73  void SetProfile(G4int myProfile);
74 
75  G4int GetGrid(){return grid;};
76  void SetGrid(G4int myGrid);
77 
80 
81  G4LogicalVolume* GetLogicalWorld() {return logicWorld;};
82  G4LogicalVolume* GetLogicalVol() {return logicVol;};
83  G4LogicalVolume* GetLogicalGrid() {return logicControlVol_GridShadow;};
84 
85 private:
86 
87  void DefineMaterials();
88  G4VPhysicalVolume* ConstructVolumes();
89 
90  G4VPhysicalVolume* physiWorld;
91  G4LogicalVolume* logicWorld;
92  G4Box* solidWorld;
93 
94  G4VPhysicalVolume* physiVol;
95  G4LogicalVolume* logicVol;
96  G4Box* solidVol;
97 
98  G4VPhysicalVolume* physiGridVol;
99  G4LogicalVolume* logicGridVol;
100  G4Box* solidGridVol;
101 
102  G4VPhysicalVolume* physiGridVol_Hole;
103  G4LogicalVolume* logicGridVol_Hole;
104  G4Box* solidGridVol_Hole;
105 
106  G4VPhysicalVolume* physiControlVol_GridShadow;
107  G4LogicalVolume* logicControlVol_GridShadow;
108  G4Box* solidControlVol_GridShadow;
109 
110  G4Material* defaultMaterial;
111  G4Material* gridMaterial;
112 
113  G4bool gradientsInitialized;
114  DetectorMessenger* detectorMessenger;
115 
116 };
117 #endif
118 
119