#!/bin/csh -f
if ( $#argv == 1 ) then
  set file = $1
else
  echo usage: ChangeMethodNameForPartcileChange \[file name\]
  exit 0
endif

sed -e 's/SetTrueStepLength(/ProposeTrueStepLength(/' $file >temp.file
\mv temp.file $file
sed -e 's/SetLocalEnergyDeposit(/ProposeLocalEnergyDeposit(/' $file >temp.file
\mv temp.file $file
sed -e 's/GetStatusChange(/GetTrackStatus(/' $file >temp.file
\mv temp.file $file
sed -e 's/SetStatusChange(/ProposeTrackStatus(/' $file >temp.file
\mv temp.file $file
sed -e 's/SetSteppingControl(/ProposeSteppingControl(/' $file >temp.file
\mv temp.file $file
sed -e 's/SetParentWeight(/ProposeParentWeight(/' $file >temp.file
\mv temp.file $file
sed -e 's/GetMomentumDirectionChange(/GetMomentumDirection(/' $file >temp.file
\mv temp.file $file
sed -e 's/SetMomentumDirectionChange(/ProposeMomentumDirection(/' $file >temp.file
\mv temp.file $file
sed -e 's/GetMomentumChange(/GetMomentumDirection(/' $file >temp.file
\mv temp.file $file
sed -e 's/SetMomentumChange(/ProposeMomentumDirection(/' $file >temp.file
\mv temp.file $file
sed -e 's/GetPolarizationChange(/GetPolarization(/' $file >temp.file
\mv temp.file $file
sed -e 's/SetPolarizationChange(/ProposePolarization(/' $file >temp.file
\mv temp.file $file
sed -e 's/GetEnergyChange(/GetEnergy(/' $file >temp.file
\mv temp.file $file
sed -e 's/SetEnergyChange(/ProposeEnergy(/' $file >temp.file
\mv temp.file $file
sed -e 's/GetProperTimeChange(/GetProperTime(/' $file >temp.file
\mv temp.file $file
sed -e 's/SetProperTimeChange(/ProposeProperTime(/' $file >temp.file
\mv temp.file $file
sed -e 's/GetPositionChange(/GetPosition(/' $file >temp.file
\mv temp.file $file
sed -e 's/SetPositionChange(/ProposePosition(/' $file >temp.file
\mv temp.file $file
sed -e 's/GetTimeChange(/GetGlobalTime(/' $file >temp.file
\mv temp.file $file
sed -e 's/SetTimeChange(/ProposeGlobalTime(/' $file >temp.file
\mv temp.file $file
sed -e 's/GetMassChange(/GetMass(/' $file >temp.file
\mv temp.file $file
sed -e 's/SetMassChange(/ProposeMass(/' $file >temp.file
\mv temp.file $file
sed -e 's/GetChargeChange(/GetCharge(/' $file >temp.file
\mv temp.file $file
sed -e 's/SetChargeChange(/ProposeCharge(/' $file >temp.file
\mv temp.file $file
sed -e 's/GetWeightChange(/GetWeight(/' $file >temp.file
\mv temp.file $file
sed -e 's/SetWeightChange(/ProposeWeight(/' $file >temp.file
\mv temp.file $file
sed -e 's/GetMaterialChange(/GetMaterialInTouchable(/' $file >temp.file
\mv temp.file $file
sed -e 's/SetMaterialChange(/SetMaterialInTouchable(/' $file >temp.file
\mv temp.file $file
sed -e 's/GetMaterialCutsCoupleChange(/GetMaterialCutsCoupleInTouchable(/' $file >temp.file
\mv temp.file $file
sed -e 's/SetMaterialCutsCoupleChange(/SetMaterialCutsCoupleInTouchable(/' $file >temp.file
\mv temp.file $file

