Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ExExChDetectorConstruction.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 //
28 // --------------------------------------------------------------
29 //
30 
31 #ifndef ExExChDetectorConstruction_h
32 #define ExExChDetectorConstruction_h 1
33 #endif
34 
37 
38 #include "G4Box.hh"
39 #include "G4Tubs.hh"
40 #include "G4LogicalVolume.hh"
41 #include "G4VPhysicalVolume.hh"
42 #include "G4RunManager.hh"
43 
44 #include "globals.hh"
45 
46 
47 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
48 
50 {
51 public:
52 
55 
56  void DefineMaterials();
58 
59 private:
61 
62  void ConstructSDandField();
63 
64 private:
65  G4ThreeVector fWorldSize;
66  G4Box* fWorldSolid;
67  G4LogicalVolume* fWorldLogic;
68  G4VPhysicalVolume* fWorldPhysical;
69  G4Material* fWorldMaterial;
70 
71  //** SSD **//
72 private:
73  void ConstructSiliconStripDetectors();
74  G4LogicalVolume* ConstructSiSD(G4int);
75  G4bool fSiSD;
76  G4ThreeVector fSSDSize;
77  G4double fSSDXtalDistance[3];
78  G4LogicalVolume* fSSDLogic[3];
79  G4double fSSDBoxThickness;
80  G4ThreeVector fSSDBoxSize;
81  //** Beam pipe **//
82 
83  void SetBeamPipeRadius(G4double aDouble) {fBeamPipeRadius = aDouble;};
84  G4double GetBeamPipeRadius() {return fBeamPipeRadius;};
85 
86  void SetBeamPipeThickness(G4double aDouble) {fBeamPipeThickness = aDouble;};
87  G4double GetBeamPipeThickness() {return fBeamPipeThickness;};
88 
89 private:
90  G4LogicalVolume* ConstructBeamPipe(G4double);
91  G4bool fBeamPipe;
92  G4double fBeamPipeRadius;
93  G4double fBeamPipeThickness;
94  //** Xtal **//
95 public:
96  void AddXtalTarget() {
97  fXtal = true;
99  };
100  void SetXtalMaterial(const G4String& name);
103  G4ThreeVector GetXtalCurvatureRadius() {return fXtalCurvatureRadius;};
105  G4ThreeVector GetXtalSize() {return fXtalSize;};
107  G4ThreeVector GetXtalAngle() {return fXtalAngle;};
109  G4ThreeVector GetXtalCellSize() {return fXtalCellSize;};
111  G4ThreeVector GetXtalCellAngle() {return fXtalCellAngle;};
115  G4ThreeVector GetXtalMiller() {return fXtalMiller;};
116 
117 private:
118  void ConstructXtalTarget();
119  G4bool fXtal;
120 
121  G4ThreeVector fXtalCurvatureRadius;
122 
123  G4Material* fXtalMaterial;
124  G4ThreeVector fXtalAngle;
125  G4ThreeVector fXtalSize;
126  G4ThreeVector fXtalCellSize;
127  G4ThreeVector fXtalCellAngle;
128  G4ThreeVector fXtalMiller;
129  G4double fXtalTVA;
130 
131  G4VSolid* fXtalSolid;
132  G4LogicalVolume* fXtalLogic;
133  G4VPhysicalVolume* fXtalPhysical;
134 };
135 
136 
void GeometryHasBeenModified(G4bool prop=true)
const XML_Char * name
Definition: expat.h:151
Definition: G4Box.hh:64
int G4int
Definition: G4Types.hh:78
bool G4bool
Definition: G4Types.hh:79
static G4RunManager * GetRunManager()
Definition: G4RunManager.cc:79
void SetXtalMaterial(const G4String &name)
Definition of the ExExChDetectorConstructionMessenger class.
double G4double
Definition: G4Types.hh:76