Ignore:
Timestamp:
Nov 5, 2010, 3:45:55 PM (14 years ago)
Author:
garnier
Message:

update ti head

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/track/include/G4Step.icc

    r1337 r1340  
    2525//
    2626//
    27 // $Id: G4Step.icc,v 1.19 2008/02/05 01:46:57 kurasige Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     27// $Id: G4Step.icc,v 1.22 2010/10/18 23:52:04 kurasige Exp $
     28// GEANT4 tag $Name: track-V09-03-09 $
    2929//
    3030//
     
    8686 }
    8787
    88 inline
    89  G4ThreeVector G4Step::GetDeltaMomentum() const
    90  {
    91    return fpPostStepPoint->GetMomentum()
    92             - fpPreStepPoint->GetMomentum();
    93  }
    94 
    95 inline
    96  G4double G4Step::GetDeltaEnergy() const
    97  {
    98    return fpPostStepPoint->GetKineticEnergy()
    99             - fpPreStepPoint->GetKineticEnergy();
    100  }
    10188
    10289inline
     
    163150inline
    164151 void G4Step::CopyPostToPreStepPoint( )
    165  {
     152 {
     153   //This method is called at the beggining of each step
    166154   *(fpPreStepPoint) = *(fpPostStepPoint);
    167155   fpPostStepPoint->SetStepStatus(fUndefined);
    168  }
     156   // clear secondary in current
     157   fSecondary->secondaryInCurrent.clear();
     158}
    169159
    170160
     
    222212   fpPreStepPoint->SetWeight(fpTrack->GetWeight());
    223213   
    224    
     214   // clear secondary in current       
     215   fSecondary->secondaryInCurrent.clear();
     216 
    225217   (*fpPostStepPoint) = (*fpPreStepPoint);
    226218 }
     
    251243   fpTrack->SetWeight(fpPostStepPoint->GetWeight());
    252244
     245
    253246   // set velocity
    254247   fpPostStepPoint->SetVelocity(fpTrack->GetVelocity());
    255248}
    256249
    257 inline G4TrackVector* G4Step::GetfSecondary()  {
     250inline   
     251 const std::vector<const G4Track*>* G4Step::GetSecondaryInCurrentStep() const
     252{
     253  return  &fSecondary->secondaryInCurrent;
     254}
     255
     256inline const G4TrackVector* G4Step::GetSecondary() const 
     257{
    258258   return fSecondary;
    259     }
    260 inline G4TrackVector* G4Step::GetSecondary() const {
     259}
     260
     261inline G4TrackVector* G4Step::GetfSecondary() 
     262{
    261263   return fSecondary;
    262     }
    263 inline void G4Step::SetSecondary(G4TrackVector* value)  {
     264}
     265
     266inline void G4Step::SetSecondary(G4TrackVector* value) 
     267{
    264268   fSecondary=value;
    265     }
    266 inline G4TrackVector* G4Step::NewSecondaryVector()  {
     269}
     270
     271inline
     272 G4TrackVector* G4Step::NewSecondaryVector() 
     273{
    267274   fSecondary=new G4TrackVector();
    268275   return fSecondary;
    269     }
     276}
     277
    270278inline void G4Step::DeleteSecondaryVector()  {
    271279   delete fSecondary;
Note: See TracChangeset for help on using the changeset viewer.