|
Last change
on this file since 288 was 233, checked in by barrand, 19 years ago |
|
|
-
Property svn:eol-style
set to
native
|
|
File size:
478 bytes
|
| Line | |
|---|
| 1 |
|
|---|
| 2 | // this :
|
|---|
| 3 | #include <G4Lab/TrackingAction.h>
|
|---|
| 4 |
|
|---|
| 5 | // Geant4 :
|
|---|
| 6 | #include <G4TrackingManager.hh>
|
|---|
| 7 |
|
|---|
| 8 | // G4Lab :
|
|---|
| 9 | #include <G4Lab/Trajectory.h>
|
|---|
| 10 |
|
|---|
| 11 | G4Lab::TrackingAction::TrackingAction() {}
|
|---|
| 12 |
|
|---|
| 13 | G4Lab::TrackingAction::~TrackingAction() {}
|
|---|
| 14 |
|
|---|
| 15 | void G4Lab::TrackingAction::PreUserTrackingAction(const G4Track* aTrack){
|
|---|
| 16 | if(!fpTrackingManager) return;
|
|---|
| 17 | // In order to be able to "collect" trajectories
|
|---|
| 18 | // according energy,...
|
|---|
| 19 | fpTrackingManager->SetTrajectory(new G4Lab::Trajectory(aTrack));
|
|---|
| 20 | }
|
|---|
| 21 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.