Fixed Verbose bug in TrackingAction
This commit is contained in:
parent
505a247f60
commit
b38cd10ca0
@ -1,6 +1,6 @@
|
|||||||
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$//*
|
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$//*
|
||||||
// LOW ENERGY MUON SPIN RELAXATION, ROTATION, RADIATION Geant4 SIMULATION
|
// LOW ENERGY MUON SPIN RELAXATION, ROTATION, RADIATION Geant4 SIMULATION
|
||||||
// ID : LEMuSRTrackingAction.cc , v 1.0
|
// ID : LEMuSRTrackingAction.cc , v 1.2
|
||||||
// AUTHOR: Taofiq PARAISO
|
// AUTHOR: Taofiq PARAISO
|
||||||
// DATE : 2004-07-07 11:15
|
// DATE : 2004-07-07 11:15
|
||||||
//
|
//
|
||||||
@ -27,10 +27,22 @@
|
|||||||
#include"LEMuSRMuonDecayChannel.hh"
|
#include"LEMuSRMuonDecayChannel.hh"
|
||||||
|
|
||||||
//! \ct
|
//! \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()
|
LEMuSRTrackingAction ::LEMuSRTrackingAction()
|
||||||
{
|
{
|
||||||
pointer=this ;
|
pointer=this ;
|
||||||
tMgr=new G4TrackingManager();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -47,20 +59,20 @@ LEMuSRTrackingAction* LEMuSRTrackingAction::GetInstance()
|
|||||||
//! \dt
|
//! \dt
|
||||||
LEMuSRTrackingAction:: ~LEMuSRTrackingAction()
|
LEMuSRTrackingAction:: ~LEMuSRTrackingAction()
|
||||||
{
|
{
|
||||||
delete tMgr;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
//! Actions to take at the beginning of a track.
|
//! Actions to take at the beginning of a track.
|
||||||
void LEMuSRTrackingAction::PreUserTrackingAction(const G4Track* theTrack)
|
void LEMuSRTrackingAction::PreUserTrackingAction(const G4Track* theTrack)
|
||||||
{
|
{
|
||||||
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void LEMuSRTrackingAction::Collect_datas(const G4Track* theTrack)
|
void LEMuSRTrackingAction::Collect_datas(const G4Track* theTrack)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user