Import Geant4 9.5.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 16:46:55 +02:00
parent 89a9605df1
commit b1eb5424d2
10957 changed files with 888481 additions and 160139 deletions
@@ -27,15 +27,8 @@
//
// ====================================================================
#ifndef WIN32
#ifdef G4LIB_USE_HEPMC
#include "G4MCTGenEvent.hh"
#include "CLHEP/HepMC/GenParticle.h"
#include "CLHEP/HepMC/GenVertex.h"
// ====================================================================
//
// class description
@@ -56,10 +49,10 @@ G4MCTGenEvent::~G4MCTGenEvent()
}
/////////////////////////////////////////////////////////////
int G4MCTGenEvent::AddGenEvent(const HepMC::GenEvent* genevent)
int G4MCTGenEvent::AddGenEvent(const void* genevent)
/////////////////////////////////////////////////////////////
{
eventList.push_back(const_cast<HepMC::GenEvent*>(genevent));
eventList.push_back(const_cast<void*>(genevent));
return eventList.size();
}
@@ -71,11 +64,11 @@ int G4MCTGenEvent::GetNofEvents() const
}
//////////////////////////////////////////////////////
const HepMC::GenEvent* G4MCTGenEvent::GetGenEvent(int i)
const void* G4MCTGenEvent::GetGenEvent(int i)
//////////////////////////////////////////////////////
{
int size= eventList.size();
if(i>=0 && i< size) return eventList[i];
if(i>=0 && i<size) return eventList[i];
else return 0;
}
@@ -86,16 +79,3 @@ void G4MCTGenEvent::ClearEvent()
{
eventList.clear();
}
////////////////////////////////////////////////////////////
void G4MCTGenEvent::Print(std::ostream& ostr) const
////////////////////////////////////////////////////////////
{
int nev= eventList.size();
for(int iev=0; iev<nev; iev++) {
eventList[iev]-> print(ostr);
}
}
#endif
#endif