1 #ifndef GeneratorInterface_LHEInterface_JetMatching_h
2 #define GeneratorInterface_LHEInterface_JetMatching_h
9 #include <boost/shared_ptr.hpp>
11 #include "HepMC/GenEvent.h"
12 #include "HepMC/SimpleVector.h"
31 const HepMC::FourVector &
jet,
34 parton(parton), jet(jet),
35 delta(delta), pdgId(pdgId) {}
39 parton(parton),
delta(-1.0), pdgId(pdgId) {}
49 HepMC::FourVector
jet;
54 virtual void init(
const boost::shared_ptr<LHERunInfo> &runInfo);
56 const boost::shared_ptr<LHEEvent> &
event);
58 virtual double match(
const HepMC::GenEvent *partonLevel,
59 const HepMC::GenEvent *finalState,
60 bool showeredFinalState =
false) = 0;
67 static std::auto_ptr<JetMatching>
create(
79 #define DEFINE_LHE_JETMATCHING_PLUGIN(T) \
80 DEFINE_EDM_PLUGIN(lhef::JetMatching::Factory, T, #T)
82 #endif // GeneratorCommon_LHEInterface_JetMatching_h
JetPartonMatch(const HepMC::FourVector &parton, int pdgId)
JetPartonMatch(const HepMC::FourVector &parton, const HepMC::FourVector &jet, double delta, int pdgId)
virtual void beforeHadronisation(const boost::shared_ptr< LHEEvent > &event)
virtual void init(const boost::shared_ptr< LHERunInfo > &runInfo)
static std::auto_ptr< JetMatching > create(const edm::ParameterSet ¶ms)
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
virtual double match(const HepMC::GenEvent *partonLevel, const HepMC::GenEvent *finalState, bool showeredFinalState=false)=0
JetMatching(const edm::ParameterSet ¶ms)
virtual std::set< std::string > capabilities() const
const std::vector< JetPartonMatch > & getMatchSummary() const
JetPartonMatch(const HepMC::FourVector &jet)
std::vector< JetPartonMatch > matchSummary