#include <JetMatching.h>
Classes | |
struct | JetPartonMatch |
Public Member Functions | |
virtual void | beforeHadronisation (const lhef::LHEEvent *event) |
virtual void | beforeHadronisationExec () |
virtual std::set< std::string > | capabilities () const |
const std::vector < JetPartonMatch > & | getMatchSummary () const |
virtual void | init (const lhef::LHERunInfo *runInfo) |
bool | isMatchingDone () |
JetMatching (const edm::ParameterSet ¶ms) | |
virtual int | match (const HepMC::GenEvent *partonLevel, const HepMC::GenEvent *finalState, bool showeredFinalState=false)=0 |
void | resetMatchingStatus () |
virtual | ~JetMatching () |
Static Public Member Functions | |
static std::auto_ptr< JetMatching > | create (const edm::ParameterSet ¶ms) |
Protected Attributes | |
bool | fMatchingStatus |
std::vector< JetPartonMatch > | matchSummary |
Definition at line 26 of file JetMatching.h.
gen::JetMatching::JetMatching | ( | const edm::ParameterSet & | params | ) |
Definition at line 18 of file JetMatching.cc.
References fMatchingStatus.
{ fMatchingStatus=false; }
gen::JetMatching::~JetMatching | ( | ) | [virtual] |
Definition at line 23 of file JetMatching.cc.
{ }
void gen::JetMatching::beforeHadronisation | ( | const lhef::LHEEvent * | event | ) | [virtual] |
Reimplemented in gen::JetMatchingAlpgen, and gen::JetMatchingMadgraph.
Definition at line 31 of file JetMatching.cc.
Referenced by gen::Pythia6Hadronizer::hadronize().
{ }
void gen::JetMatching::beforeHadronisationExec | ( | ) | [virtual] |
Reimplemented in gen::JetMatchingMadgraph.
Definition at line 35 of file JetMatching.cc.
Referenced by gen::Pythia6ServiceWithCallback::upEvnt().
{ }
std::set< std::string > gen::JetMatching::capabilities | ( | ) | const [virtual] |
Reimplemented in gen::JetMatchingAlpgen, and gen::JetMatchingMadgraph.
Definition at line 39 of file JetMatching.cc.
References query::result.
std::auto_ptr< JetMatching > gen::JetMatching::create | ( | const edm::ParameterSet & | params | ) | [static] |
Definition at line 47 of file JetMatching.cc.
References Exception, and edm::ParameterSet::getParameter().
{ std::string scheme = params.getParameter<std::string>("scheme"); std::auto_ptr<JetMatching> matching; if (scheme == "Madgraph") { matching.reset(new JetMatchingMadgraph(params)); } else if (scheme == "Alpgen") { matching.reset(new JetMatchingAlpgen(params)); } else if (scheme == "MLM") { matching.reset(); } else throw cms::Exception("InvalidJetMatching") << "Unknown scheme \"" << scheme << "\"" " specified for parton-shower matching." << std::endl; if (!matching.get()) throw cms::Exception("InvalidJetMatching") << "Port of " << scheme << "scheme \"" << "\"" " for parton-shower matching is still in progress." << std::endl; return matching; }
const std::vector<JetPartonMatch>& gen::JetMatching::getMatchSummary | ( | ) | const [inline] |
void gen::JetMatching::init | ( | const lhef::LHERunInfo * | runInfo | ) | [virtual] |
Reimplemented in gen::JetMatchingAlpgen, and gen::JetMatchingMadgraph.
Definition at line 27 of file JetMatching.cc.
Referenced by gen::Pythia6Hadronizer::initializeForExternalPartons().
{ }
bool gen::JetMatching::isMatchingDone | ( | ) | [inline] |
Definition at line 67 of file JetMatching.h.
References fMatchingStatus.
Referenced by gen::Pythia6ServiceWithCallback::upVeto().
{ return fMatchingStatus; }
virtual int gen::JetMatching::match | ( | const HepMC::GenEvent * | partonLevel, |
const HepMC::GenEvent * | finalState, | ||
bool | showeredFinalState = false |
||
) | [pure virtual] |
Implemented in gen::JetMatchingAlpgen, and gen::JetMatchingMadgraph.
Referenced by gen::Pythia6ServiceWithCallback::upVeto().
void gen::JetMatching::resetMatchingStatus | ( | ) | [inline] |
Definition at line 66 of file JetMatching.h.
References fMatchingStatus.
Referenced by gen::Pythia6Hadronizer::hadronize().
{ fMatchingStatus = false; }
bool gen::JetMatching::fMatchingStatus [protected] |
Definition at line 76 of file JetMatching.h.
Referenced by isMatchingDone(), JetMatching(), gen::JetMatchingMadgraph::match(), and resetMatchingStatus().
std::vector<JetPartonMatch> gen::JetMatching::matchSummary [protected] |
Definition at line 77 of file JetMatching.h.
Referenced by getMatchSummary().