10 #ifndef gen_BaseHadronizer_h 11 #define gen_BaseHadronizer_h 17 #include <boost/shared_ptr.hpp> 33 #include "CLHEP/Random/RandomEngine.h" 42 class HepRandomEngine;
54 HepMC::GenEvent *
getGenEvent() {
return genEvent_.release(); }
62 const boost::shared_ptr<lhef::LHERunInfo> &
getLHERunInfo()
const {
return lheRunInfo_; }
70 virtual bool select(HepMC::GenEvent*)
const {
return true;}
74 std::vector<std::string>
const&
sharedResources()
const {
return doSharedResources(); }
81 void generateLHE(
edm::LuminosityBlock const& lumi, CLHEP::HepRandomEngine* rengine,
unsigned int ncpu);
86 std::auto_ptr<HepMC::GenEvent>&
event() {
return genEvent_; }
87 std::auto_ptr<GenEventInfoProduct>&
eventInfo() {
return genEventInfo_; }
98 virtual std::vector<std::string>
const&
doSharedResources()
const {
return theSharedResources; }
119 #endif // gen_BaseHadronizer_h virtual bool select(HepMC::GenEvent *) const
GenRunInfoProduct genRunInfo_
std::vector< double > randomInitWeights_
void setEDMEvent(edm::Event &event)
GenRunInfoProduct & getGenRunInfo()
void resetEventInfo(GenEventInfoProduct *eventInfo)
virtual ~BaseHadronizer()(false)
std::auto_ptr< HepMC::GenEvent > & event()
GenRunInfoProduct & runInfo()
lhef::LHEEvent * lheEvent()
void setRandomEngine(CLHEP::HepRandomEngine *v)
std::auto_ptr< lhef::LHEEvent > lheEvent_
const std::string & randomInitConfigDescription() const
std::vector< std::string > const & sharedResources() const
std::vector< std::string > gridpackPaths_
void setLHEEvent(lhef::LHEEvent *event)
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< GenEventInfoProduct > & eventInfo()
std::vector< std::string > randomInitConfigDescriptions_
lhef::LHERunInfo * lheRunInfo()
HepMC::GenEvent * getGenEvent()
virtual std::vector< std::string > const & doSharedResources() const
virtual void doSetRandomEngine(CLHEP::HepRandomEngine *v)
GenEventInfoProduct * getGenEventInfo()
const std::string & gridpackPath() const
void setLHERunInfo(lhef::LHERunInfo *runInfo)
void resetEvent(HepMC::GenEvent *event)
eventInfo
add run, event number and lumi section
std::auto_ptr< HepMC::GenEvent > genEvent_
boost::shared_ptr< lhef::LHERunInfo > lheRunInfo_
std::auto_ptr< GenEventInfoProduct > genEventInfo_
const boost::shared_ptr< lhef::LHERunInfo > & getLHERunInfo() const
static const std::vector< std::string > theSharedResources
edm::Event & getEDMEvent() const