- Timestamp:
- Jun 14, 2010, 3:54:58 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/advanced/gammaray_telescope/src/GammaRayTelEventAction.cc
r1230 r1313 25 25 // 26 26 // 27 // $Id: GammaRayTelEventAction.cc,v 1. 19 2006/06/29 15:56:39 gunterExp $28 // GEANT4 tag $Name: geant4-09-0 3-cand-01$27 // $Id: GammaRayTelEventAction.cc,v 1.20 2010/06/06 06:18:54 perl Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-cand-00 $ 29 29 // ------------------------------------------------------------ 30 30 // GEANT 4 class implementation file … … 54 54 #include "G4HCofThisEvent.hh" 55 55 #include "G4VHitsCollection.hh" 56 #include "G4TrajectoryContainer.hh"57 #include "G4Trajectory.hh"58 #include "G4VVisManager.hh"59 56 #include "G4SDManager.hh" 60 57 #include "G4UImanager.hh" … … 243 240 } 244 241 } 245 246 if(G4VVisManager::GetConcreteInstance()) { 247 for(G4int i=0; i<n_trajectories; i++) { 248 G4Trajectory* trj = (G4Trajectory *)((*(evt->GetTrajectoryContainer()))[i]); 249 if (drawFlag == "all") trj->DrawTrajectory(50); 250 else if ((drawFlag == "charged")&&(trj->GetCharge() != 0.)) 251 trj->DrawTrajectory(50); 252 } 253 } 254 } 255 256 257 258 259 260 261 262 263 264 265 266 267 242 } 243 244 245 246 247 248 249 250 251 252 253 254 255
Note: See TracChangeset
for help on using the changeset viewer.