source: trunk/examples/extended/electromagnetic/TestEm9/include/DetectorConstruction.hh@ 807

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

update

File size: 4.0 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//
27// $Id: DetectorConstruction.hh,v 1.5 2006/06/29 17:00:56 gunter Exp $
28// GEANT4 tag $Name: $
29//
30//
31/////////////////////////////////////////////////////////////////////////
32//
33// TestEm9: Cryslal calorimetry
34//
35// Created: 31.01.03 V.Ivanchenko
36//
37// Modified:
38//
39////////////////////////////////////////////////////////////////////////
40//
41
42//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
43//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
44
45#ifndef DetectorConstruction_h
46#define DetectorConstruction_h 1
47
48#include "G4VUserDetectorConstruction.hh"
49#include "globals.hh"
50#include "G4ThreeVector.hh"
51#include "G4Material.hh"
52#include "G4VPhysicalVolume.hh"
53
54class G4Tubs;
55class G4LogicalVolume;
56class G4UniformMagField;
57class DetectorMessenger;
58class G4Region;
59
60//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
61
62class DetectorConstruction : public G4VUserDetectorConstruction
63{
64public:
65
66 DetectorConstruction();
67 ~DetectorConstruction();
68
69public:
70
71 void SetEcalMaterial(const G4String&);
72 void SetAbsMaterial(const G4String&);
73 void SetEcalLength (G4double val) {ecalLength = val;};
74 void SetEcalWidth (G4double val) {ecalWidth = val;};
75 void SetVertexLength (G4double val) {vertexLength = val;};
76 void SetPadLength (G4double val) {padLength = val;};
77 void SetPadWidth (G4double val) {padWidth = val;};
78 void SetAbsLength(G4double val) {absLength = val;};
79
80 G4VPhysicalVolume* Construct();
81
82 void UpdateGeometry();
83
84 G4double GetWorldSizeZ() {return worldZ;}
85
86private:
87
88 void DefineMaterials();
89 G4VPhysicalVolume* ConstructVolumes();
90
91 DetectorConstruction & operator=(const DetectorConstruction &right);
92 DetectorConstruction(const DetectorConstruction&);
93
94 G4double ecalLength;
95 G4double ecalWidth;
96 G4double vertexLength;
97 G4double padLength;
98 G4double padWidth;
99 G4double absLength;
100 G4double worldZ;
101
102 G4Material* calMaterial;
103 G4Material* vertMaterial;
104 G4Material* absMaterial;
105 G4Material* worldMaterial;
106 G4Material* yorkMaterial;
107
108 G4LogicalVolume* logicC;
109 G4LogicalVolume* logicA1;
110 G4LogicalVolume* logicA2;
111 G4LogicalVolume* logicA3;
112 G4LogicalVolume* logicA4;
113
114 G4Region* vertexRegion;
115 G4Region* muonRegion;
116
117 DetectorMessenger* detectorMessenger; //pointer to the Messenger
118};
119
120//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
121
122#endif
123
Note: See TracBrowser for help on using the repository browser.