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

Last change on this file since 1279 was 1230, checked in by garnier, 14 years ago

update to geant4.9.3

File size: 4.2 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//
27// $Id: DetectorConstruction.hh,v 1.7 2008/04/07 18:09:05 vnivanch Exp $
28// GEANT4 tag $Name: geant4-09-03-cand-01 $
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;
59class G4ProductionCuts;
60
61//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
62
63class DetectorConstruction : public G4VUserDetectorConstruction
64{
65public:
66
67  DetectorConstruction();
68  virtual ~DetectorConstruction();
69
70public:
71
72  void SetEcalMaterial(const G4String&);
73  void SetAbsMaterial(const G4String&);
74  void SetEcalLength(G4double val);
75  void SetEcalWidth(G4double val);
76  void SetVertexLength(G4double val);
77  void SetPadLength(G4double val);
78  void SetPadWidth(G4double val);
79  void SetAbsLength(G4double val);
80
81  G4VPhysicalVolume* Construct();
82
83  void UpdateGeometry();
84
85  G4double GetWorldSizeZ()  {return worldZ;}
86
87private:
88
89  void DefineMaterials();
90  G4VPhysicalVolume* ConstructVolumes();
91
92  DetectorConstruction & operator=(const DetectorConstruction &right);
93  DetectorConstruction(const DetectorConstruction&);
94
95  G4double ecalLength;
96  G4double ecalWidth;
97  G4double vertexLength;
98  G4double padLength;
99  G4double padWidth;
100  G4double absLength;
101  G4double worldZ;
102
103  G4Material* calMaterial;
104  G4Material* vertMaterial;
105  G4Material* absMaterial;
106  G4Material* worldMaterial;
107  G4Material* yorkMaterial;
108
109  G4LogicalVolume* logicWorld;
110  G4LogicalVolume* logicECal;
111  G4LogicalVolume* logicCal;
112  G4LogicalVolume* logicA1;
113  G4LogicalVolume* logicA2;
114  G4LogicalVolume* logicA3;
115  G4LogicalVolume* logicA4;
116  G4LogicalVolume* logicYV;
117  G4LogicalVolume* logicY;
118  G4LogicalVolume* logicVV;
119  G4LogicalVolume* logicVD;
120  G4LogicalVolume* logicV;
121 
122  G4Region*   vertexRegion;
123  G4Region*   muonRegion;
124  G4ProductionCuts* vertexDetectorCuts;
125  G4ProductionCuts* muonDetectorCuts;
126
127  DetectorMessenger* detectorMessenger;  //pointer to the Messenger
128};
129
130//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
131
132#endif
133
Note: See TracBrowser for help on using the repository browser.