Ignore:
Timestamp:
Jun 14, 2010, 3:54:58 PM (14 years ago)
Author:
garnier
Message:

geant4.9.4 beta rc0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/advanced/composite_calorimeter/src/CCalEndOfEventAction.cc

    r1230 r1313  
    4848#include <map>
    4949
    50 #include "G4TrajectoryContainer.hh"
    51 #include "G4Trajectory.hh"
    52 #include "G4VVisManager.hh"
    53 
    5450#ifdef G4ANALYSIS_USE
    5551#include "CCalAnalysis.hh"
     
    247243  }
    248244#endif
    249 
    250   //A.R. Add to visualize tracks
    251   // extract the trajectories and draw them
    252   if (G4VVisManager::GetConcreteInstance()) {
    253     G4TrajectoryContainer* trajectoryContainer = evt->GetTrajectoryContainer();
    254     G4int n_trajectories = 0;
    255     if (trajectoryContainer) n_trajectories = trajectoryContainer->entries();
    256     for (G4int i=0; i<n_trajectories; i++) {
    257       G4Trajectory* trj = (G4Trajectory*) ((*(evt->GetTrajectoryContainer()))[i]);
    258       trj->DrawTrajectory(50); // Draw all tracks
    259       // if ( trj->GetCharge() != 0. ) trj->DrawTrajectory(50); // Draw only charged tracks
    260       // if ( trj->GetCharge() == 0. ) trj->DrawTrajectory(50); // Draw only neutral tracks
    261     }
    262   }
    263 
    264245}
    265246
Note: See TracChangeset for help on using the changeset viewer.