7 #include <boost/bind.hpp>
8 #include <boost/ptr_container/ptr_deque.hpp>
34 ExternalInputSource(params, desc,
false),
38 produces<LHEEventProduct>();
39 produces<LHERunInfoProduct, edm::InRun>();
56 bool newFileOpened =
false;
63 boost::shared_ptr<LHERunInfo> runInfoThis =
partonLevel->getRunInfo();
76 std::auto_ptr<LHERunInfoProduct> product(
78 std::for_each(
runInfo->getHeaders().begin(),
83 std::for_each(
runInfo->getComments().begin(),
101 std::auto_ptr<LHERunInfoProduct> product(
112 std::auto_ptr<LHEEventProduct> product(
130 std::auto_ptr<LHERunInfoProduct> product(
132 std::for_each(
runInfo->getHeaders().begin(),
137 std::for_each(
runInfo->getComments().begin(),
boost::shared_ptr< lhef::LHERunInfo > runInfo
void addHeader(const Header &header)
void addComment(const std::string &line)
void addWeight(const WGT &wgt)
virtual void endRun(edm::Run &run)
boost::shared_ptr< lhef::LHEEvent > partonLevel
boost::shared_ptr< lhef::LHERunInfo > runInfoLast
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
LHESource(const edm::ParameterSet ¶ms, const edm::InputSourceDescription &desc)
virtual bool produce(edm::Event &event)
void addComment(const std::string &line)
std::auto_ptr< lhef::LHEReader > reader
void put(std::auto_ptr< PROD > product)
Put a new product.
virtual void beginRun(edm::Run &run)
boost::ptr_deque< LHERunInfoProduct > runInfoProducts