Ignore:
Timestamp:
Nov 5, 2010, 4:08:39 PM (14 years ago)
Author:
garnier
Message:

update ti head

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/extended/medical/GammaTherapy/src/TrackingAction.cc

    r807 r1342  
    5656TrackingAction::TrackingAction():
    5757  theHisto(Histo::GetPointer())
    58 {;}
     58{}
    5959
    6060//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
    6161
    6262TrackingAction::~TrackingAction()
    63 {;}
     63{}
    6464
    6565//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
     
    6868{
    6969  theHisto->ScoreNewTrack(aTrack);
    70   G4int pid = aTrack->GetParentID();
    71   const G4String name = aTrack->GetDefinition()->GetParticleName();
    7270
    7371  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    }
    8584
    8685}
Note: See TracChangeset for help on using the changeset viewer.