CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | 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

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 &params)
 
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< JetMatchingcreate (const edm::ParameterSet &params)
 

Protected Attributes

bool fMatchingStatus
 
std::vector< JetPartonMatchmatchSummary
 

Detailed Description

Definition at line 26 of file JetMatching.h.

Constructor & Destructor Documentation

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

Definition at line 18 of file JetMatching.cc.

References fMatchingStatus.

19 {
20  fMatchingStatus=false;
21 }
gen::JetMatching::~JetMatching ( )
virtual

Definition at line 23 of file JetMatching.cc.

24 {
25 }

Member Function Documentation

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 JetMatchingHook::beforeHadronization(), and gen::Pythia6Hadronizer::hadronize().

32 {
33 }
void gen::JetMatching::beforeHadronisationExec ( )
virtual

Reimplemented in gen::JetMatchingMadgraph.

Definition at line 35 of file JetMatching.cc.

Referenced by JetMatchingHook::beforeHadronization(), and gen::Pythia6ServiceWithCallback::upEvnt().

36 {
37 }
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.

40 {
41  std::set<std::string> result;
42  result.insert("psFinalState");
43  result.insert("hepmc");
44  return result;
45 }
tuple result
Definition: query.py:137
std::auto_ptr< JetMatching > gen::JetMatching::create ( const edm::ParameterSet params)
static

Definition at line 47 of file JetMatching.cc.

References edm::hlt::Exception, and edm::ParameterSet::getParameter().

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

48 {
49  std::string scheme = params.getParameter<std::string>("scheme");
50 
51  std::auto_ptr<JetMatching> matching;
52 
53  if (scheme == "Madgraph")
54  {
55  matching.reset(new JetMatchingMadgraph(params));
56  }
57  else if (scheme == "Alpgen")
58  {
59  matching.reset(new JetMatchingAlpgen(params));
60  }
61  else if (scheme == "MLM")
62  {
63  matching.reset();
64  }
65  else
66  throw cms::Exception("InvalidJetMatching")
67  << "Unknown scheme \"" << scheme << "\""
68  " specified for parton-shower matching."
69  << std::endl;
70 
71  if (!matching.get())
72  throw cms::Exception("InvalidJetMatching")
73  << "Port of " << scheme << "scheme \"" << "\""
74  " for parton-shower matching is still in progress."
75  << std::endl;
76 
77  return matching;
78 }
T getParameter(std::string const &) const
const std::vector<JetPartonMatch>& gen::JetMatching::getMatchSummary ( ) const
inline

Definition at line 69 of file JetMatching.h.

References matchSummary.

70  { return matchSummary; }
std::vector< JetPartonMatch > matchSummary
Definition: JetMatching.h:77
void gen::JetMatching::init ( const lhef::LHERunInfo runInfo)
virtual
bool gen::JetMatching::isMatchingDone ( )
inline

Definition at line 67 of file JetMatching.h.

References fMatchingStatus.

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

67 { return fMatchingStatus; }
virtual int gen::JetMatching::match ( const HepMC::GenEvent *  partonLevel,
const HepMC::GenEvent *  finalState,
bool  showeredFinalState = false 
)
pure virtual
void gen::JetMatching::resetMatchingStatus ( )
inline

Definition at line 66 of file JetMatching.h.

References fMatchingStatus.

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

66 { fMatchingStatus = false; }

Member Data Documentation

bool gen::JetMatching::fMatchingStatus
protected
std::vector<JetPartonMatch> gen::JetMatching::matchSummary
protected

Definition at line 77 of file JetMatching.h.

Referenced by getMatchSummary().