source: trunk/source/geometry/solids/test/OpticalEscape/include/AXPETDetectorConstruction.hh@ 1330

Last change on this file since 1330 was 1316, checked in by garnier, 15 years ago

update geant4-09-04-beta-cand-01 interfaces-V09-03-09 vis-V09-03-08

File size: 3.9 KB
Line 
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: AXPETDetectorConstruction.hh,v 1.1 2008/09/03 13:34:03 gcosmo Exp $
27// ------------------------------------------------------------
28// Geant4 class header file
29//
30// This class is a class derived from G4VUserDetectorConstruction
31// for constructing all particles and processes.
32//
33// 03/09/2008, by T.Nikitina
34// ------------------------------------------------------------
35
36#ifndef AXPETDetectorConstruction_h
37#define AXPETDetectorConstruction_h 1
38
39#include "globals.hh"
40#include "G4VUserDetectorConstruction.hh"
41
42class G4VSolid;
43class G4Box;
44class G4Tubs;
45class G4Sphere;
46class G4LogicalVolume;
47class G4VPhysicalVolume;
48class G4Material;
49class AXPETMaterial;
50class AXPETDetectorMessenger;
51
52
53class AXPETDetectorConstruction: public G4VUserDetectorConstruction
54{
55 public:
56 AXPETDetectorConstruction();
57 ~AXPETDetectorConstruction();
58
59 public:
60 G4VPhysicalVolume* Construct();
61
62 AXPETMaterial* pttoMaterial;
63 // Solids
64 G4VSolid * GetSolid() { return aVolume ; }
65 void SwitchDetector();
66 G4VSolid* SelectDetector (const G4String& val);
67 inline G4double GetExtend(){return lysoR;}
68 inline void SetDetectorName(G4String Value){fval=Value;}
69 // Rotation
70 inline void SetRotationInX(G4double value){xRot=value;}
71 inline void SetRotationInY(G4double value){yRot=value;}
72 inline void SetRotationInZ(G4double value){zRot=value;}
73 inline G4double GetRotationInX(){return xRot;}
74 inline G4double GetRotationInY(){return yRot;}
75 inline G4double GetRotationInZ(){return zRot;}
76 // Abortion of Run(for large statistics)
77 inline void SetAbortAction(G4bool bval){fAbort=bval;}
78 inline G4bool GetAbortAction(){return fAbort;}
79 private:
80 G4Material* air;
81 G4Material* lyso;
82 G4Material* al;
83 G4Material* vacuum;
84
85 G4Box* WorldVolume;
86 G4LogicalVolume* LogWorldVolume;
87 G4VPhysicalVolume* PhysWorldVolume;
88
89 G4VSolid* LYSOVolume;
90 G4LogicalVolume* LogLYSOVolume;
91 G4VPhysicalVolume* PhysLYSOVolume;
92
93
94
95 public:
96 G4double worldXsize;
97 G4double worldYsize;
98 G4double worldZsize;
99
100 G4double lysoR;
101 G4double lysoDz;
102 G4double lysoIz;
103
104 private:
105
106 AXPETDetectorMessenger* detectorMessenger; // pointer to the Messenger
107
108 G4String fval ;
109 G4VSolid* aVolume;
110 G4double xRot;
111 G4double yRot;
112 G4double zRot;
113 G4double fAbort;
114};
115
116#endif
Note: See TracBrowser for help on using the repository browser.