source: trunk/examples/advanced/medical_linac/include/ML2WorldConstruction.hh @ 1282

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

update to geant4.9.3

  • Property svn:executable set to *
File size: 3.4 KB
Line 
1//
2// ********************************************************************
3// * DISCLAIMER                                                       *
4// *                                                                  *
5// * The following disclaimer summarizes all the specific disclaimers *
6// * of contributors to this software. The specific disclaimers,which *
7// * govern, are listed with their locations in:                      *
8// *   http://cern.ch/geant4/license                                  *
9// *                                                                  *
10// * Neither the authors of this software system, nor their employing *
11// * institutes,nor the agencies providing financial support for this *
12// * work  make  any representation or  warranty, express or implied, *
13// * regarding  this  software system or assume any liability for its *
14// * use.                                                             *
15// *                                                                  *
16// * This  code  implementation is the  intellectual property  of the *
17// * GEANT4 collaboration.                                            *
18// * By copying,  distributing  or modifying the Program (or any work *
19// * based  on  the Program)  you indicate  your  acceptance of  this *
20// * statement, and all its terms.                                    *
21// ********************************************************************
22//
23// The code was written by :
24//      ^Claudio Andenna claudio.andenna@iss.infn.it, claudio.andenna@ispesl.it
25//      *Barbara Caccia barbara.caccia@iss.it
26//      with the support of Pablo Cirrone (LNS, INFN Catania Italy)
27//
28// ^ISPESL and INFN Roma, gruppo collegato Sanità, Italy
29// *Istituto Superiore di Sanità and INFN Roma, gruppo collegato Sanità, Italy
30//  Viale Regina Elena 299, 00161 Roma (Italy)
31//  tel (39) 06 49902246
32//  fax (39) 06 49387075
33//
34// more information:
35// http://g4advancedexamples.lngs.infn.it/Examples/medical-linac
36//
37//*******************************************************//
38
39
40#ifndef CML2WorldConstructionH
41#define CML2WorldConstructionH
42
43#include "ML2SinputData.hh"
44
45#include "G4VUserDetectorConstruction.hh"
46#include "G4VPhysicalVolume.hh"
47#include "G4LogicalVolume.hh"
48#include "G4Box.hh"
49#include "G4VisAttributes.hh"
50#include "G4PVPlacement.hh"
51#include "G4NistManager.hh"
52
53#include "ML2AcceleratorConstruction.hh"
54#include "ML2PhantomConstruction.hh"
55#include "ML2PhaseSpaces.hh"
56
57
58class G4VPhysicalVolume;
59class CML2PhantomConstruction;
60class CML2AcceleratorConstruction;
61class CML2PhaseSpaces;
62
63class CML2WorldConstruction : public G4VUserDetectorConstruction
64{
65public:
66        CML2WorldConstruction(void);
67        ~CML2WorldConstruction(void);
68        G4VPhysicalVolume* Construct();
69        void create(SInputData *inputData);
70        static CML2WorldConstruction* GetInstance(void);
71        G4int getNParticleBackScattered(){return this->backScatteredPlane->getCML2SensDetNParticle();};
72        G4int getNParticlePhaseSpace(){return this->phaseSpace->getCML2SensDetNParticle();};
73        inline G4int getTotalNumberOfEventsInPhantom(){return this->phantomEnv->getTotalNumberOfEvents();};
74        inline bool getBContinueRun(){return this->phaseSpace->getBContinueRun();};
75private:
76        void checkVolumeOverlap();
77        static CML2WorldConstruction * instance;
78
79        CML2AcceleratorConstruction *acceleratorEnv;
80        CML2PhantomConstruction *phantomEnv;
81        G4VPhysicalVolume* PVWorld;
82        CML2PhaseSpaces *phaseSpace;
83        CML2PhaseSpaces *backScatteredPlane;
84};
85
86#endif
87
Note: See TracBrowser for help on using the repository browser.