File indexing completed on 2025-01-31 09:22:16
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035 #ifndef HadrontherapyModulator_H
0036 #define HadrontherapyModulator_H 1
0037
0038 #include "globals.hh"
0039 #include <fstream>
0040 #include "G4Material.hh"
0041 #include "G4ThreeVector.hh"
0042 #include "G4RotationMatrix.hh"
0043 #include "HadrontherapyModulatorMessenger.hh"
0044
0045 class G4Tubs;
0046 class G4LogicalVolume;
0047 class G4VPhysicalVolume;
0048
0049
0050 class HadrontherapyModulator
0051 {
0052 public:
0053
0054 HadrontherapyModulator();
0055 ~HadrontherapyModulator();
0056
0057 void BuildModulator(G4VPhysicalVolume*);
0058 void SetModulatorAngle(G4double);
0059 void SetModulatorMaterial(G4String);
0060 void SetModulatorPosition(G4ThreeVector);
0061 void SetModulatorInnerRadius(G4double);
0062 void SetModulatorOuterRadius(G4double);
0063 void ModulatorDefaultProperties();
0064 void ModulatorPropertiesFromFile(G4String);
0065 void GetDataFromFile(G4String value);
0066 void GetStepInformation();
0067 void BuildSteps();
0068
0069 private:
0070 std::ifstream File;
0071
0072 G4LogicalVolume * logicMotherMod ;
0073 G4VPhysicalVolume* physiMotherMod;
0074
0075 G4Material* Mod0Mater;
0076 G4Material* ModMater;
0077
0078 G4Tubs* solidMod1;
0079 G4LogicalVolume* logicMod1;
0080 G4VPhysicalVolume* physiMod1;
0081
0082 G4Tubs* solidMod2;
0083 G4LogicalVolume* logicMod2;
0084 G4VPhysicalVolume* physiMod2;
0085
0086 G4Tubs* solidMod3;
0087 G4LogicalVolume* logicMod3;
0088 G4VPhysicalVolume* physiMod3;
0089
0090 G4Tubs* solidMod4;
0091 G4LogicalVolume* logicMod4;
0092 G4VPhysicalVolume* physiMod4;
0093
0094 G4double pi;
0095 G4int StepNumbers;
0096 G4double* Weight;
0097 G4double* StepThickness;
0098 G4double* StartingAngle;
0099 G4double* SpanningAngle;
0100 G4ThreeVector* PositionMod;
0101 G4Tubs** solidMod;
0102 G4LogicalVolume** logicMod;
0103 G4VPhysicalVolume** physiMod;
0104
0105 G4RotationMatrix* rm;
0106
0107 G4String FileName;
0108 HadrontherapyModulatorMessenger* ModulatorMessenger;
0109 G4double innerRadiusOfTheTube ;
0110 G4double outerRadiusOfTheTube ;
0111
0112
0113
0114 };
0115 #endif