[1230] | 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 CML2InputDataH |
---|
| 41 | #define CML2InputDataH |
---|
| 42 | |
---|
| 43 | #include "G4UImessenger.hh" |
---|
| 44 | #include "ML2MainMessenger.hh" |
---|
| 45 | |
---|
| 46 | class CML2MainMessenger; |
---|
| 47 | |
---|
| 48 | class CML2CInputData |
---|
| 49 | { |
---|
| 50 | public: |
---|
| 51 | CML2CInputData(void); |
---|
| 52 | ~CML2CInputData(void); |
---|
| 53 | |
---|
| 54 | inline void setbOnlyVisio(G4bool val){this->bOnlyVisio=val;}; |
---|
| 55 | inline void setPhaseSpaceCentre(G4ThreeVector val){this->inputData.generalData.centrePhaseSpace.set(val.getX(), val.getY(), val.getZ());}; |
---|
| 56 | inline void setPhaseSpaceHalfSize(G4ThreeVector val){this->inputData.generalData.halfSizePhaseSpace.set(val.getX(), val.getY(), val.getZ());}; |
---|
| 57 | inline void setbSavePhaseSPace(G4bool val){this->inputData.generalData.bSavePhaseSpace=val;}; |
---|
| 58 | inline void setbStopAtPhaseSpace(G4bool val){this->inputData.generalData.bStopAtPhaseSpace=val;}; |
---|
| 59 | inline void setPhaseSpaceOutFile(G4String val){this->inputData.generalData.PhaseSpaceOutFile=val;}; |
---|
| 60 | |
---|
| 61 | inline void setbSaveROG(G4bool val){this->inputData.generalData.bSaveROG=val;}; |
---|
| 62 | inline void setROGOutFile(G4String val){this->inputData.generalData.ROGOutFile=val;}; |
---|
| 63 | |
---|
| 64 | inline void setMinNumberOfEvents(G4double val){this->inputData.generalData.minNumberOfEvents=val;}; |
---|
| 65 | |
---|
| 66 | inline void setBCompareExp(G4bool val){this->inputData.generalData.bCompareExp=val;}; |
---|
| 67 | inline void setFileExperimentalData(G4String val){this->inputData.generalData.fileExperimentalData=val;}; |
---|
| 68 | inline void setNBeams(G4int val){this->inputData.generalData.nBeam=val;}; |
---|
| 69 | inline void setNMaxParticlesInRamPlanePhaseSpace(G4int val){this->inputData.generalData.nMaxParticlesInRamPlanePhaseSpace=val;}; |
---|
| 70 | |
---|
| 71 | inline void setSaving_in_Selected_Voxels_every_events(G4int val){this->inputData.generalData.saving_in_Selected_Voxels_every_events=val;}; |
---|
| 72 | inline void setSaving_in_ROG_Voxels_every_events(G4int val){this->inputData.generalData.saving_in_ROG_Voxels_every_events=val;}; |
---|
| 73 | inline void setMax_N_particles_in_PhSp_File(G4int val){this->inputData.generalData.max_N_particles_in_PhSp_File=val;}; |
---|
| 74 | |
---|
| 75 | G4bool bOnlyVisio; |
---|
| 76 | SInputData inputData; |
---|
| 77 | private: |
---|
| 78 | CML2MainMessenger *ML2MainMessenger; |
---|
| 79 | }; |
---|
| 80 | |
---|
| 81 | |
---|
| 82 | #endif |
---|
| 83 | |
---|