CMS 3D CMS Logo

lhef::JetClustering Class Reference

#include <GeneratorInterface/LHEInterface/interface/JetClustering.h>

List of all members.

Public Types

typedef ROOT::Math::PxPyPzE4D
< double > 
FourVector
typedef JetInput::ParticleVector ParticleVector

Public Member Functions

double getJetPtMin () const
 JetClustering (const edm::ParameterSet &params, double jetPtMin)
 JetClustering (const edm::ParameterSet &params)
std::vector< Jetoperator() (const ParticleVector &input) const
 ~JetClustering ()

Private Member Functions

void init (const edm::ParameterSet &params, double jetPtMin)

Private Attributes

std::auto_ptr< AlgorithmjetAlgo

Classes

class  Algorithm
class  Jet


Detailed Description

Definition at line 15 of file JetClustering.h.


Member Typedef Documentation

typedef ROOT::Math::PxPyPzE4D<double> lhef::JetClustering::FourVector

Definition at line 18 of file JetClustering.h.

typedef JetInput::ParticleVector lhef::JetClustering::ParticleVector

Definition at line 17 of file JetClustering.h.


Constructor & Destructor Documentation

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

Definition at line 156 of file JetClustering.cc.

References edm::ParameterSet::getParameter(), and init().

00157 {
00158         double jetPtMin = params.getParameter<double>("jetPtMin");
00159         init(params, jetPtMin);
00160 }

lhef::JetClustering::JetClustering ( const edm::ParameterSet params,
double  jetPtMin 
)

Definition at line 162 of file JetClustering.cc.

References init().

00164 {
00165         init(params, jetPtMin);
00166 }

lhef::JetClustering::~JetClustering (  ) 

Definition at line 168 of file JetClustering.cc.

00169 {
00170 }


Member Function Documentation

double lhef::JetClustering::getJetPtMin (  )  const

Definition at line 188 of file JetClustering.cc.

References jetAlgo.

00189 {
00190         return jetAlgo->getJetPtMin();
00191 }

void lhef::JetClustering::init ( const edm::ParameterSet params,
double  jetPtMin 
) [private]

Definition at line 172 of file JetClustering.cc.

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

Referenced by JetClustering().

00173 {
00174         edm::ParameterSet algoParams =
00175                         params.getParameter<edm::ParameterSet>("algorithm");
00176         std::string algoName = algoParams.getParameter<std::string>("name");
00177 
00178         if (algoName == "KT")
00179                 jetAlgo.reset(new KtAlgorithm(algoParams, jetPtMin));
00180         else if (algoName == "SISCone")
00181                 jetAlgo.reset(new SISConeAlgorithm(algoParams, jetPtMin));
00182         else
00183                 throw cms::Exception("Configuration")
00184                         << "JetClustering algorithm \"" << algoName
00185                         << "\" unknown." << std::endl;
00186 }

std::vector< JetClustering::Jet > lhef::JetClustering::operator() ( const ParticleVector input  )  const

Definition at line 193 of file JetClustering.cc.

References jetAlgo.

00195 {
00196         return (*jetAlgo)(input);
00197 }


Member Data Documentation

std::auto_ptr<Algorithm> lhef::JetClustering::jetAlgo [private]

Definition at line 70 of file JetClustering.h.

Referenced by getJetPtMin(), init(), and operator()().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:48:46 2009 for CMSSW by  doxygen 1.5.4