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/exoticphysics/monopole/src/EventAction.cc

    r1230 r1337  
    2424// ********************************************************************
    2525//
    26 // $Id: EventAction.cc,v 1.1 2007/08/16 10:32:04 vnivanch Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     26// $Id: EventAction.cc,v 1.3 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 "G4Event.hh"
    37 #include "G4TrajectoryContainer.hh"
    38 #include "G4Trajectory.hh"
    39 #include "G4VVisManager.hh"
    4037
    4138//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
     
    6663//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
    6764
    68 void EventAction::EndOfEventAction(const G4Event* evt)
     65void EventAction::EndOfEventAction(const G4Event*)
    6966{
    70   if (G4VVisManager::GetConcreteInstance())
    71   {
    72    G4TrajectoryContainer* trajectoryContainer = evt->GetTrajectoryContainer();
    73    G4int n_trajectories = 0;
    74    if (trajectoryContainer) n_trajectories = trajectoryContainer->entries(); 
    75    for(G4int i=0; i<n_trajectories; i++)
    76       {
    77         G4Trajectory* trj = (G4Trajectory*) ((*(evt->GetTrajectoryContainer()))[i]);
    78         if (drawFlag == "all")
    79           trj->DrawTrajectory(1000);
    80         else
    81           if ((drawFlag == "charged") && (trj->GetCharge() != 0.))
    82             trj->DrawTrajectory(1000);
    83       }
    84   }
    8567}
    8668
Note: See TracChangeset for help on using the changeset viewer.