Changeset 1196 for trunk/source/track/include
- Timestamp:
- Nov 25, 2009, 5:13:58 PM (15 years ago)
- Location:
- trunk/source/track/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/track/include/G4ParticleChangeForLoss.hh
r1058 r1196 25 25 // 26 26 // 27 // $Id: G4ParticleChangeForLoss.hh,v 1.2 0 2008/01/11 19:57:12vnivanch Exp $28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$27 // $Id: G4ParticleChangeForLoss.hh,v 1.22 2009/06/17 17:25:57 vnivanch Exp $ 28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // … … 42 42 // and ProposeWeight for PostStep 43 43 // 07.06.06 V.Ivanchenko RemoveProposedMomentumDirection from AlongStep 44 // 28.08.06 V.Ivanchenko Add access to current track and polarizaion 44 // 28.08.06 V.Ivanchenko Added access to current track and polarizaion 45 // 17.06.09 V.Ivanchenko Added SetLowEnergyLimit method 45 46 // 46 47 // ------------------------------------------------------------ … … 108 109 const G4Track* GetCurrentTrack() const; 109 110 111 void SetLowEnergyLimit(G4double elimit); 112 110 113 virtual void DumpInfo() const; 111 114 … … 125 128 G4double proposedKinEnergy; 126 129 // The final kinetic energy of the current particle. 130 131 G4double lowEnergyLimit; 132 // The limit kinetic energy below which particle is stopped 127 133 128 134 G4double currentCharge; … … 263 269 264 270 // update kinetic energy and charge 265 if (kinEnergy < DBL_MIN) {271 if (kinEnergy < lowEnergyLimit) { 266 272 theLocalEnergyDeposit += kinEnergy; 267 273 kinEnergy = 0.0; … … 311 317 } 312 318 319 inline void G4ParticleChangeForLoss::SetLowEnergyLimit(G4double elimit) 320 { 321 lowEnergyLimit = elimit; 322 } 323 313 324 #endif 314 325 -
trunk/source/track/include/G4VUserTrackInformation.hh
r1058 r1196 25 25 // 26 26 // 27 // $Id: G4VUserTrackInformation.hh,v 1. 6 2006/06/29 21:14:59 gunterExp $28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$27 // $Id: G4VUserTrackInformation.hh,v 1.8 2009/10/19 17:11:43 kurasige Exp $ 28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // … … 57 57 #define G4VUserTrackInformation_H 1 58 58 59 #include "globals.hh" 60 59 61 class G4VUserTrackInformation 60 { 61 public: 62 { 63 public: // With Description 62 64 G4VUserTrackInformation(); 65 G4VUserTrackInformation(const G4String& infoType); 66 // String is provided to indicate Type of UserTrackInfo class 67 // User is recommended to set the type of his/her class 68 63 69 virtual ~G4VUserTrackInformation(); 64 70 65 public:66 71 virtual void Print() const = 0; 72 73 const G4String& GetType() const; 74 // get Type of this UserTrackInfo 75 76 protected: 77 G4String fType; 67 78 }; 68 79 80 inline 81 const G4String& G4VUserTrackInformation::GetType() const 82 { 83 return fType; 84 } 85 69 86 #endif 70 87
Note: See TracChangeset
for help on using the changeset viewer.