ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ExN03DetectorConstruction.hh
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file ExN03DetectorConstruction.hh
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 //
28 //
29 
30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
31 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
32 
33 #ifndef ExN03DetectorConstruction_h
34 #define ExN03DetectorConstruction_h 1
35 
37 #include "globals.hh"
38 
39 class G4Box;
40 class G4LogicalVolume;
41 class G4VPhysicalVolume;
42 class G4Material;
43 class G4UniformMagField;
45 
46 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
47 
49 {
50  public:
51 
54 
55  public:
56 
59 
60  void SetGapMaterial (G4String);
62 
63  void SetCalorSizeYZ(G4double);
64  void SetNbOfLayers (G4int);
65 
66  void SetMagField(G4double);
67 
69 
70  void UpdateGeometry();
71 
72  public:
73 
74  void PrintCalorParameters();
75 
78 
81 
83 
86 
89 
92  const G4VPhysicalVolume* GetGap() {return physiGap;};
93 
94  private:
95 
98 
101 
104 
107 
111 
112  G4Box* solidWorld; //pointer to the solid World
113  G4LogicalVolume* logicWorld; //pointer to the logical World
114  G4VPhysicalVolume* physiWorld; //pointer to the physical World
115 
116  G4Box* solidCalor; //pointer to the solid Calor
117  G4LogicalVolume* logicCalor; //pointer to the logical Calor
118  G4VPhysicalVolume* physiCalor; //pointer to the physical Calor
119 
120  G4Box* solidLayer; //pointer to the solid Layer
121  G4LogicalVolume* logicLayer; //pointer to the logical Layer
122  G4VPhysicalVolume* physiLayer; //pointer to the physical Layer
123 
124  G4Box* solidAbsorber; //pointer to the solid Absorber
125  G4LogicalVolume* logicAbsorber; //pointer to the logical Absorber
126  G4VPhysicalVolume* physiAbsorber; //pointer to the physical Absorber
127 
128  G4Box* solidGap; //pointer to the solid Gap
129  G4LogicalVolume* logicGap; //pointer to the logical Gap
130  G4VPhysicalVolume* physiGap; //pointer to the physical Gap
131 
132  G4UniformMagField* magField; //pointer to the magnetic field
133 
134  ExN03DetectorMessenger* detectorMessenger; //pointer to the Messenger
135 
136  private:
137 
138  void DefineMaterials();
139  void ComputeCalorParameters();
141 };
142 
143 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
144 
146 {
147  // Compute derived parameters of the calorimeter
150 
152 }
153 
154 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
155 
156 #endif
157