source: trunk/examples/advanced/medical_linac/include/ML2PhantomConstruction.hh@ 1350

Last change on this file since 1350 was 1337, checked in by garnier, 15 years ago

tag geant4.9.4 beta 1 + modifs locales

  • Property svn:executable set to *
File size: 4.0 KB
RevLine 
[1230]1//
2// ********************************************************************
[1337]3// * License and Disclaimer *
[1230]4// * *
[1337]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. *
[1230]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 *
[1337]15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
[1230]17// * *
[1337]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. *
[1230]24// ********************************************************************
25//
26// The code was written by :
27// ^Claudio Andenna claudio.andenna@iss.infn.it, claudio.andenna@ispesl.it
28// *Barbara Caccia barbara.caccia@iss.it
29// with the support of Pablo Cirrone (LNS, INFN Catania Italy)
30//
31// ^ISPESL and INFN Roma, gruppo collegato Sanità, Italy
32// *Istituto Superiore di Sanità and INFN Roma, gruppo collegato Sanità, Italy
33// Viale Regina Elena 299, 00161 Roma (Italy)
34// tel (39) 06 49902246
35// fax (39) 06 49387075
36//
37// more information:
38// http://g4advancedexamples.lngs.infn.it/Examples/medical-linac
39//
40//*******************************************************//
41
42
43#ifndef CML2PhantomConstructionH
44#define CML2PhantomConstructionH
45
46#include "globals.hh"
47#include "G4VPhysicalVolume.hh"
48#include "G4LogicalVolume.hh"
49#include "G4Box.hh"
50
51#include "ML2SinputData.hh"
52#include "ML2Ph_FullWater.hh"
53#include "ML2Ph_BoxInBox.hh"
54
55class CML2PhantomConstructionMessenger;
56class CPh_HalfWaterAir;
57class CPh_FullWater;
58class CML2PhantomConstruction
59{
60public:
61 CML2PhantomConstruction(void);
62 ~CML2PhantomConstruction(void);
63 static CML2PhantomConstruction* GetInstance(void);
64 void Construct(G4VPhysicalVolume *PVWorld, G4int saving_in_ROG_Voxels_every_events, G4int seed, G4String ROGOutFile, G4bool bSaveROG);
65 inline G4int getTotalNumberOfEvents()
66 {
67 if (this->phantomName="fullWater")
68 {return this->Ph_fullWater->getTotalNumberOfEvents();}
69 else if (this->phantomName="BoxInBox")
70 {return this->Ph_BoxInBox->getTotalNumberOfEvents();}
71 return 0;
72 };
73 inline void setPhantomName(G4String val){this->phantomName=val;};
74 inline void setPhantom_nVoxelsX(G4int val){this->nVoxelsX=val;};
75 inline void setPhantom_nVoxelsY(G4int val){this->nVoxelsY=val;};
76 inline void setPhantom_nVoxelsZ(G4int val){this->nVoxelsZ=val;};
77 inline void setPhantomSpecficationsFileName(G4String val){this->PhantomSpecficationsFileName=val;};
78 inline void setPhantomRotationX(G4double val){this->rotationX=val;};
79 inline void setPhantomRotationY(G4double val){this->rotationY=val;};
80 inline void setPhantomRotationZ(G4double val){this->rotationZ=val;};
81private:
82 void design(void);
83 CML2PhantomConstructionMessenger *phantomContstructionMessenger;
84 static CML2PhantomConstruction * instance;
85 G4int nVoxelsX, nVoxelsY, nVoxelsZ;
86 G4String phantomName, PhantomSpecficationsFileName;
87
88 G4RotationMatrix *rotation;
89 G4VPhysicalVolume *PVPhmWorld;
90
91 G4double rotationX, rotationY, rotationZ;
92 CML2Ph_FullWater *Ph_fullWater;
93 CML2Ph_BoxInBox *Ph_BoxInBox;
94};
95#endif
96
Note: See TracBrowser for help on using the repository browser.