Import Geant4 9.4.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 16:25:56 +02:00
parent 74cad5e589
commit 89a9605df1
4440 changed files with 379508 additions and 189225 deletions
+3 -27
View File
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4EventManager.cc,v 1.30 2007/03/08 23:56:12 asaim Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: G4EventManager.cc,v 1.32 2010/11/08 21:31:35 asaim Exp $
// GEANT4 tag $Name: geant4-09-04 $
//
//
//
@@ -290,6 +290,7 @@ void G4EventManager::StackTracks(G4TrackVector *trackVector,G4bool IDhasAlreadyS
pp->SetTrackID(trackIDCounter);
}
}
newTrack->SetOriginTouchableHandle(newTrack->GetTouchableHandle());
trackContainer->PushOneTrack( newTrack );
#ifdef G4VERBOSE
if ( verboseLevel > 1 )
@@ -335,31 +336,6 @@ void G4EventManager::ProcessOneEvent(G4Event* anEvent)
DoProcessing(anEvent);
}
#ifdef CLHEP_HepMC // Temporarly disabled
#include "G4HepMCInterface.hh"
void G4EventManager::ProcessOneEvent(const HepMC::GenEvent* hepmcevt,G4Event* anEvent)
{
static G4String randStat;
trackIDCounter = 0;
G4bool tempEvent = false;
if(!anEvent)
{
anEvent = new G4Event();
tempEvent = true;
}
if(storetRandomNumberStatusToG4Event==1 || storetRandomNumberStatusToG4Event==3)
{
std::ostringstream oss;
CLHEP::HepRandom::saveFullState(oss);
anEvent->SetRandomNumberStatus(randStat=oss.str());
}
G4HepMCInterface::HepMC2G4(hepmcevt,anEvent);
DoProcessing(anEvent);
if(tempEvent)
{ delete anEvent; }
}
#endif
void G4EventManager::ProcessOneEvent(G4TrackVector* trackVector,G4Event* anEvent)
{
static G4String randStat;