source: trunk/examples/advanced/Tiara/source/tiara/include/TiaraGeometry.hh@ 899

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

update

File size: 3.4 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: TiaraGeometry.hh,v 1.5 2006/06/29 15:43:46 gunter Exp $
27// GEANT4 tag $Name: $
28//
29// ----------------------------------------------------------------------
30//
31// Class TiaraGeometry
32//
33
34#ifndef TiaraGeometry_hh
35#define TiaraGeometry_hh TiaraGeometry_hh
36
37#include <set>
38
39#include "TiaraDimensions.hh"
40#include "G4VUserDetectorConstruction.hh"
41#include "TiaraVComponent.hh"
42
43typedef std::set<TiaraVComponent*> TiaraComponents;
44
45class G4Material;
46class G4LogicalVolume;
47class TiaraMaterials;
48
49class TiaraGeometry : public G4VUserDetectorConstruction {
50public:
51 TiaraGeometry(TiaraMaterials &matfac);
52 ~TiaraGeometry();
53
54 void BuildGeometry(const TiaraDimensions &td);
55
56 virtual G4VPhysicalVolume* Construct();
57
58 G4Material *GetWorldMaterial();
59
60 G4VPhysicalVolume *PlaceExpComponent(const G4ThreeVector &pos,
61 G4LogicalVolume *logVol,
62 const G4String &physName);
63
64
65 G4LogicalVolume *BuildCollimator(G4double width,
66 const G4String &outerMatName,
67 const G4String &innerMatName);
68
69
70 G4LogicalVolume *BuildShield(G4double width,
71 const G4String &matName);
72
73 G4VPhysicalVolume *AddPhysicalDetector(G4double xDist,
74 const G4String &physName);
75
76 G4VPhysicalVolume *AddPhysicalRingDetector(G4double xDist,
77 const G4String &physName);
78 G4VPhysicalVolume *AddDetectorSlab( const G4String &physName);
79 G4VPhysicalVolume *AddSourceDetector();
80 void CreateComponents();
81
82
83private:
84 void ConstHall();
85 void PlaceComponents();
86
87 G4LogicalVolume *fLogicalWorld;
88 G4VPhysicalVolume *fWorldVolume;
89 TiaraMaterials &fMaterials;
90 TiaraComponents fTiaraComponents;
91 G4double fShieldWidth;
92 G4double fColimatorWidth;
93 G4LogicalVolume *fColliPipeLogVol;
94 TiaraDimensions fTiaraDimensions;
95};
96
97
98#endif
Note: See TracBrowser for help on using the repository browser.