Ignore:
Timestamp:
Sep 30, 2010, 2:47:17 PM (14 years ago)
Author:
garnier
Message:

tag geant4.9.4 beta 1 + modifs locales

Location:
trunk/examples/advanced/xray_fluorescence
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/advanced/xray_fluorescence/History

    r1313 r1337  
    11# $Id: History,v 1.10 2010/06/06 06:25:35 perl Exp $
    22# -------------------------------------------------------------------
    3 # GEANT4 tag $Name: geant4-09-04-beta-cand-00 $
     3# GEANT4 tag $Name: geant4-09-04-beta-01 $
    44# -------------------------------------------------------------------
    55
  • trunk/examples/advanced/xray_fluorescence/src/XrayFluoEventAction.cc

    r1230 r1337  
    5151#include "G4HCofThisEvent.hh"
    5252#include "G4VHitsCollection.hh"
    53 #include "G4TrajectoryContainer.hh"
    54 #include "G4Trajectory.hh"
    55 #include "G4VVisManager.hh"
    5653#include "G4SDManager.hh"
    5754#include "G4UImanager.hh"
     
    203200      }
    204201  } 
    205 
    206   // extract the trajectories and draw them
    207  
    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     }             
    224202}
    225203
Note: See TracChangeset for help on using the changeset viewer.