Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
edep-sim
src
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
//
4
#include "
EDepSimUserTrackingAction.hh
"
5
#include "
EDepSimTrajectory.hh
"
6
#include "
EDepSimTrajectoryMap.hh
"
7
#include "
EDepSimLog.hh
"
8
9
#include "globals.hh"
10
#include "G4Track.hh"
11
#include "G4TrackingManager.hh"
12
13
EDepSim::UserTrackingAction::UserTrackingAction
() {}
14
15
EDepSim::UserTrackingAction::~UserTrackingAction
() {}
16
17
void
EDepSim::UserTrackingAction::PreUserTrackingAction
(
const
G4Track*
trk
) {
18
EDepSimTrace
(
"Pre-tracking action"
);
19
G4VTrajectory* traj =
new
EDepSim::Trajectory
(trk);
20
fpTrackingManager->SetTrajectory(traj);
21
fpTrackingManager->SetStoreTrajectory(
true
);
22
EDepSim::TrajectoryMap::Add
(traj);
23
}
24
EDepSim::Trajectory
Definition:
EDepSimTrajectory.hh:28
EDepSimTrajectory.hh
trk
Definition:
TrackContainmentAlg.hh:22
EDepSim::UserTrackingAction::UserTrackingAction
UserTrackingAction()
Definition:
EDepSimUserTrackingAction.cc:13
EDepSimUserTrackingAction.hh
EDepSimLog.hh
EDepSim::TrajectoryMap::Add
static void Add(G4VTrajectory *traj)
Add a trajectory to the map.
Definition:
EDepSimTrajectoryMap.cc:17
EDepSim::UserTrackingAction::PreUserTrackingAction
virtual void PreUserTrackingAction(const G4Track *)
Definition:
EDepSimUserTrackingAction.cc:17
EDepSimTrace
#define EDepSimTrace(outStream)
Definition:
EDepSimLog.hh:653
EDepSimTrajectoryMap.hh
EDepSim::UserTrackingAction::~UserTrackingAction
virtual ~UserTrackingAction()
Definition:
EDepSimUserTrackingAction.cc:15
Generated by
1.8.11