/scratch0/jsnuveri/BDSIM/BDSIMgit/bdsim/src/BDSUserTrackingAction.cc

00001 /* BDSIM code.    Version 1.0
00002    Author: Grahame A. Blair, Royal Holloway, Univ. of London.
00003    Last modified 24.7.2002
00004    Copyright (c) 2002 by G.A.Blair.  ALL RIGHTS RESERVED. 
00005 */
00006 
00007 #include "BDSGlobalConstants.hh"
00008 
00009 #include "BDSUserTrackingAction.hh"
00010 #include "BDSTrajectory.hh"
00011 #include "G4TrackingManager.hh"
00012 #include "G4Track.hh"
00013 
00014 //#include "BDSNeutronTrackInfo.hh"
00015 
00016 void BDSUserTrackingAction::PreUserTrackingAction(const G4Track* /*aTrack*/)
00017 {
00018   fpTrackingManager->SetStoreTrajectory(true);  //Need to store trajectories to get the position of last scatter etc.
00019   
00020   /*
00021     if(aTrack->GetDefinition()->GetParticleName()=="neutron")
00022     {
00023     BDSNeutronTrackInfo* Info= new BDSNeutronTrackInfo();
00024     Info->SetIsLogged(false);
00025     fpTrackingManager->SetUserTrackInformation(Info);
00026     }
00027   */
00028   
00029 }
00030 
00031 BDSUserTrackingAction::~BDSUserTrackingAction()
00032 {;}
00033 
00034 

Generated on 28 Jun 2015 for BDSIM by  doxygen 1.4.7