55 : fTotalEnergyDeposit(0.0),fNonIonizingEnergyDeposit(0.0),
56 fStepLength(0.), fpTrack(0),
58 fFirstStepInVolume(false),
59 fLastStepInVolume(false),
61 nSecondaryByLastStep(0), secondaryInCurrentStep(),
62 fpVectorOfAuxiliaryPointsPointer(0)
67 secondaryInCurrentStep =
new std::vector<CT>;
74 delete fpPreStepPoint;
75 delete fpPostStepPoint;
77 secondaryInCurrentStep->clear();
78 delete secondaryInCurrentStep;
80 if (fSecondary !=0 ) {
91 : fTotalEnergyDeposit(right.fTotalEnergyDeposit),
92 fNonIonizingEnergyDeposit(right.fNonIonizingEnergyDeposit),
93 fStepLength(right.fStepLength),
94 fpTrack(right.fpTrack),
95 fpSteppingControlFlag(right.fpSteppingControlFlag),
96 fFirstStepInVolume(right.fFirstStepInVolume),
97 fLastStepInVolume(right.fLastStepInVolume),
98 nSecondaryByLastStep(right.nSecondaryByLastStep),
99 secondaryInCurrentStep(right.secondaryInCurrentStep),
100 fpVectorOfAuxiliaryPointsPointer(right.fpVectorOfAuxiliaryPointsPointer)
102 if (right.fpPreStepPoint !=0) {
103 fpPreStepPoint =
new G4StepPoint(*(right.fpPreStepPoint));
107 if (right.fpPostStepPoint !=0) {
108 fpPostStepPoint =
new G4StepPoint(*(right.fpPostStepPoint));
113 if (right.fSecondary !=0) {
118 secondaryInCurrentStep =
new std::vector<CT>;
128 fStepLength = right.fStepLength;
129 fpTrack = right.fpTrack;
130 fpSteppingControlFlag = right.fpSteppingControlFlag;
131 fFirstStepInVolume = right.fFirstStepInVolume;
132 fLastStepInVolume = right.fLastStepInVolume;
133 nSecondaryByLastStep = right.nSecondaryByLastStep;
134 secondaryInCurrentStep = right.secondaryInCurrentStep;
135 fpVectorOfAuxiliaryPointsPointer = right.fpVectorOfAuxiliaryPointsPointer;
137 if (fpPreStepPoint !=0 )
delete fpPreStepPoint;
138 if (right.fpPreStepPoint !=0) {
139 fpPreStepPoint =
new G4StepPoint(*(right.fpPreStepPoint));
143 if (fpPostStepPoint !=0 )
delete fpPostStepPoint;
144 if (right.fpPostStepPoint !=0) {
145 fpPostStepPoint =
new G4StepPoint(*(right.fpPostStepPoint));
149 if (right.fSecondary !=0) {
162 static G4bool isFirstTime =
true;
167 "This method is obsolete and will be removed soon");
179 static G4bool isFirstTime =
true;
184 "This method is obsolete and will be removed soon");
196 secondaryInCurrentStep->clear();
197 G4int nSecondary = fSecondary->size();
198 for (
G4int i=nSecondaryByLastStep; i<nSecondary; i++) {
199 secondaryInCurrentStep->push_back((*fSecondary)[i]);
201 return secondaryInCurrentStep;
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
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)