- Timestamp:
- Nov 5, 2010, 4:08:39 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/extended/medical/GammaTherapy/src/TrackingAction.cc
r807 r1342 56 56 TrackingAction::TrackingAction(): 57 57 theHisto(Histo::GetPointer()) 58 { ;}58 {} 59 59 60 60 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 61 61 62 62 TrackingAction::~TrackingAction() 63 { ;}63 {} 64 64 65 65 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... … … 68 68 { 69 69 theHisto->ScoreNewTrack(aTrack); 70 G4int pid = aTrack->GetParentID();71 const G4String name = aTrack->GetDefinition()->GetParticleName();72 70 73 71 if(1 < theHisto->GetVerbose() && 74 (theHisto->GetMaxEnergy() < aTrack->GetKineticEnergy() && pid > 0)) 75 { 76 G4cout << "Track #" 77 << aTrack->GetTrackID() << " of " << name 78 << " Emax(MeV)= " << theHisto->GetMaxEnergy()/MeV 79 << " Ekin(MeV)= " << aTrack->GetKineticEnergy()/MeV 80 << " ## EventID= " 81 << (G4EventManager::GetEventManager())->GetConstCurrentEvent() 82 ->GetEventID() 83 << G4endl; 84 } 72 theHisto->GetMaxEnergy() < aTrack->GetKineticEnergy() && 73 aTrack->GetParentID() > 0) 74 { 75 G4cout << "Track #" 76 << aTrack->GetTrackID() << " of " 77 << aTrack->GetParticleDefinition()->GetParticleName() 78 << " Emax(MeV)= " << theHisto->GetMaxEnergy()/MeV 79 << " Ekin(MeV)= " << aTrack->GetKineticEnergy()/MeV 80 << " ## EventID= " 81 << (G4EventManager::GetEventManager())->GetConstCurrentEvent()->GetEventID() 82 << G4endl; 83 } 85 84 86 85 }
Note: See TracChangeset
for help on using the changeset viewer.