00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045 #include "G4StepPoint.hh"
00046
00048 G4StepPoint::G4StepPoint()
00050 : fGlobalTime(0.), fLocalTime(0.), fProperTime(0.),
00051 fKineticEnergy(0.), fVelocity(0.), fpTouchable(0), fpMaterial(0),
00052 fpMaterialCutsCouple(0), fpSensitiveDetector(0), fSafety(0.),
00053 fStepStatus(fUndefined),fpProcessDefinedStep(0),
00054 fMass(0.), fCharge(0.), fMagneticMoment(0.),
00055 fWeight(0.)
00056 {
00057 }
00058
00060 G4StepPoint::G4StepPoint(const G4StepPoint &right) :
00062 fPosition(right.fPosition),
00063 fGlobalTime(right.fGlobalTime),
00064 fLocalTime(right.fLocalTime),
00065 fProperTime(right.fProperTime),
00066 fMomentumDirection(right.fMomentumDirection),
00067 fKineticEnergy(right.fKineticEnergy),
00068 fVelocity(right.fVelocity),
00069 fpTouchable(right.fpTouchable),
00070 fpMaterial(right.fpMaterial),
00071 fpMaterialCutsCouple(right.fpMaterialCutsCouple),
00072 fpSensitiveDetector(right.fpSensitiveDetector),
00073 fSafety(right.fSafety),
00074 fPolarization(right.fPolarization),
00075 fStepStatus(right.fStepStatus),
00076 fpProcessDefinedStep(right.fpProcessDefinedStep),
00077 fMass(right.fMass),
00078 fCharge(right.fCharge),
00079 fMagneticMoment(right.fMagneticMoment),
00080 fWeight(right.fWeight)
00081 {
00082 }
00083
00085 G4StepPoint & G4StepPoint::operator=(const G4StepPoint &right)
00086 {
00087 if (this != &right) {
00088 fPosition = right.fPosition;
00089 fGlobalTime = right.fGlobalTime;
00090 fLocalTime = right.fLocalTime;
00091 fProperTime = right.fProperTime;
00092 fMomentumDirection = right.fMomentumDirection;
00093 fKineticEnergy = right.fKineticEnergy;
00094 fVelocity = right.fVelocity;
00095 fpTouchable = right.fpTouchable;
00096 fpMaterial = right.fpMaterial;
00097 fpMaterialCutsCouple = right.fpMaterialCutsCouple;
00098 fpSensitiveDetector = right.fpSensitiveDetector;
00099 fSafety = right.fSafety;
00100 fPolarization = right.fPolarization;
00101 fStepStatus = right.fStepStatus;
00102 fpProcessDefinedStep = right.fpProcessDefinedStep;
00103 fMass = right.fMass;
00104 fCharge = right.fCharge;
00105 fMagneticMoment = right.fMagneticMoment;
00106 fWeight = right.fWeight;
00107 }
00108 return *this;
00109 }