CMS 3D CMS Logo

Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes

lhef::JetMatching Class Reference

#include <JetMatching.h>

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

List of all members.

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

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

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.

{
}
lhef::JetMatching::~JetMatching ( ) [virtual]

Definition at line 25 of file JetMatching.cc.

{
}

Member Function Documentation

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

Reimplemented in lhef::JetMatchingMadgraph.

Definition at line 33 of file JetMatching.cc.

{
}
std::set< std::string > lhef::JetMatching::capabilities ( ) const [virtual]

Reimplemented in lhef::JetMatchingMLM, and lhef::JetMatchingMadgraph.

Definition at line 38 of file JetMatching.cc.

References query::result.

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

{
        std::set<std::string> result;
        result.insert("psFinalState");
        result.insert("hepmc");
        return result;
}
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, and python::pfTaus_cff::plugin.

{
        std::string name = params.getParameter<std::string>("scheme");

        std::auto_ptr<JetMatching> plugin(
                Factory::get()->create("JetMatching" + name, params));

        if (!plugin.get())
                throw cms::Exception("InvalidJetMatching")
                        << "Unknown scheme \"" << name << "\""
                           " specified for jet matching in LHEProducer."
                        << std::endl;

        edm::LogInfo("Generator|LHEInterface")
                << "Using " << name << " for ME/PS jet matching." << std::endl;

        return plugin;
}
const std::vector<JetPartonMatch>& lhef::JetMatching::getMatchSummary ( ) const [inline]

Definition at line 64 of file JetMatching.h.

References matchSummary.

        { return matchSummary; }
void lhef::JetMatching::init ( const boost::shared_ptr< LHERunInfo > &  runInfo) [virtual]

Reimplemented in lhef::JetMatchingMadgraph.

Definition at line 29 of file JetMatching.cc.

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

Member Data Documentation

Definition at line 74 of file JetMatching.h.

Referenced by getMatchSummary().