940 oldprc =
G4cout.precision(16);
944 G4cout <<
" Step Length (mm) : " 946 G4cout <<
" Energy Deposit (MeV) : " <<
fStep->GetTotalEnergyDeposit()
950 G4cout <<
" -------------------------------------------------------" 951 <<
"----------------" <<
G4endl;
952 G4cout <<
" StepPoint Information " << std::setw(20) <<
"PreStep" 953 << std::setw(20) <<
"PostStep" <<
G4endl;
954 G4cout <<
" -------------------------------------------------------" 955 <<
"----------------" <<
G4endl;
956 G4cout <<
" Position - x (mm) : " << std::setw(20)
957 <<
fStep->GetPreStepPoint()->GetPosition().x() << std::setw(20)
958 <<
fStep->GetPostStepPoint()->GetPosition().x() <<
G4endl;
959 G4cout <<
" Position - y (mm) : " << std::setw(20)
960 <<
fStep->GetPreStepPoint()->GetPosition().y() << std::setw(20)
961 <<
fStep->GetPostStepPoint()->GetPosition().y() <<
G4endl;
962 G4cout <<
" Position - z (mm) : " << std::setw(20)
963 <<
fStep->GetPreStepPoint()->GetPosition().z() << std::setw(20)
964 <<
fStep->GetPostStepPoint()->GetPosition().z() <<
G4endl;
965 G4cout <<
" Global Time (ns) : " << std::setw(20)
966 <<
fStep->GetPreStepPoint()->GetGlobalTime() << std::setw(20)
967 <<
fStep->GetPostStepPoint()->GetGlobalTime() <<
G4endl;
968 G4cout <<
" Local Time (ns) : " << std::setw(20)
969 <<
fStep->GetPreStepPoint()->GetLocalTime() << std::setw(20)
970 <<
fStep->GetPostStepPoint()->GetLocalTime() <<
G4endl;
971 G4cout <<
" Proper Time (ns) : " << std::setw(20)
972 <<
fStep->GetPreStepPoint()->GetProperTime() << std::setw(20)
973 <<
fStep->GetPostStepPoint()->GetProperTime() <<
G4endl;
974 G4cout <<
" Momentum Direct - x : " << std::setw(20)
975 <<
fStep->GetPreStepPoint()->GetMomentumDirection().x()
977 <<
fStep->GetPostStepPoint()->GetMomentumDirection().x() <<
G4endl;
978 G4cout <<
" Momentum Direct - y : " << std::setw(20)
979 <<
fStep->GetPreStepPoint()->GetMomentumDirection().y()
981 <<
fStep->GetPostStepPoint()->GetMomentumDirection().y() <<
G4endl;
982 G4cout <<
" Momentum Direct - z : " << std::setw(20)
983 <<
fStep->GetPreStepPoint()->GetMomentumDirection().z()
985 <<
fStep->GetPostStepPoint()->GetMomentumDirection().z() <<
G4endl;
986 G4cout <<
" Momentum - x (MeV/c): " << std::setw(20)
987 <<
fStep->GetPreStepPoint()->GetMomentum().x() << std::setw(20)
988 <<
fStep->GetPostStepPoint()->GetMomentum().x() <<
G4endl;
989 G4cout <<
" Momentum - y (MeV/c): " << std::setw(20)
990 <<
fStep->GetPreStepPoint()->GetMomentum().y() << std::setw(20)
991 <<
fStep->GetPostStepPoint()->GetMomentum().y() <<
G4endl;
992 G4cout <<
" Momentum - z (MeV/c): " << std::setw(20)
993 <<
fStep->GetPreStepPoint()->GetMomentum().z() << std::setw(20)
994 <<
fStep->GetPostStepPoint()->GetMomentum().z() <<
G4endl;
995 G4cout <<
" Total Energy (MeV) : " << std::setw(20)
996 <<
fStep->GetPreStepPoint()->GetTotalEnergy() << std::setw(20)
997 <<
fStep->GetPostStepPoint()->GetTotalEnergy() <<
G4endl;
998 G4cout <<
" Kinetic Energy (MeV): " << std::setw(20)
999 <<
fStep->GetPreStepPoint()->GetKineticEnergy() << std::setw(20)
1000 <<
fStep->GetPostStepPoint()->GetKineticEnergy() <<
G4endl;
1001 G4cout <<
" Velocity (mm/ns) : " << std::setw(20)
1002 <<
fStep->GetPreStepPoint()->GetVelocity() << std::setw(20)
1003 <<
fStep->GetPostStepPoint()->GetVelocity() <<
G4endl;
1004 G4cout <<
" Volume Name : " << std::setw(20)
1005 <<
fStep->GetPreStepPoint()->GetPhysicalVolume()->GetName();
1006 if(
fStep->GetPostStepPoint()->GetPhysicalVolume())
1008 volName =
fStep->GetPostStepPoint()->GetPhysicalVolume()->GetName();
1012 volName =
"OutOfWorld";
1015 G4cout <<
" Safety (mm) : " << std::setw(20)
1016 <<
fStep->GetPreStepPoint()->GetSafety() << std::setw(20)
1017 <<
fStep->GetPostStepPoint()->GetSafety() <<
G4endl;
1018 G4cout <<
" Polarization - x : " << std::setw(20)
1019 <<
fStep->GetPreStepPoint()->GetPolarization().x() << std::setw(20)
1020 <<
fStep->GetPostStepPoint()->GetPolarization().x() <<
G4endl;
1021 G4cout <<
" Polarization - y : " << std::setw(20)
1022 <<
fStep->GetPreStepPoint()->GetPolarization().y() << std::setw(20)
1023 <<
fStep->GetPostStepPoint()->GetPolarization().y() <<
G4endl;
1024 G4cout <<
" Polarization - Z : " << std::setw(20)
1025 <<
fStep->GetPreStepPoint()->GetPolarization().z() << std::setw(20)
1026 <<
fStep->GetPostStepPoint()->GetPolarization().z() <<
G4endl;
1027 G4cout <<
" Weight : " << std::setw(20)
1028 <<
fStep->GetPreStepPoint()->GetWeight() << std::setw(20)
1029 <<
fStep->GetPostStepPoint()->GetWeight() <<
G4endl;
1030 G4cout <<
" Step Status : ";
1031 G4StepStatus tStepStatus =
fStep->GetPreStepPoint()->GetStepStatus();
1032 if(tStepStatus == fGeomBoundary)
1034 G4cout << std::setw(20) <<
"Geom Limit";
1036 else if(tStepStatus == fAlongStepDoItProc)
1038 G4cout << std::setw(20) <<
"AlongStep Proc.";
1040 else if(tStepStatus == fPostStepDoItProc)
1042 G4cout << std::setw(20) <<
"PostStep Proc";
1044 else if(tStepStatus == fAtRestDoItProc)
1046 G4cout << std::setw(20) <<
"AtRest Proc";
1048 else if(tStepStatus == fUndefined)
1050 G4cout << std::setw(20) <<
"Undefined";
1053 tStepStatus =
fStep->GetPostStepPoint()->GetStepStatus();
1054 if(tStepStatus == fGeomBoundary)
1056 G4cout << std::setw(20) <<
"Geom Limit";
1058 else if(tStepStatus == fAlongStepDoItProc)
1060 G4cout << std::setw(20) <<
"AlongStep Proc.";
1062 else if(tStepStatus == fPostStepDoItProc)
1064 G4cout << std::setw(20) <<
"PostStep Proc";
1066 else if(tStepStatus == fAtRestDoItProc)
1068 G4cout << std::setw(20) <<
"AtRest Proc";
1070 else if(tStepStatus == fUndefined)
1072 G4cout << std::setw(20) <<
"Undefined";
1076 G4cout <<
" Process defined Step: ";
1077 if(
fStep->GetPreStepPoint()->GetProcessDefinedStep() == 0)
1079 G4cout << std::setw(20) <<
"Undefined";
1085 <<
fStep->GetPreStepPoint()->GetProcessDefinedStep()->GetProcessName();
1087 if(
fStep->GetPostStepPoint()->GetProcessDefinedStep() == 0)
1089 G4cout << std::setw(20) <<
"Undefined";
1095 <<
fStep->GetPostStepPoint()->GetProcessDefinedStep()->GetProcessName();
1097 G4cout.precision(oldprc);
1100 G4cout <<
" -------------------------------------------------------" 1101 <<
"----------------" <<
G4endl;
G4GLOB_DLL std::ostream G4cout