Changeset 1340 for trunk/source/track/include/G4Step.hh
- Timestamp:
- Nov 5, 2010, 3:45:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/track/include/G4Step.hh
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4Step.hh,v 1. 19 2008/01/12 12:00:25kurasige Exp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4Step.hh,v 1.22 2010/10/18 23:52:04 kurasige Exp $ 28 // GEANT4 tag $Name: track-V09-03-09 $ 29 29 // 30 30 // … … 121 121 void SetControlFlag(G4SteppingControl StepControlFlag); 122 122 123 // difference of position, time, momentum and energy 124 G4ThreeVector GetDeltaPosition() const; 125 G4double GetDeltaTime() const; 126 127 G4ThreeVector GetDeltaMomentum() const; 128 G4double GetDeltaEnergy() const; 129 130 // manipulation of total energy deposit 123 // manipulation of total energy deposit 131 124 void AddTotalEnergyDeposit(G4double value); 132 125 void ResetTotalEnergyDeposit(); … … 138 131 139 132 // Get/Set/Clear flag for initial/last step 133 // NOTE: following flags are not used 134 // will be ready in later release 140 135 G4bool IsFirstStepInVolume() const; 141 136 G4bool IsLastStepInVolume() const; … … 145 140 void SetLastStepFlag(); 146 141 void ClearLastStepFlag(); 142 143 // difference of position, time, momentum and energy 144 G4ThreeVector GetDeltaPosition() const; 145 G4double GetDeltaTime() const; 146 147 // These methods will be deleted 148 // NOTE: use GetTotalEnergyDeposit() to obtain 149 // energy loss in the material 150 // 151 G4ThreeVector GetDeltaMomentum() const; 152 G4double GetDeltaEnergy() const; 153 147 154 148 155 // Other member functions … … 191 198 // Secondary buckets 192 199 public: 193 G4TrackVector* GetSecondary() const; 200 // secodaries in the current step 201 const std::vector<const G4Track*>* GetSecondaryInCurrentStep() const; 202 203 // NOTE: Secondary bucket of the Step contains 204 // all secondaries during tracking the current track 205 // (i.e. NOT secondaries produced in the current step) 206 // all following methods give same object (i.e. G4TrackVector ) 207 // but 2nd one will create bucket in addition 208 const G4TrackVector* GetSecondary() const ; 194 209 G4TrackVector* GetfSecondary(); 195 210 G4TrackVector* NewSecondaryVector(); 211 212 // just delete secondary bucket 213 // NOTE: G4Track objects inside the bucket are not deleted 196 214 void DeleteSecondaryVector(); 215 216 // Add secondary tracks to the bucket 197 217 void SetSecondary( G4TrackVector* value); 198 private: 218 219 private: 220 // Secondaty bucket implemented by using std::vector of G4Track* 199 221 G4TrackVector* fSecondary; 200 222
Note: See TracChangeset
for help on using the changeset viewer.