47 for(
size_t ii = 0; ii < theControlPoints.size(); ii++ ){
48 G4double cumulativeMS = theControlPoints[ii]->GetCumulativeMetersetWeight();
49 theControlPoints[ii]->SetMetersetWeight( (cumulativeMS - prevCumulativeMS )*theMeterset);
50 prevCumulativeMS = cumulativeMS;
57 std::ofstream fout(
"RTPlan_"+std::to_string(theNumber));
58 fout <<
":P BeamMeterset " << theMeterset <<
G4endl;
60 for(
size_t ii = 0; ii < theDevices.size(); ii++) {
61 theDevices[ii]->DumpToFile( fout );
64 for(
size_t ii = 0; ii < theCompensators.size(); ii++) {
65 theCompensators[ii]->DumpToFile( fout );
68 for(
size_t kk = 0; kk < theControlPoints.size(); kk++ ){
69 std::string kkstr = std::to_string(theControlPoints[kk]->GetIndex());
70 std::ofstream fout2(
"RTPlanControlPoint_"+std::to_string(theNumber)+
"_"+kkstr);
71 theControlPoints[kk]->DumpToFile( fout2 );
void Print(std::ostream &out)
void SetControlPointMetersets()