CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes
lhef::JetMatching Class Referenceabstract

#include <JetMatching.h>

Inheritance diagram for lhef::JetMatching:
lhef::JetMatchingMLM

Classes

struct  JetPartonMatch
 

Public Types

typedef
edmplugin::PluginFactory
< JetMatching *(const
edm::ParameterSet &)> 
Factory
 

Public Member Functions

virtual void beforeHadronisation (const boost::shared_ptr< LHEEvent > &event)
 
virtual std::set< std::string > capabilities () const
 
const std::vector
< JetPartonMatch > & 
getMatchSummary () const
 
virtual void init (const boost::shared_ptr< LHERunInfo > &runInfo)
 
 JetMatching (const edm::ParameterSet &params)
 
virtual double match (const HepMC::GenEvent *partonLevel, const HepMC::GenEvent *finalState, bool showeredFinalState=false)=0
 
virtual ~JetMatching ()
 

Static Public Member Functions

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

Protected Attributes

std::vector< JetPartonMatchmatchSummary
 

Detailed Description

Definition at line 24 of file JetMatching.h.

Member Typedef Documentation

Definition at line 71 of file JetMatching.h.

Constructor & Destructor Documentation

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

Definition at line 21 of file JetMatching.cc.

22 {
23 }
lhef::JetMatching::~JetMatching ( )
virtual

Definition at line 25 of file JetMatching.cc.

26 {
27 }

Member Function Documentation

void lhef::JetMatching::beforeHadronisation ( const boost::shared_ptr< LHEEvent > &  event)
virtual

Definition at line 33 of file JetMatching.cc.

35 {
36 }
std::set< std::string > lhef::JetMatching::capabilities ( ) const
virtual

Reimplemented in lhef::JetMatchingMLM.

Definition at line 38 of file JetMatching.cc.

References query::result.

Referenced by lhef::JetMatchingMLM::capabilities().

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

Definition at line 46 of file JetMatching.cc.

References reco::get(), edm::ParameterSet::getParameter(), mergeVDriftHistosByStation::name, fwrapper::plugin, and AlCaHLTBitMon_QueryRunRegistry::string.

48 {
49  std::string name = params.getParameter<std::string>("scheme");
50 
51  std::auto_ptr<JetMatching> plugin(
52  Factory::get()->create("JetMatching" + name, params));
53 
54  if (!plugin.get())
55  throw cms::Exception("InvalidJetMatching")
56  << "Unknown scheme \"" << name << "\""
57  " specified for jet matching in LHEProducer."
58  << std::endl;
59 
60  edm::LogInfo("Generator|LHEInterface")
61  << "Using " << name << " for ME/PS jet matching." << std::endl;
62 
63  return plugin;
64 }
T getParameter(std::string const &) const
auto_ptr< JetDefinition::Plugin > plugin
static std::auto_ptr< JetMatching > create(const edm::ParameterSet &params)
Definition: JetMatching.cc:46
T get(const Candidate &c)
Definition: component.h:55
const std::vector<JetPartonMatch>& lhef::JetMatching::getMatchSummary ( ) const
inline

Definition at line 64 of file JetMatching.h.

References matchSummary.

65  { return matchSummary; }
std::vector< JetPartonMatch > matchSummary
Definition: JetMatching.h:74
void lhef::JetMatching::init ( const boost::shared_ptr< LHERunInfo > &  runInfo)
virtual

Definition at line 29 of file JetMatching.cc.

30 {
31 }
virtual double lhef::JetMatching::match ( const HepMC::GenEvent *  partonLevel,
const HepMC::GenEvent *  finalState,
bool  showeredFinalState = false 
)
pure virtual

Implemented in lhef::JetMatchingMLM.

Member Data Documentation

std::vector<JetPartonMatch> lhef::JetMatching::matchSummary
protected

Definition at line 74 of file JetMatching.h.

Referenced by getMatchSummary(), and lhef::JetMatchingMLM::match().