58 solidMod1(0), logicMod1(0), physiMod1(0),
59 solidMod2(0), logicMod2(0), physiMod2(0),
60 solidMod3(0), logicMod3(0), physiMod3(0),
61 solidMod4(0), logicMod4(0), physiMod4(0),
62 FileName(
"Modulators/Modulator010.txt")
89 for (
G4int i=0;i<4*(StepNumbers-1)+1;i++)
175 G4cout<<
" WARNING: The File with name of "<<Name<<
176 " doesn't exist to get modulator step properties. please modify it and try again"<<
G4endl;
178 G4Exception(
"HadrontherapyModulator::ModulatorPropertiesFromFile( )",
"Hadrontherapy0009"
179 ,
FatalException,
"Error: No available external file for reading from");
184 File >>
string>>
string>>string;
241 WholeStartingAngle=StartingAngle[i];
296 startAngleOfTheTube0,
297 spanningAngleOfTheTube0);
351 startAngleOfTheTube0,
352 spanningAngleOfTheTube0);
395 startAngleOfTheTube0/2.,
396 spanningAngleOfTheTube0);
439 startAngleOfTheTube0/2.,
440 spanningAngleOfTheTube0);
468 red-> SetVisibility(
true);
469 red-> SetForceSolid(
true);
479 logicMod[i] -> SetVisAttributes(red);
490 rm -> rotateZ(rotationAngle);
492 G4cout <<
"MODULATOR HAS BEEN ROTATED OF " << rotationAngle/
deg
512 G4cout <<
"The material of the Modulator wheel has been changed to " << Material <<
G4endl;
517 G4cout <<
"WARNING: material \"" << Material <<
"\" doesn't exist in NIST elements/materials"
518 " table [located in $G4INSTALL/source/materials/src/G4NistMaterialBuilder.cc]" <<
G4endl;
519 G4cout <<
"Use command \"/parameter/nist\" to see full materials list!" <<
G4endl;
532 G4cout <<
"The modulator wheel is translated to"<< NewModulatorPos/
mm <<
"mm " <<
G4endl;
545 solidMod[i] -> SetInnerRadius(newvalue);}
547 G4cout <<
"InnerRadius of the Modulator Wheel has been changed to :"
560 solidMod[i] -> SetOuterRadius(newvalue);}
562 G4cout <<
"OuterRadius of the Modulator Wheel has been changed to :"
570 if(value==
"default" )
574 G4cout<<
" Step properties of modulator will be get out from the external file "