43 secondaryInCurrentStep =
new std::vector<const G4Track*>;
49 delete fpPreStepPoint;
50 fpPreStepPoint =
nullptr;
51 delete fpPostStepPoint;
52 fpPostStepPoint =
nullptr;
54 secondaryInCurrentStep->clear();
55 delete secondaryInCurrentStep;
56 secondaryInCurrentStep =
nullptr;
58 if(fSecondary !=
nullptr)
68 : fTotalEnergyDeposit(right.fTotalEnergyDeposit)
69 , fNonIonizingEnergyDeposit(right.fNonIonizingEnergyDeposit)
70 , fStepLength(right.fStepLength)
71 , fpTrack(right.fpTrack)
72 , fpSteppingControlFlag(right.fpSteppingControlFlag)
73 , fFirstStepInVolume(right.fFirstStepInVolume)
74 , fLastStepInVolume(right.fLastStepInVolume)
75 , nSecondaryByLastStep(right.nSecondaryByLastStep)
76 , secondaryInCurrentStep(right.secondaryInCurrentStep)
77 , fpVectorOfAuxiliaryPointsPointer(right.fpVectorOfAuxiliaryPointsPointer)
79 if(right.fpPreStepPoint !=
nullptr)
81 fpPreStepPoint =
new G4StepPoint(*(right.fpPreStepPoint));
87 if(right.fpPostStepPoint !=
nullptr)
89 fpPostStepPoint =
new G4StepPoint(*(right.fpPostStepPoint));
96 if(right.fSecondary !=
nullptr)
106 secondaryInCurrentStep =
new std::vector<const G4Track*>;
116 fStepLength = right.fStepLength;
117 fpTrack = right.fpTrack;
118 fpSteppingControlFlag = right.fpSteppingControlFlag;
119 fFirstStepInVolume = right.fFirstStepInVolume;
120 fLastStepInVolume = right.fLastStepInVolume;
121 nSecondaryByLastStep = right.nSecondaryByLastStep;
122 secondaryInCurrentStep = right.secondaryInCurrentStep;
123 fpVectorOfAuxiliaryPointsPointer = right.fpVectorOfAuxiliaryPointsPointer;
125 if(fpPreStepPoint !=
nullptr)
127 delete fpPreStepPoint;
129 if(right.fpPreStepPoint !=
nullptr)
131 fpPreStepPoint =
new G4StepPoint(*(right.fpPreStepPoint));
137 if(fpPostStepPoint !=
nullptr)
139 delete fpPostStepPoint;
141 if(right.fpPostStepPoint !=
nullptr)
143 fpPostStepPoint =
new G4StepPoint(*(right.fpPostStepPoint));
150 if(fSecondary !=
nullptr)
155 if(right.fSecondary !=
nullptr)
165 if(secondaryInCurrentStep !=
nullptr)
167 secondaryInCurrentStep->clear();
168 delete secondaryInCurrentStep;
170 secondaryInCurrentStep =
new std::vector<const G4Track*>;
184 "This method is obsolete and will be removed soon");
200 "This method is obsolete and will be removed soon");
211 secondaryInCurrentStep->clear();
212 G4int nSecondary = fSecondary->size();
213 for(
G4int i = nSecondaryByLastStep; i < nSecondary; ++i)
215 secondaryInCurrentStep->push_back((*fSecondary)[i]);
217 return secondaryInCurrentStep;
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::vector< G4Track * > G4TrackVector
G4ThreeVector GetMomentum() const
G4double GetKineticEnergy() const
G4double GetDeltaEnergy() const
G4ThreeVector GetDeltaMomentum() const
G4Step & operator=(const G4Step &)
const std::vector< const G4Track * > * GetSecondaryInCurrentStep() const
G4double fNonIonizingEnergyDeposit
G4double fTotalEnergyDeposit