source: trunk/examples/extended/electromagnetic/TestEm10/include/Em10DetectorConstruction.hh

Last change on this file was 1337, checked in by garnier, 14 years ago

tag geant4.9.4 beta 1 + modifs locales

File size: 7.2 KB
Line 
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: Em10DetectorConstruction.hh,v 1.19 2006/06/29 16:37:46 gunter Exp $
28// GEANT4 tag $Name: geant4-09-04-beta-01 $
29//
30//
31
32#ifndef Em10DetectorConstruction_h
33#define Em10DetectorConstruction_h 1
34
35#include "G4VUserDetectorConstruction.hh"
36#include "globals.hh"
37#include "G4ios.hh"
38
39class G4Box;
40class G4Tubs;
41class G4LogicalVolume;
42class G4VPhysicalVolume;
43class G4Material;
44class G4Region;
45class G4UniformMagField;
46class Em10DetectorMessenger;
47class Em10CalorimeterSD;
48class G4Region;
49class Em10Materials;
50
51
52class Em10DetectorConstruction : public G4VUserDetectorConstruction
53{
54  public:
55 
56    Em10DetectorConstruction();
57   ~Em10DetectorConstruction();
58
59  public:
60       
61     
62     void SetAbsorberMaterial (G4String);     
63     void SetAbsorberThickness(G4double);     
64     void SetAbsorberRadius(G4double);               
65     void SetAbsorberZpos(G4double);
66
67     void SetRadiatorMaterial (G4String);     
68     void SetRadiatorThickness(G4double);
69 
70     void SetGasGapThickness(G4double);     
71   
72     void SetFoilNumber (G4int    i)  {fFoilNumber = i;  };     
73
74     void SetWorldMaterial(G4String);
75     void SetWorldSizeZ(G4double);
76     void SetWorldSizeR(G4double);
77     void SetDetectorSetUp(G4String s) {fSetUp = s;};
78
79
80     void SetMagField(G4double);
81     
82     G4VPhysicalVolume* Construct();
83
84     void UpdateGeometry();
85     
86  public:
87 
88     void PrintGeometryParameters(); 
89                   
90     G4Material* GetWorldMaterial()    {return fWorldMaterial;};
91     G4double GetWorldSizeZ()          {return fWorldSizeZ;}; 
92     G4double GetWorldSizeR()          {return fWorldSizeR;};
93     
94     G4double GetAbsorberZpos()        {return fAbsorberZ;}; 
95
96     G4Material* GetAbsorberMaterial()  {return fAbsorberMaterial;};
97     G4double    GetAbsorberThickness() {return fAbsorberThickness;};     
98     G4double GetAbsorberRadius()       {return fAbsorberRadius;};
99     
100     const G4VPhysicalVolume* GetphysiWorld() {return fPhysicsWorld;};           
101     const G4VPhysicalVolume* GetAbsorber()   {return fPhysicsAbsorber;};
102     G4LogicalVolume* GetLogicalAbsorber()    {return fLogicAbsorber;};
103
104     G4LogicalVolume* GetLogicalRadiator()    {return fLogicRadiator;};
105     G4double         GetFoilThick()          {return fRadThickness;};     
106     G4double         GetGasThick()           {return fGasGap;};     
107     G4int            GetFoilNumber()         {return fFoilNumber;};     
108     G4Material* GetFoilMaterial()  {return fFoilMat;};
109     G4Material* GetGasMaterial()  {return fGasMat;};
110     
111private:
112   
113  G4VPhysicalVolume* ConstructDetectorXTR(); 
114
115   
116  G4VPhysicalVolume* SimpleSetUpALICE();     
117  G4VPhysicalVolume* SetUpALICE06();     
118  G4VPhysicalVolume* SetUpBari05();     
119  G4VPhysicalVolume* SetUpHarris73(); 
120  G4VPhysicalVolume* SetUpWatase86(); 
121  G4VPhysicalVolume* SetUpBarr90(); 
122
123
124
125  void TestOld();   
126               
127private:
128     
129  G4bool             fWorldChanged;
130  G4Material*        fAbsorberMaterial;
131  G4double           fAbsorberThickness;
132  G4double           fAbsorberRadius;
133
134  G4Material*        fPipeMat;
135
136  G4Material*        fWindowMat;
137  G4double           fWindowThick;
138
139  G4Material*        fElectrodeMat;
140  G4double           fElectrodeThick;
141
142  G4Material*        fGapMat;
143  G4double           fGapThick;
144 
145  G4double           fAbsorberZ;
146  //  G4double           zstartAbs , zendAbs;
147  G4String           fSetUp;
148     
149  G4Material*        fWorldMaterial;
150  G4double           fWorldSizeR;
151  G4double           fWorldSizeZ;
152           
153  G4Box*             fSolidWorld;    //pointer to the solid World
154  G4LogicalVolume*   fLogicWorld;    //pointer to the logical World
155  G4VPhysicalVolume* fPhysicsWorld;    //pointer to the physical World
156
157  // TR radiator volumes and dimensions
158         
159  G4Box*             fSolidRadSlice;   // pointer to the solid  z-slice
160  G4LogicalVolume*   fLogicRadSlice;   // pointer to the logical z-slide
161  G4VPhysicalVolume* fPhysicRadSlice;  // pointer to the physical z-slide
162
163  G4Box*             fSolidRadRing;    // pointer to the solid  R-slice
164  G4LogicalVolume*   fLogicRadRing;    // pointer to the logical R-slide
165  G4VPhysicalVolume* fPhysicRadRing;   // pointer to the physical R-slide
166
167  G4Box*             fSolidRadiator;
168  G4LogicalVolume*   fLogicRadiator; 
169  G4VPhysicalVolume* fPhysicsRadiator;
170
171  G4Material* fRadiatorMat;        // pointer to the mixed TR radiator material
172  G4Material* fFoilMat;            // pointer to the TR foil radiator material
173  G4Material* fGasMat;             // pointer to the TR gas radiator material
174
175  G4double fRadThickness;
176  G4double fGasGap;
177  G4double foilGasRatio;
178
179  G4int fFoilNumber;
180
181  G4double fDetThickness;
182  G4double fDetLength;
183  G4double fDetGap;
184
185  G4double fStartR;
186  G4double fStartZ;
187
188  G4int fModuleNumber;   // the number of Rad-Det modules
189
190  G4double fRadThick;
191  G4double fMylarThick;
192  G4double fPipeLength;
193  G4bool   fPipe;
194  G4bool   fPipeField;
195  G4double fRadZ;
196  G4double fWindowZ;
197  G4double fGapZ;
198  G4double fElectrodeZ;
199
200  G4Box*             fSolidAbsorber; //pointer to the solid Absorber
201  G4LogicalVolume*   fLogicAbsorber; //pointer to the logical Absorber
202  G4VPhysicalVolume* fPhysicsAbsorber; //pointer to the physical Absorber
203     
204  G4UniformMagField* fMagField;      //pointer to the magnetic field
205
206  // G4double fElectronCut, fGammaCut, fPositronCut;
207       
208  Em10DetectorMessenger* fDetectorMessenger;  //pointer to the Messenger
209  Em10CalorimeterSD*     fCalorimeterSD;  //pointer to the sensitive detector
210  G4Region*             fRegGasDet;
211  G4Region*             fRadRegion;
212  Em10Materials*        fMat; 
213
214};
215
216#endif
217
218
219
220
221
222
223
Note: See TracBrowser for help on using the repository browser.