CMS 3D CMS Logo

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

gen::JetMatching Class Reference

#include <JetMatching.h>

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

List of all members.

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.

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

Definition at line 23 of file JetMatching.cc.

{
}

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::JetMatchingAlpgen, and gen::JetMatchingMadgraph.

Definition at line 39 of file JetMatching.cc.

References query::result.

{
        std::set<std::string> result;
        result.insert("psFinalState");
        result.insert("hepmc");
        return result;
}
std::auto_ptr< JetMatching > gen::JetMatching::create ( const edm::ParameterSet params) [static]

Definition at line 47 of file JetMatching.cc.

References Exception, edm::ParameterSet::getParameter(), and AlCaHLTBitMon_QueryRunRegistry::string.

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

        std::auto_ptr<JetMatching> matching;

        if (scheme == "Madgraph")
        {
                matching.reset(new JetMatchingMadgraph(params));
        }
        else if (scheme == "Alpgen")
        {
                matching.reset(new JetMatchingAlpgen(params));
        }
        else if (scheme == "MLM")
        {
                matching.reset();
        }
        else
                throw cms::Exception("InvalidJetMatching")
                        << "Unknown scheme \"" << scheme << "\""
                           " specified for parton-shower matching."
                        << std::endl;

        if (!matching.get())
                throw cms::Exception("InvalidJetMatching")
                        << "Port of " << scheme << "scheme \"" << "\""
                           " for parton-shower matching is still in progress."
                        << std::endl;

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

Definition at line 69 of file JetMatching.h.

References matchSummary.

        { return matchSummary; }
void gen::JetMatching::init ( const lhef::LHERunInfo runInfo) [virtual]
bool gen::JetMatching::isMatchingDone ( ) [inline]
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().

{ fMatchingStatus = false; }

Member Data Documentation

Definition at line 77 of file JetMatching.h.

Referenced by getMatchSummary().