From b38cd10ca028bc295f67c90f6b834b25a34a31bb Mon Sep 17 00:00:00 2001 From: paraiso Date: Sat, 25 Feb 2006 19:22:05 +0000 Subject: [PATCH] Fixed Verbose bug in TrackingAction --- geant4/LEMuSR/src/LEMuSRTrackingAction.cc | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/geant4/LEMuSR/src/LEMuSRTrackingAction.cc b/geant4/LEMuSR/src/LEMuSRTrackingAction.cc index b1df231..377b2e4 100644 --- a/geant4/LEMuSR/src/LEMuSRTrackingAction.cc +++ b/geant4/LEMuSR/src/LEMuSRTrackingAction.cc @@ -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 /tracking/verbose x. + */ 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) { - + ; }