MyTrackingAction Class Reference

#include <MyTrackingAction.hh>

List of all members.

Public Member Functions

 MyTrackingAction ()
 ~MyTrackingAction ()
void PreUserTrackingAction (const G4Track *)
void PostUserTrackingAction (const G4Track *)

Detailed Description

Definition at line 39 of file MyTrackingAction.hh.


Constructor & Destructor Documentation

MyTrackingAction::MyTrackingAction (  ) 

Definition at line 42 of file MyTrackingAction.cc.

00043 { }

MyTrackingAction::~MyTrackingAction (  )  [inline]

Definition at line 44 of file MyTrackingAction.hh.

00044 {};


Member Function Documentation

void MyTrackingAction::PostUserTrackingAction ( const G4Track *  aTrack  ) 

Definition at line 73 of file MyTrackingAction.cc.

References MyAnalysisSvc::GetMyAnalysisSvc(), and MyAnalysisSvc::PostUserTrackingAction().

00073                                                                    {
00074         MyAnalysisSvc::GetMyAnalysisSvc()->PostUserTrackingAction(aTrack);
00075 //  G4int trackID= aTrack->GetTrackID(); //G4 track ID of current track.
00076 //      G4int   nbSteps = aTrack->GetCurrentStepNumber();
00077 //      G4double trackLength = aTrack->GetTrackLength();
00078 //      std::cout<<"End of track "<<trackID<<std::endl;
00079 //      std::cout<<"    number of steps: "<<nbSteps<<std::endl;
00080 //      std::cout<<"    track length: "<<trackLength/mm<<"mm"<<std::endl;
00081 }

void MyTrackingAction::PreUserTrackingAction ( const G4Track *  aTrack  ) 

Definition at line 45 of file MyTrackingAction.cc.

References MyAnalysisSvc::GetMyAnalysisSvc(), and MyAnalysisSvc::PreUserTrackingAction().

00045                                                                   {
00046         MyAnalysisSvc::GetMyAnalysisSvc()->PreUserTrackingAction(aTrack);
00047 
00048 //      G4String processName;
00049 //      const G4VProcess* process = aTrack->GetCreatorProcess();
00050 //      if (process) {
00051 //              processName = process->GetProcessName();
00052 //      }
00053 //      else{
00054 //              processName = "NULL";
00055 //      }
00056 //  G4int trackID= aTrack->GetTrackID(); //G4 track ID of current track.
00057 //  G4int ptid = aTrack->GetParentID(); //parent G4 track ID of current track.
00058 //      G4int pid = aTrack->GetParticleDefinition()->GetPDGEncoding();
00059 //  G4double globalT=aTrack->GetGlobalTime();//Time since the event in which the track belongs is created
00060 //      G4ThreeVector mom_3vec = aTrack->GetMomentum();
00061 //      G4double mom = mom_3vec.mag();
00062 //
00063 //      std::cout<<"Begin of track "<<trackID<<std::endl;
00064 //      std::cout<<"    pid: "<<pid<<std::endl;
00065 //      std::cout<<"    ptid: "<<ptid<<std::endl;
00066 //      std::cout<<"    process: "<<processName<<std::endl;
00067 //      std::cout<<"    Global time: "<<globalT/ns<<"ns"<<std::endl;
00068 //      std::cout<<"    momentum: "<<mom/MeV<<"MeV"<<std::endl;
00069 
00070 }


The documentation for this class was generated from the following files:

Generated on 15 Jun 2016 for g4sim by  doxygen 1.6.1