Definition at line 18 of file LHEReader.h.
boost::shared_ptr< LHEEvent > lhef::LHEReader::next |
( |
bool * |
newFileOpened = nullptr | ) |
|
Definition at line 485 of file LHEReader.cc.
References lhef::LHERunInfo::addHeader(), curDoc, curIndex, curRunInfo, curSource, data, fileURLs, plotBeamSpotDB::first, firstEvent, handler, mps_fire::i, info(), lhef::LHEReader::XMLHandler::kComment, lhef::LHEReader::XMLHandler::kEvent, lhef::LHEReader::XMLHandler::kHeader, lhef::LHEReader::XMLHandler::kInit, lhef::LHEReader::XMLHandler::kNone, lhef::logFileAction(), maxEvents, pileupDistInMC::num, edm::second(), and strName.
493 if ( newFileOpened !=
nullptr ) *newFileOpened =
true;
513 return boost::shared_ptr<LHEEvent>();
522 std::istringstream
data;
528 std::for_each(
handler->headers.begin(),
543 <<
"Got LHE event without" 544 " initialization." << std::endl;
552 return boost::shared_ptr<LHEEvent>();
556 std::istringstream
data;
560 boost::shared_ptr<LHEEvent> lheevent;
561 lheevent.reset(
new LHEEvent(
curRunInfo, data));
563 for(
size_t i=0;
i< info.size(); ++
i ) {
568 lheevent->setNpLO(
handler->npLO);
569 lheevent->setNpNLO(
handler->npNLO);
571 if (
handler->scales.size()>0) {
572 lheevent->setScales(
handler->scales);
579 return boost::shared_ptr<LHEEvent>();
static void logFileAction(char const *msg, std::string const &fileName)
const std::vector< std::string > fileURLs
U second(std::pair< T, U > const &p)
boost::shared_ptr< LHERunInfo > curRunInfo
void addHeader(const Header &header)
const std::string strName
std::vector< std::pair< std::string, std::string > > wgt_info
std::unique_ptr< XMLDocument > curDoc
std::unique_ptr< Source > curSource
char data[epos_bytes_allocation]
std::unique_ptr< XMLHandler > handler