Ignore:
Timestamp:
Sep 30, 2010, 2:47:17 PM (14 years ago)
Author:
garnier
Message:

tag geant4.9.4 beta 1 + modifs locales

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/extended/electromagnetic/TestEm9/src/EventAction.cc

    r1230 r1337  
    2424// ********************************************************************
    2525//
    26 // $Id: EventAction.cc,v 1.4 2006/06/29 17:03:06 gunter Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     26// $Id: EventAction.cc,v 1.6 2010/06/07 05:40:46 perl Exp $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
     
    3535
    3636#include "G4UImanager.hh"
    37 #include "G4TrajectoryContainer.hh"
    38 #include "G4Trajectory.hh"
    39 #include "G4VVisManager.hh"
    4037#include "G4Gamma.hh"
    4138#include "G4ios.hh"
     
    9289//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
    9390
    94 void EventAction::EndOfEventAction(const G4Event* evt)
     91void EventAction::EndOfEventAction(const G4Event*)
    9592{
    9693  (HistoManager::GetPointer())->EndOfEvent();
    97   G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
    98 
    99   if(pVVisManager) {
    100     G4TrajectoryContainer* trjc = evt->GetTrajectoryContainer();
    101     G4int n_trajectories = 0;
    102     if (trjc) n_trajectories = trjc->entries();
    103 
    104     for(G4int i=0; i<n_trajectories; i++) {
    105       G4Trajectory* t = (G4Trajectory*)((*(evt->GetTrajectoryContainer()))[i]);
    106       if (drawFlag == "all") t->DrawTrajectory(1000);
    107       else if ((drawFlag == "charged")&&(t->GetCharge() != 0.))
    108                              t->DrawTrajectory(1000);
    109     }
    110   }
    11194
    11295  if(verbose > 0) {
Note: See TracChangeset for help on using the changeset viewer.