Import Geant4 10.7.0 source tree
This commit is contained in:
@@ -40,6 +40,8 @@
|
||||
#include "G4TransportationManager.hh"
|
||||
#include "G4Navigator.hh"
|
||||
#include "Randomize.hh"
|
||||
#include "G4Profiler.hh"
|
||||
#include "G4TiMemory.hh"
|
||||
|
||||
G4ThreadLocal G4EventManager* G4EventManager::fpEventManager = nullptr;
|
||||
|
||||
@@ -128,6 +130,10 @@ void G4EventManager::DoProcessing(G4Event* anEvent)
|
||||
|
||||
if(userEventAction) userEventAction->BeginOfEventAction(currentEvent);
|
||||
|
||||
#if defined(GEANT4_USE_TIMEMORY)
|
||||
eventProfiler.reset(new ProfilerConfig(currentEvent));
|
||||
#endif
|
||||
|
||||
#ifdef G4VERBOSE
|
||||
if ( verboseLevel > 1 )
|
||||
{
|
||||
@@ -247,6 +253,10 @@ void G4EventManager::DoProcessing(G4Event* anEvent)
|
||||
sdManager->TerminateCurrentEvent(currentEvent->GetHCofThisEvent());
|
||||
}
|
||||
|
||||
#if defined(GEANT4_USE_TIMEMORY)
|
||||
eventProfiler.reset();
|
||||
#endif
|
||||
|
||||
if(userEventAction)
|
||||
{
|
||||
userEventAction->EndOfEventAction(currentEvent);
|
||||
|
||||
Reference in New Issue
Block a user