Definition at line 18 of file LHEReader.h.
boost::shared_ptr< LHEEvent > lhef::LHEReader::next |
( |
bool * |
newFileOpened = nullptr | ) |
|
Definition at line 490 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, platform, lhef::XMLDocument::platformHandle(), edm::second(), and strName.
503 if ( newFileOpened !=
nullptr ) *newFileOpened =
true;
523 return boost::shared_ptr<LHEEvent>();
532 std::istringstream
data;
538 std::for_each(
handler->headers.begin(),
553 <<
"Got LHE event without" 554 " initialization." << std::endl;
562 return boost::shared_ptr<LHEEvent>();
566 std::istringstream
data;
570 boost::shared_ptr<LHEEvent> lheevent;
571 lheevent.reset(
new LHEEvent(
curRunInfo, data));
573 for(
size_t i=0;
i< info.size(); ++
i ) {
578 lheevent->setNpLO(
handler->npLO);
579 lheevent->setNpNLO(
handler->npNLO);
581 if (!
handler->scales.empty()) {
582 lheevent->setScales(
handler->scales);
589 return boost::shared_ptr<LHEEvent>();
std::shared_ptr< void > platform
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
static std::shared_ptr< void > platformHandle()
std::unique_ptr< XMLDocument > curDoc
std::unique_ptr< Source > curSource
char data[epos_bytes_allocation]
std::unique_ptr< XMLHandler > handler