Import Geant4 9.4.0 source tree
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user