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: SCDetectorConstruction.hh,v 1.6 2006/12/13 15:43:46 gunter Exp $ |
---|
28 | // GEANT4 tag $Name: geant4-09-04-ref-00 $ |
---|
29 | // |
---|
30 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
31 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
32 | |
---|
33 | #ifndef SCDetectorConstruction_h |
---|
34 | #define SCDetectorConstruction_h 1 |
---|
35 | |
---|
36 | #include "globals.hh" |
---|
37 | #include "G4VUserDetectorConstruction.hh" |
---|
38 | #include "SCMagneticField.hh" |
---|
39 | #include "G4VSolid.hh" |
---|
40 | |
---|
41 | class G4Box ; |
---|
42 | class G4LogicalVolume; |
---|
43 | class G4VPhysicalVolume; |
---|
44 | class G4Material; |
---|
45 | class SCDetectorMessenger; |
---|
46 | |
---|
47 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
48 | |
---|
49 | class SCDetectorConstruction : public G4VUserDetectorConstruction |
---|
50 | { |
---|
51 | public: |
---|
52 | |
---|
53 | SCDetectorConstruction(); |
---|
54 | ~SCDetectorConstruction(); |
---|
55 | |
---|
56 | public: |
---|
57 | |
---|
58 | G4VPhysicalVolume* Construct(); |
---|
59 | |
---|
60 | const |
---|
61 | G4VPhysicalVolume* GetTracker() {return physiTracker;}; |
---|
62 | G4double GetWorldFullLength() {return fWorldLength;}; |
---|
63 | |
---|
64 | |
---|
65 | G4double GetTrackerR() { return fTrackerR ; } ; |
---|
66 | G4double GetTrackerR1() { return fTrackerR1 ; } ; |
---|
67 | G4double GetTrackerR2() { return fTrackerR2 ; } ; |
---|
68 | |
---|
69 | G4double GetTrackerpDz() { return fTrackerpDz;}; |
---|
70 | G4double GetTrackerpDx1() { return fTrackerpDx1 ; } ; |
---|
71 | G4double GetTrackerpDx2() { return fTrackerpDx2 ; } ; |
---|
72 | G4double GetTrackerpDx3() { return fTrackerpDx3 ; } ; |
---|
73 | G4double GetTrackerpDx4() { return fTrackerpDx4 ; } ; |
---|
74 | |
---|
75 | G4double GetTrackerpDy1() { return fTrackerpDy1 ; } ; |
---|
76 | G4double GetTrackerpDy2() { return fTrackerpDy2 ; } ; |
---|
77 | G4double GetTwistAngle() { return fTwistAngle ; } ; |
---|
78 | |
---|
79 | G4double GetAlpha() { return fAlph ; } ; |
---|
80 | G4double GetPhi() { return fPhi ; } ; |
---|
81 | G4double GetTheta() { return fTheta ; } ; |
---|
82 | G4String GetDetectorType() { return fval ; } ; |
---|
83 | |
---|
84 | G4double GetPhiSegment() { return fPhiSegment ; } ; |
---|
85 | G4double GetThetaSegment() { return fThetaSegment ; } ; |
---|
86 | |
---|
87 | G4double GetSemiAxisX() { return fSemiAxisX ; } |
---|
88 | G4double GetSemiAxisY() { return fSemiAxisY ; } |
---|
89 | G4double GetSemiAxisZ() { return fSemiAxisZ ; } |
---|
90 | |
---|
91 | G4VSolid * GetSolid() { return aVolume ; } |
---|
92 | |
---|
93 | void SwitchDetector(); |
---|
94 | G4VPhysicalVolume* SelectDetector (const G4String& val); |
---|
95 | |
---|
96 | void setTargetMaterial (G4String); |
---|
97 | void setChamberMaterial(G4String); |
---|
98 | void SetMagField(G4double); |
---|
99 | |
---|
100 | private: |
---|
101 | |
---|
102 | G4Box* solidWorld; // pointer to the solid envelope |
---|
103 | G4LogicalVolume* logicWorld; // pointer to the logical envelope |
---|
104 | G4VPhysicalVolume* physiWorld; // pointer to the physical envelope |
---|
105 | G4VSolid* aVolume; |
---|
106 | |
---|
107 | // G4TwistedTrap* solidTracker; |
---|
108 | |
---|
109 | G4LogicalVolume* logicTracker; // pointer to the logical Tracker |
---|
110 | G4VPhysicalVolume* physiTracker; // pointer to the physical Tracker |
---|
111 | |
---|
112 | SCMagneticField* fpMagField; // pointer to the magnetic field |
---|
113 | |
---|
114 | SCDetectorMessenger* detectorMessenger; // pointer to the Messenger |
---|
115 | |
---|
116 | G4double fWorldLength; // Full length of the world volume |
---|
117 | |
---|
118 | |
---|
119 | G4double fTrackerR ; // a radius |
---|
120 | G4double fTrackerR1 ; // r1 |
---|
121 | G4double fTrackerR2 ; // r2 |
---|
122 | |
---|
123 | G4double fTrackerpDz ; // Full length of Tracker (pDz) |
---|
124 | G4double fTrackerpDx1 ; // twisted Trapezoid |
---|
125 | G4double fTrackerpDx2 ; |
---|
126 | G4double fTrackerpDx3 ; |
---|
127 | G4double fTrackerpDx4 ; |
---|
128 | G4double fTrackerpDy1 ; |
---|
129 | G4double fTrackerpDy2 ; |
---|
130 | G4double fTwistAngle ; |
---|
131 | G4double fPhi ; |
---|
132 | G4double fTheta ; |
---|
133 | G4double fAlph ; |
---|
134 | G4double fSemiAxisX ; |
---|
135 | G4double fSemiAxisY ; |
---|
136 | G4double fSemiAxisZ ; |
---|
137 | |
---|
138 | |
---|
139 | G4double fPhiSegment ; // e.g. for a sphere : phi in [phi,phi+segment] |
---|
140 | G4double fThetaSegment ; |
---|
141 | |
---|
142 | G4String fval ; |
---|
143 | |
---|
144 | }; |
---|
145 | |
---|
146 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
147 | |
---|
148 | #endif |
---|