Fixed Verbose bug in TrackingAction

This commit is contained in:
paraiso 2006-02-25 19:22:05 +00:00
parent 505a247f60
commit b38cd10ca0

View File

@ -1,6 +1,6 @@
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$//*
// LOW ENERGY MUON SPIN RELAXATION, ROTATION, RADIATION Geant4 SIMULATION
// ID : LEMuSRTrackingAction.cc , v 1.0
// ID : LEMuSRTrackingAction.cc , v 1.2
// AUTHOR: Taofiq PARAISO
// DATE : 2004-07-07 11:15
//
@ -27,10 +27,22 @@
#include"LEMuSRMuonDecayChannel.hh"
//! \ct
/*
* The tracking manager can be accessed by calling
the event manager GetTrackingManager() method.
One should not create here a pointer to the tracking manager, which is created
by the event manager and must be a singleton.
http://www-geant4.kek.jp/lxr/source/event/src/G4EventManager.cc
The event mnager is accessed by G4EventManager::GetEventManager().
*
* BUG REPORT:
* A previous version created here a new pointer of type G4TrackingManager:
* the BUG due to this operation was the disparition of the tracking verbose
* which is enabled during the simulation by the command <tt> /tracking/verbose x</tt>.
*/
LEMuSRTrackingAction ::LEMuSRTrackingAction()
{
pointer=this ;
tMgr=new G4TrackingManager();
}
@ -47,20 +59,20 @@ LEMuSRTrackingAction* LEMuSRTrackingAction::GetInstance()
//! \dt
LEMuSRTrackingAction:: ~LEMuSRTrackingAction()
{
delete tMgr;
;
}
//! Actions to take at the beginning of a track.
void LEMuSRTrackingAction::PreUserTrackingAction(const G4Track* theTrack)
{
;
}
void LEMuSRTrackingAction::Collect_datas(const G4Track* theTrack)
{
;
}