EDepSimUserTrackingAction.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////
2 // $Id: EDepSim::UserTrackingAction.cc,v 1.6 2007/01/01 05:32:49 mcgrew Exp $
3 //
5 #include "EDepSimTrajectory.hh"
7 #include "EDepSimLog.hh"
8 
9 #include "globals.hh"
10 #include "G4Track.hh"
11 #include "G4TrackingManager.hh"
12 
14 
16 
18  EDepSimTrace("Pre-tracking action");
19  G4VTrajectory* traj = new EDepSim::Trajectory(trk);
20  fpTrackingManager->SetTrajectory(traj);
21  fpTrackingManager->SetStoreTrajectory(true);
23 }
24 
static void Add(G4VTrajectory *traj)
Add a trajectory to the map.
virtual void PreUserTrackingAction(const G4Track *)
#define EDepSimTrace(outStream)
Definition: EDepSimLog.hh:653