Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ElectronBenchmarkDetector.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 // $Id: ElectronBenchmarkDetector.hh 93389 2015-10-20 07:04:35Z gcosmo $
27 //
30 
31 #ifndef ElectronBenchmarkDetector_h
32 #define ElectronBenchmarkDetector_h 1
33 
35 #include "globals.hh"
36 #include "G4ThreeVector.hh"
37 #include "G4Cache.hh"
38 
39 class G4LogicalVolume;
40 class G4VPhysicalVolume;
41 class G4Tubs;
43 class G4Material;
44 class G4VisAttributes;
46 
47 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
48 
50 {
51 public:
52 
55 
56  virtual G4VPhysicalVolume* Construct();
57 
58  // Sensitive Detector
59  void ConstructSDandField();
60 
61  // Material Definition
62  void DefineMaterials();
63 
64  // Geometry Definition
66  void CreateExitWindow(G4LogicalVolume* logicWorld);
67  void CreatePrimaryFoil(G4LogicalVolume* logicWorld);
68  void CreateMonitor(G4LogicalVolume* logicWorld);
69  void CreateHeliumBag(G4LogicalVolume* logicWorld);
70  void CreateScorer(G4LogicalVolume* logicWorld);
72 
73  // Command Interface
74  void SetPrimFoilMaterial(G4String matname);
75  void SetPrimFoilThickness(G4double thicknessPrimFoil);
76 
77 private:
78  // Exit Window
79  G4double fPosWindow0;
80  G4double fPosWindow1;
81 
82  // Primary Foil
83  G4Material* fMaterialPrimFoil;
84  G4double fHalfThicknessPrimFoil;
85  G4double fPosPrimFoil;
86  G4LogicalVolume* fLogPrimFoil;
87  G4Tubs* fSolidPrimFoil;
88 
89  // Monitor Chambers
90  G4double fPosMon0;
91  G4double fPosMon1;
92 
93  // Helium Bag
94  G4double fPosBag0;
95  G4double fPosBag1;
96  G4double fPosHelium0;
97  G4double fPosHelium1;
98  G4double fThicknessRing;
99 
100  // Scoring Plane
101  G4double fPosScorer;
102  G4double fThicknessScorer;
103  G4double fWidthScorerRing;
104  G4LogicalVolume* fScorerRingLog;
105 
106  // Radii
107  G4double fRadOverall;
108  G4double fRadRingInner;
109 
110  // Extra space remaining in world volume around apparatus
111  G4double fPosDelta;
112  G4double fRadDelta;
113 
114  // World volume
115  G4LogicalVolume* fLogWorld;
116 
117  // SensitiveDetector
118  // G4Cache mechanism is necessary for multi-threaded operation
119  // as it allows us to store separate detector pointer per thread
120  const G4Cache<G4MultiFunctionalDetector*> fSensitiveDetectorCache;
121 
122  // Messenger
124 
125  // Visualization Attributes
126  G4VisAttributes* fWorldVisAtt;
127  G4VisAttributes* fWindowVisAtt;
128  G4VisAttributes* fPrimFoilVisAtt;
129  G4VisAttributes* fMonVisAtt;
130  G4VisAttributes* fBagVisAtt;
131  G4VisAttributes* fHeliumVisAtt;
132  G4VisAttributes* fRingVisAtt;
133  G4VisAttributes* fScorerVisAtt;
134 };
135 
136 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
137 
138 #endif
virtual G4VPhysicalVolume * Construct()
void SetPrimFoilThickness(G4double thicknessPrimFoil)
void CreateScorer(G4LogicalVolume *logicWorld)
Definition: G4Tubs.hh:85
void CreatePrimaryFoil(G4LogicalVolume *logicWorld)
void CreateHeliumBag(G4LogicalVolume *logicWorld)
void CreateMonitor(G4LogicalVolume *logicWorld)
void CreateExitWindow(G4LogicalVolume *logicWorld)
void SetPrimFoilMaterial(G4String matname)
double G4double
Definition: G4Types.hh:76