Geant4  10.03
DetectorConstruction.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: DetectorConstruction.hh 101245 2016-11-10 08:45:38Z gcosmo $
27 //
30 //
31 #ifndef DetectorConstruction_h
32 #define DetectorConstruction_h 1
33 
34 // -------------------------------------------------------------
35 // GEANT4 test IBREM
36 //
37 // Authors: V.Grichine, V.Ivanchenko
38 //
39 // Modified:
40 //
41 // 18-02-03 V.Ivanchenko create
42 //
43 // -------------------------------------------------------------
44 
45 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
46 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
47 
49 #include "G4VPhysicalVolume.hh"
50 #include "G4Material.hh"
51 
52 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
53 
54 class CheckVolumeSD;
55 class PhantomSD;
56 class TargetSD;
57 class DetectorMessenger;
58 class G4LogicalVolume;
59 
61 {
62 public:
63 
65  virtual ~DetectorConstruction();
66 
68 
69  void SetTarget1Material(const G4String& m);
70  void SetTarget2Material(const G4String& m);
71 
72  inline G4double GetGeneratorPosZ() const { return fGeneratorPosZ; };
73 
74  inline void SetGap(G4double val) { fDelta = val; };
75  inline void SetTarget1Z(G4double val) { fTarget1Z = val; };
76  inline void SetTarget2Z(G4double val) { fTarget2Z = val; };
77  inline void SetMylarZ(G4double val) { fMylarVolumeZ = val; }
78  inline void SetCheckShiftZ(G4double val) { fCheckShiftZ = val; }
79  inline void SetAbsorberZ(G4double val) { fAbsorberZ = val; }
80  inline void SetAbsorberShiftZ(G4double val) { fAbsorberShiftZ = val; }
81 
82 private:
83 
85 
88 
92 
96 
99 
104 
108 
110 
115 
118 
121 
123 };
124 
125 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
126 
127 #endif
void SetGap(G4double val)
G4VPhysicalVolume * Construct()
DetectorMessenger * fMessenger
DetectorConstruction & operator=(const DetectorConstruction &right)
void SetTarget2Z(G4double val)
void SetTarget2Material(const G4String &m)
G4double GetGeneratorPosZ() const
void SetAbsorberZ(G4double val)
static constexpr double m
Definition: G4SIunits.hh:129
void SetTarget1Z(G4double val)
void SetCheckShiftZ(G4double val)
void SetAbsorberShiftZ(G4double val)
void SetMylarZ(G4double val)
Detector construction class to demonstrate various ways of placement.
G4LogicalVolume * fLogicTarget1
double G4double
Definition: G4Types.hh:76
void SetTarget1Material(const G4String &m)
Messenger class that defines commands for DetectorConstruction.
G4LogicalVolume * fLogicTarget2