source: trunk/examples/extended/optical/LXe/include/LXeMainVolume.hh @ 893

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

update

File size: 3.3 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#ifndef LXeMainVolume_H
27#define LXeMainVolume_H 1
28
29#include "G4PVPlacement.hh"
30#include "G4Box.hh"
31#include "G4Tubs.hh"
32#include "G4Sphere.hh"
33#include "G4Material.hh"
34#include "G4LogicalVolume.hh"
35#include "G4OpticalSurface.hh"
36
37#include "LXeDetectorConstruction.hh"
38
39class LXeMainVolume : public G4PVPlacement
40{
41public:
42  LXeMainVolume(G4RotationMatrix *pRot,
43                const G4ThreeVector &tlate,
44                G4LogicalVolume *pMotherLogical,
45                G4bool pMany,
46                G4int pCopyNo,
47                LXeDetectorConstruction* c);
48private:
49  void VisAttributes();
50  void SurfaceProperties();
51
52  void PlacePMTs(G4LogicalVolume* pmt_Log,
53                 G4RotationMatrix* rot, G4double &a, G4double &b, G4double da,
54                 G4double db, G4double amin, G4double bmin, G4int na, G4int nb,
55                 G4double &x, G4double &y, G4double &z, G4int &k,LXePMTSD* sd);
56
57  void CopyValues();
58
59  G4bool updated;
60 
61  LXeDetectorConstruction* constructor;
62
63  G4double scint_x;
64  G4double scint_y;
65  G4double scint_z;
66  G4double d_mtl;
67  G4int nx;
68  G4int ny;
69  G4int nz;
70  G4double outerRadius_pmt;
71  G4bool sphereOn;
72  G4double refl;
73
74  //Basic Volumes
75  //
76  G4Box* scint_box;
77  G4Box* housing_box;
78  G4Tubs* pmt;
79  G4Tubs* photocath;
80  G4Sphere* sphere;
81
82
83  // Logical volumes
84  //
85  G4LogicalVolume* scint_log;
86  static G4LogicalVolume* housing_log;
87  G4LogicalVolume* pmt_log;
88  G4LogicalVolume* photocath_log;
89  G4LogicalVolume* sphere_log;
90 
91  // Physical volumes
92  //
93  G4VPhysicalVolume* scint_phys;
94  //keeping pointers to these is pointless really since there are many of them
95  //but I'm doing it to be consistent
96  G4VPhysicalVolume* pmt_phys;
97  G4VPhysicalVolume* photocath_phys;
98  G4VPhysicalVolume* sphere_phys;
99
100  //Sensitive Detectors
101  static LXeScintSD* scint_SD;
102  static LXePMTSD* pmt_SD;
103};
104
105#endif
Note: See TracBrowser for help on using the repository browser.