Changeset 1337 for trunk/examples/advanced/xray_fluorescence
- Timestamp:
- Sep 30, 2010, 2:47:17 PM (14 years ago)
- Location:
- trunk/examples/advanced/xray_fluorescence
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/advanced/xray_fluorescence/History
r1313 r1337 1 1 # $Id: History,v 1.10 2010/06/06 06:25:35 perl Exp $ 2 2 # ------------------------------------------------------------------- 3 # GEANT4 tag $Name: geant4-09-04-beta- cand-00$3 # GEANT4 tag $Name: geant4-09-04-beta-01 $ 4 4 # ------------------------------------------------------------------- 5 5 -
trunk/examples/advanced/xray_fluorescence/src/XrayFluoEventAction.cc
r1230 r1337 51 51 #include "G4HCofThisEvent.hh" 52 52 #include "G4VHitsCollection.hh" 53 #include "G4TrajectoryContainer.hh"54 #include "G4Trajectory.hh"55 #include "G4VVisManager.hh"56 53 #include "G4SDManager.hh" 57 54 #include "G4UImanager.hh" … … 203 200 } 204 201 } 205 206 // extract the trajectories and draw them207 208 if (G4VVisManager::GetConcreteInstance())209 {210 211 G4TrajectoryContainer * trajectoryContainer = evt->GetTrajectoryContainer();212 G4int n_trajectories = 0;213 if (trajectoryContainer) n_trajectories = trajectoryContainer->size();214 215 for (G4int i=0; i<n_trajectories; i++)216 { G4Trajectory* trj = (G4Trajectory*)((*(evt->GetTrajectoryContainer()))[i]);217 if (drawFlag == "all") trj->DrawTrajectory(50);218 else if ((drawFlag == "charged")&&(trj->GetCharge() != 0.))219 trj->DrawTrajectory(50);220 else if ((drawFlag == "neutral")&&(trj->GetCharge() == 0.))221 trj->DrawTrajectory(50);222 }223 }224 202 } 225 203
Note: See TracChangeset
for help on using the changeset viewer.