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

◆ JetMatching()

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

Definition at line 17 of file JetMatching.cc.

17 { fMatchingStatus = false; }

References fMatchingStatus.

◆ ~JetMatching()

gen::JetMatching::~JetMatching ( )
virtual

Definition at line 19 of file JetMatching.cc.

19 {}

Member Function Documentation

◆ beforeHadronisation()

void gen::JetMatching::beforeHadronisation ( const lhef::LHEEvent event)
virtual

◆ beforeHadronisationExec()

void gen::JetMatching::beforeHadronisationExec ( )
virtual

◆ capabilities()

std::set< std::string > gen::JetMatching::capabilities ( ) const
virtual

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

Definition at line 27 of file JetMatching.cc.

27  {
28  std::set<std::string> result;
29  result.insert("psFinalState");
30  result.insert("hepmc");
31  return result;
32  }

References mps_fire::result.

◆ create()

std::unique_ptr< JetMatching > gen::JetMatching::create ( const edm::ParameterSet params)
static

Definition at line 34 of file JetMatching.cc.

34  {
35  std::string scheme = params.getParameter<std::string>("scheme");
36 
37  std::unique_ptr<JetMatching> matching;
38 
39  if (scheme == "Madgraph") {
40  matching = std::make_unique<JetMatchingMadgraph>(params);
41  } else if (scheme == "Alpgen") {
42  matching = std::make_unique<JetMatchingAlpgen>(params);
43  } else if (scheme == "MLM") {
44  matching.reset();
45  } else
46  throw cms::Exception("InvalidJetMatching") << "Unknown scheme \"" << scheme
47  << "\""
48  " specified for parton-shower matching."
49  << std::endl;
50 
51  if (!matching.get())
52  throw cms::Exception("InvalidJetMatching") << "Port of " << scheme << "scheme \""
53  << "\""
54  " for parton-shower matching is still in progress."
55  << std::endl;
56 
57  return matching;
58  }

References Exception, TtSemiLepJetCombMVATrainer_cfi::matching, CalibrationSummaryClient_cfi::params, generator_cfi::scheme, and AlCaHLTBitMon_QueryRunRegistry::string.

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

◆ getJetEtaMax()

virtual double gen::JetMatching::getJetEtaMax ( ) const
pure virtual

◆ getPartonList()

virtual const std::vector<int>* gen::JetMatching::getPartonList ( )
inlinevirtual

Reimplemented in gen::JetMatchingMGFastJet.

Definition at line 76 of file JetMatching.h.

76 { return nullptr; }

Referenced by JetMatchingHook::doVetoPartonLevel().

◆ init()

void gen::JetMatching::init ( const lhef::LHERunInfo runInfo)
virtual

◆ initAfterBeams()

virtual bool gen::JetMatching::initAfterBeams ( )
inlinevirtual

Reimplemented in gen::JetMatchingMGFastJet.

Definition at line 59 of file JetMatching.h.

59 { return true; }

Referenced by JetMatchingHook::initAfterBeams().

◆ isMatchingDone()

bool gen::JetMatching::isMatchingDone ( )
inline

Definition at line 74 of file JetMatching.h.

74 { return fMatchingStatus; }

References fMatchingStatus.

Referenced by JetMatchingHook::doVetoPartonLevel(), and gen::Pythia6ServiceWithCallback::upVeto().

◆ match()

virtual int gen::JetMatching::match ( const lhef::LHEEvent partonLevel,
const std::vector< fastjet::PseudoJet > *  jetInput 
)
pure virtual

◆ resetMatchingStatus()

void gen::JetMatching::resetMatchingStatus ( )
inline

Definition at line 73 of file JetMatching.h.

73 { fMatchingStatus = false; }

References fMatchingStatus.

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

Member Data Documentation

◆ fMatchingStatus

bool gen::JetMatching::fMatchingStatus
protected
CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
TtSemiLepJetCombMVATrainer_cfi.matching
matching
Definition: TtSemiLepJetCombMVATrainer_cfi.py:13
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
gen::JetMatching::fMatchingStatus
bool fMatchingStatus
Definition: JetMatching.h:86
generator_cfi.scheme
scheme
Definition: generator_cfi.py:22
Exception
Definition: hltDiff.cc:245
mps_fire.result
result
Definition: mps_fire.py:311
cms::Exception
Definition: Exception.h:70