Changeset 1313 for trunk/examples/advanced/composite_calorimeter/src
- Timestamp:
- Jun 14, 2010, 3:54:58 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/advanced/composite_calorimeter/src/CCalEndOfEventAction.cc
r1230 r1313 48 48 #include <map> 49 49 50 #include "G4TrajectoryContainer.hh"51 #include "G4Trajectory.hh"52 #include "G4VVisManager.hh"53 54 50 #ifdef G4ANALYSIS_USE 55 51 #include "CCalAnalysis.hh" … … 247 243 } 248 244 #endif 249 250 //A.R. Add to visualize tracks251 // extract the trajectories and draw them252 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 tracks259 // if ( trj->GetCharge() != 0. ) trj->DrawTrajectory(50); // Draw only charged tracks260 // if ( trj->GetCharge() == 0. ) trj->DrawTrajectory(50); // Draw only neutral tracks261 }262 }263 264 245 } 265 246
Note: See TracChangeset
for help on using the changeset viewer.