source: trunk/examples/extended/radioactivedecay/exrdm/include/exrdmDetectorConstruction.hh@ 807

Last change on this file since 807 was 807, checked in by garnier, 17 years ago

update

File size: 4.7 KB
RevLine 
[807]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#ifndef exrdmDetectorConstruction_h
27#define exrdmDetectorConstruction_h 1
28
29#include "globals.hh"
30#include "G4VUserDetectorConstruction.hh"
31//#include "exrdmMagneticField.hh"
32
33class G4Tubs;
34class G4LogicalVolume;
35class G4VPhysicalVolume;
36class G4Material;
37class G4Region;
38class exrdmDetectorMessenger;
39class exrdmMaterial;
40
41//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
42
43class exrdmDetectorConstruction : public G4VUserDetectorConstruction
44{
45 public:
46
47 exrdmDetectorConstruction();
48 ~exrdmDetectorConstruction();
49
50 public:
51
52 G4VPhysicalVolume* Construct();
53
54 const
55 G4VPhysicalVolume* GetDetector() {return physiDetector;};
56
57 G4double GetDetectoFullLength() {return fDetectorLength;};
58 G4double GetTargetFullLength() {return fTargetLength;};
59 G4double GetWorldFullLength() {return fWorldLength;};
60 G4double GetDetectorThickness() {return fDetectorThickness;};
61 G4double GetTargetRadius() {return fTargetRadius;};
62 G4double GetWorldRadius() {return fWorldRadius;};
63
64 void setTargetMaterial (G4String);
65 void setDetectorMaterial(G4String);
66
67 void setTargetRadius (G4double value) { fTargetRadius = value; };
68 void setDetectorThickness(G4double value){ fDetectorThickness = value;};
69 void setTargetLength (G4double value) { fTargetLength = value; };
70 void setDetectorLength(G4double value){ fDetectorLength = value;};
71
72 private:
73 void DefineMaterials();
74
75 private:
76
77 G4Tubs* solidWorld; // pointer to the solid envelope
78 G4LogicalVolume* logicWorld; // pointer to the logical envelope
79 G4VPhysicalVolume* physiWorld; // pointer to the physical envelope
80
81 G4Tubs* solidTarget; // pointer to the solid Target
82 G4LogicalVolume* logicTarget; // pointer to the logical Target
83 G4VPhysicalVolume* physiTarget; // pointer to the physical Target
84
85 G4Tubs* solidDetector; // pointer to the solid Detector
86 G4LogicalVolume* logicDetector; // pointer to the logical Detector
87 G4VPhysicalVolume* physiDetector; // pointer to the physical Detector
88
89 exrdmDetectorMessenger* detectorMessenger; // pointer to the Messenger
90 exrdmMaterial* materialsManager; // material manager
91
92 G4Material* DefaultMater; // Default material
93 G4Material* TargetMater; // Target material
94 G4Material* DetectorMater; // Detector material
95
96 G4double fWorldLength; // Full length the world volume
97 G4double fTargetLength; // Full length of the target
98 G4double fDetectorLength; // Full length of the Detector
99 G4double fWorldRadius; // Radius of the world volume
100 G4double fTargetRadius; // Radius of the target
101 G4double fDetectorThickness; // Thickness of the Detector
102
103 G4Region* targetRegion;
104 G4Region* detectorRegion;
105
106};
107
108//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
109
110#endif
Note: See TracBrowser for help on using the repository browser.