Definition at line 18 of file LHEReader.h.
boost::shared_ptr< LHEEvent > lhef::LHEReader::next |
( |
bool * |
newFileOpened = nullptr | ) |
|
Definition at line 419 of file LHEReader.cc.
References lhef::LHERunInfo::addHeader(), curDoc, curIndex, curRunInfo, curSource, data, event(), fileURLs, first, firstEvent, handler, 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, edm::second(), and strName.
427 if ( newFileOpened !=
nullptr ) *newFileOpened =
true;
440 std::istringstream
data;
460 std::for_each(
handler->headers.begin(),
473 <<
"Got LHE event without"
474 " initialization." << std::endl;
482 return boost::shared_ptr<LHEEvent>();
486 boost::shared_ptr<LHEEvent> lheevent;
487 lheevent.reset(
new LHEEvent(
curRunInfo, data));
489 for(
size_t i=0;
i< info.size(); ++
i ) {
490 std::string snum = info[
i].second.substr(0,info[
i].
second.size()-1);
492 sscanf(snum.c_str(),
"%le",&
num);
499 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)
std::auto_ptr< XMLHandler > handler
const std::string strName
std::vector< std::pair< std::string, std::string > > wgt_info
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
std::auto_ptr< XMLDocument > curDoc
char data[epos_bytes_allocation]
std::auto_ptr< Source > curSource