CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Protected Attributes
gen::JetMatching Class Referenceabstract

#include <JetMatching.h>

Inheritance diagram for gen::JetMatching:
gen::JetMatchingAlpgen gen::JetMatchingMadgraph gen::JetMatchingMGFastJet

Public Member Functions

virtual void beforeHadronisation (const lhef::LHEEvent *event)
 
virtual void beforeHadronisationExec ()
 
virtual std::set< std::string > capabilities () const
 
virtual double getJetEtaMax () const =0
 
virtual const std::vector< int > * getPartonList ()
 
virtual void init (const lhef::LHERunInfo *runInfo)
 
virtual bool initAfterBeams ()
 
bool isMatchingDone ()
 
 JetMatching (const edm::ParameterSet &params)
 
virtual int match (const lhef::LHEEvent *partonLevel, const std::vector< fastjet::PseudoJet > *jetInput)=0
 
void resetMatchingStatus ()
 
virtual ~JetMatching ()
 

Static Public Member Functions

static std::unique_ptr< JetMatchingcreate (const edm::ParameterSet &params)
 

Protected Attributes

bool fMatchingStatus
 

Detailed Description

Definition at line 27 of file JetMatching.h.

Constructor & Destructor Documentation

gen::JetMatching::JetMatching ( const edm::ParameterSet params)

Definition at line 15 of file JetMatching.cc.

References fMatchingStatus.

15 { fMatchingStatus = false; }
gen::JetMatching::~JetMatching ( )
virtual

Definition at line 17 of file JetMatching.cc.

17 {}

Member Function Documentation

void gen::JetMatching::beforeHadronisation ( const lhef::LHEEvent event)
virtual
void gen::JetMatching::beforeHadronisationExec ( )
virtual
std::set< std::string > gen::JetMatching::capabilities ( ) const
virtual

Reimplemented in gen::JetMatchingMadgraph, and gen::JetMatchingAlpgen.

Definition at line 25 of file JetMatching.cc.

References mps_fire::result.

25  {
26  std::set<std::string> result;
27  result.insert("psFinalState");
28  result.insert("hepmc");
29  return result;
30  }
std::unique_ptr< JetMatching > gen::JetMatching::create ( const edm::ParameterSet params)
static

Definition at line 32 of file JetMatching.cc.

References Exception, edm::ParameterSet::getParameter(), TtSemiLepJetCombMVATrainer_cfi::matching, generator_cfi::scheme, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by gen::Pythia6Hadronizer::Pythia6Hadronizer().

32  {
33  std::string scheme = params.getParameter<std::string>("scheme");
34 
35  std::unique_ptr<JetMatching> matching;
36 
37  if (scheme == "Madgraph") {
38  matching.reset(new JetMatchingMadgraph(params));
39  } else if (scheme == "Alpgen") {
40  matching.reset(new JetMatchingAlpgen(params));
41  } else if (scheme == "MLM") {
42  matching.reset();
43  } else
44  throw cms::Exception("InvalidJetMatching") << "Unknown scheme \"" << scheme
45  << "\""
46  " specified for parton-shower matching."
47  << std::endl;
48 
49  if (!matching.get())
50  throw cms::Exception("InvalidJetMatching") << "Port of " << scheme << "scheme \""
51  << "\""
52  " for parton-shower matching is still in progress."
53  << std::endl;
54 
55  return matching;
56  }
T getParameter(std::string const &) const
virtual double gen::JetMatching::getJetEtaMax ( ) const
pure virtual
virtual const std::vector<int>* gen::JetMatching::getPartonList ( )
inlinevirtual

Reimplemented in gen::JetMatchingMGFastJet.

Definition at line 76 of file JetMatching.h.

References beamerCreator::create().

Referenced by JetMatchingHook::doVetoPartonLevel().

76 { return nullptr; }
void gen::JetMatching::init ( const lhef::LHERunInfo runInfo)
virtual
virtual bool gen::JetMatching::initAfterBeams ( )
inlinevirtual

Reimplemented in gen::JetMatchingMGFastJet.

Definition at line 59 of file JetMatching.h.

References match().

Referenced by JetMatchingHook::initAfterBeams().

59 { return true; }
bool gen::JetMatching::isMatchingDone ( )
inline
virtual int gen::JetMatching::match ( const lhef::LHEEvent partonLevel,
const std::vector< fastjet::PseudoJet > *  jetInput 
)
pure virtual
void gen::JetMatching::resetMatchingStatus ( )
inline

Definition at line 73 of file JetMatching.h.

Referenced by gen::Pythia6Hadronizer::hadronize(), and JetMatchingHook::resetMatchingStatus().

73 { fMatchingStatus = false; }

Member Data Documentation

bool gen::JetMatching::fMatchingStatus
protected

Definition at line 86 of file JetMatching.h.

Referenced by JetMatching(), and gen::JetMatchingMadgraph::match().