35 #include "HGCal/TBStandaloneSimulator/interface/HepMCG4AsciiReader.hh"
36 #include "HGCal/TBStandaloneSimulator/interface/HepMCG4AsciiReaderMessenger.hh"
42 HepMCG4AsciiReader::HepMCG4AsciiReader()
43 : filename(
"xxx.dat"), verbose(0)
46 asciiInput =
new HepMC::IO_GenEvent(filename.c_str(), std::ios::in);
48 messenger =
new HepMCG4AsciiReaderMessenger(
this);
52 HepMCG4AsciiReader::~HepMCG4AsciiReader()
60 void HepMCG4AsciiReader::Initialize()
65 asciiInput =
new HepMC::IO_GenEvent(filename.c_str(), std::ios::in);
69 HepMC::GenEvent* HepMCG4AsciiReader::GenerateHepMCEvent()
72 HepMC::GenEvent* evt = asciiInput-> read_next_event();
75 if(verbose > 0) evt-> print();