source: trunk/source/geometry/management/test/TestAssemblyVolume/include/TstVADetectorConstruction.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.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//
27// $Id: TstVADetectorConstruction.hh,v 1.6 2006/06/29 18:34:15 gunter Exp $
28// GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
29//
30// --------------------------------------------------------------
31
32#ifndef TstVADetectorConstruction_h
33#define TstVADetectorConstruction_h 1
34
35class G4VPhysicalVolume;
36class G4LogicalVolume;
37class G4Material;
38class TstVADetectorMessenger;
39class G4AssemblyVolume;
40
41#include <vector>
42#include "globals.hh"
43#include "G4VUserDetectorConstruction.hh"
44
45class TstVADetectorConstruction : public G4VUserDetectorConstruction
46{
47// public:
48 struct sClassic
49 {
50 G4LogicalVolume* caloLV;
51 std::vector<G4VPhysicalVolume*> PVs;
52 };
53
54 public:
55 TstVADetectorConstruction();
56 ~TstVADetectorConstruction();
57
58 public:
59 G4VPhysicalVolume* Construct();
60 void SwitchDetector();
61 void SelectDetector(G4String val);
62 void SelectMaterial(G4String val);
63
64// private:
65 G4VPhysicalVolume* SelectDetector();
66 void SelectMaterialPointer();
67 void ConstructClassic();
68 void ConstructAssembly();
69 void CleanClassic();
70 void CleanAssembly();
71
72 private:
73 G4VPhysicalVolume* worldVol;
74 G4Material* Air;
75 G4Material* Al;
76 G4Material* Pb;
77 G4Material* selectedMaterial;
78 G4int detectorChoice;
79 G4String materialChoice;
80 TstVADetectorMessenger* detectorMessenger;
81
82 private:
83 // Very private data
84 G4LogicalVolume* plateLV;
85 sClassic classicDetector;
86 G4AssemblyVolume* assemblyDetector;
87};
88
89#endif
90
Note: See TracBrowser for help on using the repository browser.