source: trunk/examples/advanced/medical_linac/include/ML2SinputData.hh @ 1309

Last change on this file since 1309 was 1230, checked in by garnier, 15 years ago

update to geant4.9.3

  • Property svn:executable set to *
File size: 3.3 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 inputDataH
41#define inputDataH
42
43#include "globals.hh"
44#include <vector>
45#include "G4RotationMatrix.hh"
46
47enum idParticleSource
48{
49        id_randomTarget=1,
50        id_phaseSpace=2
51};
52enum idTypeOfSensitiveDetector
53{
54        idSD_ComponentROG=1,
55        idSD_PhaseSpace=2,
56        idSD_KillerPlane=3
57};
58struct SStartInputData
59{
60        G4String fileInputData;
61        G4int seed;
62};
63struct SGeneralData
64{
65        G4String WorldName, fileExperimentalData, StartFileInputData;
66        G4int seed, nBeam, nMaxParticlesInRamPlanePhaseSpace;
67        G4bool bSaveROG, bCompareExp;
68        G4String PhaseSpaceOutFile, ROGOutFile;
69
70        G4bool bSavePhaseSpace;
71        G4bool bStopAtPhaseSpace;
72        G4ThreeVector centrePhaseSpace, halfSizePhaseSpace;
73
74        G4int minNumberOfEvents;
75        int saving_in_Selected_Voxels_every_events;
76        int saving_in_ROG_Voxels_every_events;
77        int max_N_particles_in_PhSp_File; 
78};
79
80struct Sparticle
81{
82        G4ThreeVector pos, dir;
83        G4double kinEnergy;
84        G4int nPrimaryPart, primaryParticlePDGE, partPDGE, volumeId;
85        G4String volumeName;
86};
87struct SPrimaryParticle
88{
89        G4int partPDGE, nPrimaryParticle;
90        G4int nParticlesInPhSp;
91};
92struct SInputData
93{
94        SGeneralData generalData;
95        SPrimaryParticle primaryParticleData;
96};
97struct Svoxel
98{
99        G4ThreeVector pos, halfSize;
100        G4double depEnergy, depEnergy2, expDose, depEnergyNorm, depEnergyNormError;
101        G4int nEvents;
102        G4String volumeName;
103};
104#endif
Note: See TracBrowser for help on using the repository browser.