CMS 3D CMS Logo

FWLiteJetProducer Class Reference

#include <RecoParticleFlow/PFRootEvent/interface/FWLiteJetProducer.h>

List of all members.

Public Member Functions

void applyCuts (const reco::CandidatePtrVector &Candidates, JetReco::InputCollection *input)
 Apply Et and E cuts on input object to jet algorihms, prepare InputCollection to Jet Algo.
 FWLiteJetProducer ()
 default constructor
double getConeAreaFraction ()
 Get fraction of (alowed) overlapping.
double getConeRadius ()
 Get radius of the cone.
bool getDebug ()
int getMaxIterations ()
 ????
int getMaxPairSize ()
 ????
double getmEInputCut ()
 Minimum E for jet constituents.
double getmEtInputCut ()
 Minimum ET for jet constituents.
double getOverlapThreshold ()
 ????
double getPtMin ()
double getRParam ()
double getSeedThreshold ()
 Get seed to start jet reconstruction.
void makeFastJets (const JetReco::InputCollection &fInput, JetReco::OutputCollection *fOutput)
 Produce jet collection using CMS Fast Jet Algorithm.
void makeIterativeConeJets (const JetReco::InputCollection &fInput, JetReco::OutputCollection *fOutput)
 Produce jet collection using CMS Iterative Cone Algorithm.
void makeMidpointJets (const JetReco::InputCollection &fInput, JetReco::OutputCollection *fOutput)
 Produce jet collection using CMS Midpoint Jet Algorithm.
void print ()
void setConeAreaFraction (double aConeAreaFraction)
 Set fraction of (alowed) overlapping.
void setConeRadius (double aConeRadius)
 Set radius of the cone.
void setDebug (bool aDebug)
void setMaxIterations (int amaxIteration)
 ????
void setMaxPairSize (int aMaxPairSize)
 ????
void setmEInputCut (double amEInputCut)
 Minimum E for jet constituents.
void setmEtInputCut (double amEtInputCut)
 Minimum ET for jet constituents.
void setOverlapThreshold (double aOverlapThreshold)
 ????
void setPtMin (double aPtMin)
void setRParam (double aRparam)
void setSeedThreshold (double aSeedThreshold)
 Set seed to start jet reconstruction.
void updateParameter ()
 ~FWLiteJetProducer ()
 destructor

Public Attributes

FastJetFWLiteWrapper algoF_
CMSIterativeConeAlgorithmalgoIC_
 Jet Algos --------------------------------------------.
CMSMidpointAlgorithmalgoMC_

Private Attributes

double coneAreaFraction_
 Fraction of (alowed) overlapping.
double coneRadius_
 Radius of the cone.
bool debug_
int maxIterations_
 ????
int maxPairSize_
 ????
double mEInputCut_
 Minimum energy for jet constituents.
double mEtInputCut_
 Minimum ET for jet constituents.
double overlapThreshold_
 ????
double ptMin_
double rparam_
double seedThreshold_
 Seed to start jet reconstruction.


Detailed Description

Definition at line 22 of file FWLiteJetProducer.h.


Constructor & Destructor Documentation

FWLiteJetProducer::FWLiteJetProducer (  ) 

default constructor

Author:
Joanna Weng
Date:
July 2006

Definition at line 23 of file FWLiteJetProducer.cc.

References algoIC_, algoMC_, coneAreaFraction_, coneRadius_, maxIterations_, maxPairSize_, mEInputCut_, mEtInputCut_, overlapThreshold_, ptMin_, rparam_, and seedThreshold_.

00023                                     { 
00024 
00025   mEtInputCut_=0.5;     
00026   mEInputCut_=0.;
00027   seedThreshold_=1.0;
00028   coneRadius_=0.5;
00029   coneAreaFraction_=1.0;
00030   maxPairSize_=2;
00031   maxIterations_=100;
00032   overlapThreshold_=0.75;
00033   ptMin_=10.;
00034   rparam_=1.;
00035   algoIC_=0;
00036   algoMC_=0;
00037 }

FWLiteJetProducer::~FWLiteJetProducer (  ) 

destructor

Definition at line 43 of file FWLiteJetProducer.cc.

References algoIC_, and algoMC_.

00043                                       {       
00044   delete algoIC_;
00045   delete algoMC_;
00046 }


Member Function Documentation

void FWLiteJetProducer::applyCuts ( const reco::CandidatePtrVector Candidates,
JetReco::InputCollection input 
)

Apply Et and E cuts on input object to jet algorihms, prepare InputCollection to Jet Algo.

!!!

Definition at line 84 of file FWLiteJetProducer.cc.

References relval_parameters_module::energy, i, mEInputCut_, mEtInputCut_, edm::PtrVector< T >::push_back(), and edm::PtrVectorBase::size().

00085                                                                 {
00087   //edm::OrphanHandle< reco::CandidateCollection >  CandidateHandle(&(Candidates), edm::ProductID(20001) );
00088 
00089   input->reserve ( Candidates.size());  
00090   //cout<<" Candidate " << CandidateHandle->size()<<Candidates.size() << endl;
00091   for (unsigned i = 0; i <Candidates.size() ; i++) {
00092     const reco::Candidate* constituent = Candidates[i].get();        
00093 
00094     if ((mEtInputCut_ <= 0 || constituent->et() > mEtInputCut_) &&
00095         (mEInputCut_ <= 0 || constituent->energy() > mEInputCut_)) {                    
00096       input->push_back (InputItem(constituent,i));                  
00097     }
00098   }
00099 }

double FWLiteJetProducer::getConeAreaFraction (  )  [inline]

Get fraction of (alowed) overlapping.

Definition at line 62 of file FWLiteJetProducer.h.

References coneAreaFraction_.

00062 {return coneAreaFraction_;}

double FWLiteJetProducer::getConeRadius (  )  [inline]

Get radius of the cone.

Definition at line 60 of file FWLiteJetProducer.h.

References coneRadius_.

00060 {return coneRadius_;}

bool FWLiteJetProducer::getDebug (  )  [inline]

Definition at line 74 of file FWLiteJetProducer.h.

References debug_.

00074 {return  debug_;}

int FWLiteJetProducer::getMaxIterations (  )  [inline]

????

Definition at line 66 of file FWLiteJetProducer.h.

References maxIterations_.

00066 {return maxIterations_;} 

int FWLiteJetProducer::getMaxPairSize (  )  [inline]

????

Definition at line 64 of file FWLiteJetProducer.h.

References maxPairSize_.

00064 {return maxPairSize_;}

double FWLiteJetProducer::getmEInputCut (  )  [inline]

Minimum E for jet constituents.

Definition at line 56 of file FWLiteJetProducer.h.

References mEInputCut_.

00056 {return mEInputCut_;}

double FWLiteJetProducer::getmEtInputCut (  )  [inline]

Minimum ET for jet constituents.

Definition at line 54 of file FWLiteJetProducer.h.

References mEtInputCut_.

00054 {return mEtInputCut_;}

double FWLiteJetProducer::getOverlapThreshold (  )  [inline]

????

Definition at line 68 of file FWLiteJetProducer.h.

References overlapThreshold_.

00068 {return overlapThreshold_;}

double FWLiteJetProducer::getPtMin (  )  [inline]

Definition at line 70 of file FWLiteJetProducer.h.

References ptMin_.

00070 {return ptMin_ ;}

double FWLiteJetProducer::getRParam (  )  [inline]

Definition at line 72 of file FWLiteJetProducer.h.

References rparam_.

00072 {return  rparam_;}

double FWLiteJetProducer::getSeedThreshold (  )  [inline]

Get seed to start jet reconstruction.

Definition at line 58 of file FWLiteJetProducer.h.

References seedThreshold_.

00058 {return seedThreshold_;}

void FWLiteJetProducer::makeFastJets ( const JetReco::InputCollection fInput,
JetReco::OutputCollection fOutput 
)

Produce jet collection using CMS Fast Jet Algorithm.

Definition at line 112 of file FWLiteJetProducer.cc.

References algoF_, GenMuonPlsPt100GeV_cfg::cout, lat::endl(), and FastJetFWLiteWrapper::run().

00112                                                                                             {
00113   // FastJetFWLiteWrapper algo;
00114   if (fInput.empty ()) {
00115     std::cout << "empty input for jet algorithm: bypassing..." << std::endl;
00116   }
00117   else {                                      
00118     algoF_.run(fInput, &(*fOutput));
00119   } 
00120 }

void FWLiteJetProducer::makeIterativeConeJets ( const JetReco::InputCollection fInput,
JetReco::OutputCollection fOutput 
)

Produce jet collection using CMS Iterative Cone Algorithm.

Definition at line 102 of file FWLiteJetProducer.cc.

References algoIC_, GenMuonPlsPt100GeV_cfg::cout, lat::endl(), and CMSIterativeConeAlgorithm::run().

00102                                                                                                      {        
00103   if (fInput.empty ()) {
00104     std::cout << "empty input for jet algorithm: bypassing..." << std::endl;
00105   }
00106   else {                                      
00107     algoIC_->run(fInput, & (*fOutput));
00108   }     
00109 }       

void FWLiteJetProducer::makeMidpointJets ( const JetReco::InputCollection fInput,
JetReco::OutputCollection fOutput 
)

Produce jet collection using CMS Midpoint Jet Algorithm.

Definition at line 123 of file FWLiteJetProducer.cc.

References algoMC_, GenMuonPlsPt100GeV_cfg::cout, lat::endl(), and CMSMidpointAlgorithm::run().

00123                                                                                                 {
00124   //  CMSMidpointAlgorithm algo;
00125   if (fInput.empty ()) {
00126     std::cout << "empty input for jet algorithm: bypassing..." << std::endl;
00127   }
00128   else {                                      
00129     algoMC_->run(fInput, &(*fOutput));
00130   } 
00131 }

void FWLiteJetProducer::print ( void   ) 

Definition at line 63 of file FWLiteJetProducer.cc.

References coneAreaFraction_, coneRadius_, GenMuonPlsPt100GeV_cfg::cout, lat::endl(), maxIterations_, maxPairSize_, mEInputCut_, mEtInputCut_, overlapThreshold_, ptMin_, rparam_, and seedThreshold_.

Referenced by updateParameter().

00063                               {       
00064 
00065   cout <<"--- FWLiteJetProducer:Print(): ---" << endl;
00066 
00067   cout <<"Cut: mEtInputCut " << mEtInputCut_  <<endl;
00068   cout <<"Cut: mEInputCut " <<  mEInputCut_<<endl; 
00069   cout <<"IC/MC: seedThreshold " << seedThreshold_  <<endl;
00070   cout <<"IC/MC: coneRadius " << coneRadius_ <<endl;
00071   cout <<"MC: coneAreaFraction " << coneAreaFraction_ <<endl; 
00072   cout <<"MC: maxPairSize " <<maxPairSize_ <<endl;
00073   cout <<"MC: maxIterations " << maxIterations_ <<endl;
00074   cout <<"MC: overlapThreshold " <<  overlapThreshold_<<endl;
00075   cout <<"FJ: PtMin " << ptMin_ <<endl;
00076   cout <<"FJ: Rparam " <<  rparam_<<endl;
00077   cout <<"----------------------------------" << endl;
00078 
00079 }

void FWLiteJetProducer::setConeAreaFraction ( double  aConeAreaFraction  )  [inline]

Set fraction of (alowed) overlapping.

Definition at line 86 of file FWLiteJetProducer.h.

References coneAreaFraction_.

Referenced by PFRootEventManager::readOptions().

00086 {coneAreaFraction_=aConeAreaFraction;}

void FWLiteJetProducer::setConeRadius ( double  aConeRadius  )  [inline]

Set radius of the cone.

Definition at line 84 of file FWLiteJetProducer.h.

References coneRadius_.

Referenced by PFRootEventManager::readOptions().

00084 {coneRadius_=aConeRadius;}

void FWLiteJetProducer::setDebug ( bool  aDebug  )  [inline]

Definition at line 95 of file FWLiteJetProducer.h.

References debug_.

Referenced by PFRootEventManager::readOptions().

00095 {debug_=aDebug;}  

void FWLiteJetProducer::setMaxIterations ( int  amaxIteration  )  [inline]

????

Definition at line 90 of file FWLiteJetProducer.h.

References maxIterations_.

Referenced by PFRootEventManager::readOptions().

00090 {maxIterations_=amaxIteration;}

void FWLiteJetProducer::setMaxPairSize ( int  aMaxPairSize  )  [inline]

????

Definition at line 88 of file FWLiteJetProducer.h.

References maxPairSize_.

Referenced by PFRootEventManager::readOptions().

00088 {maxPairSize_=aMaxPairSize;}

void FWLiteJetProducer::setmEInputCut ( double  amEInputCut  )  [inline]

Minimum E for jet constituents.

Definition at line 80 of file FWLiteJetProducer.h.

References mEInputCut_.

Referenced by PFRootEventManager::readOptions().

00080 {mEInputCut_=amEInputCut;}

void FWLiteJetProducer::setmEtInputCut ( double  amEtInputCut  )  [inline]

Minimum ET for jet constituents.

Definition at line 78 of file FWLiteJetProducer.h.

References mEtInputCut_.

Referenced by PFRootEventManager::readOptions().

00078 {mEtInputCut_=amEtInputCut;}

void FWLiteJetProducer::setOverlapThreshold ( double  aOverlapThreshold  )  [inline]

????

Definition at line 92 of file FWLiteJetProducer.h.

References overlapThreshold_.

Referenced by PFRootEventManager::readOptions().

00092 {overlapThreshold_=aOverlapThreshold;}

void FWLiteJetProducer::setPtMin ( double  aPtMin  )  [inline]

Definition at line 93 of file FWLiteJetProducer.h.

References ptMin_.

Referenced by PFRootEventManager::readOptions().

00093 {ptMin_=aPtMin;}

void FWLiteJetProducer::setRParam ( double  aRparam  )  [inline]

Definition at line 94 of file FWLiteJetProducer.h.

References rparam_.

Referenced by PFRootEventManager::readOptions().

00094 {rparam_=aRparam;}

void FWLiteJetProducer::setSeedThreshold ( double  aSeedThreshold  )  [inline]

Set seed to start jet reconstruction.

Definition at line 82 of file FWLiteJetProducer.h.

References seedThreshold_.

Referenced by PFRootEventManager::readOptions().

00082 {seedThreshold_=aSeedThreshold;}

void FWLiteJetProducer::updateParameter (  ) 

Definition at line 49 of file FWLiteJetProducer.cc.

References algoF_, algoIC_, algoMC_, coneAreaFraction_, coneRadius_, maxIterations_, maxPairSize_, overlapThreshold_, print(), ptMin_, rparam_, seedThreshold_, FastJetFWLiteWrapper::setPtMin(), and FastJetFWLiteWrapper::setRParam().

Referenced by PFRootEventManager::readOptions().


Member Data Documentation

FastJetFWLiteWrapper FWLiteJetProducer::algoF_

Definition at line 49 of file FWLiteJetProducer.h.

Referenced by makeFastJets(), and updateParameter().

CMSIterativeConeAlgorithm* FWLiteJetProducer::algoIC_

Jet Algos --------------------------------------------.

Definition at line 48 of file FWLiteJetProducer.h.

Referenced by FWLiteJetProducer(), makeIterativeConeJets(), updateParameter(), and ~FWLiteJetProducer().

CMSMidpointAlgorithm* FWLiteJetProducer::algoMC_

Definition at line 50 of file FWLiteJetProducer.h.

Referenced by FWLiteJetProducer(), makeMidpointJets(), updateParameter(), and ~FWLiteJetProducer().

double FWLiteJetProducer::coneAreaFraction_ [private]

Fraction of (alowed) overlapping.

Definition at line 108 of file FWLiteJetProducer.h.

Referenced by FWLiteJetProducer(), getConeAreaFraction(), print(), setConeAreaFraction(), and updateParameter().

double FWLiteJetProducer::coneRadius_ [private]

Radius of the cone.

Definition at line 106 of file FWLiteJetProducer.h.

Referenced by FWLiteJetProducer(), getConeRadius(), print(), setConeRadius(), and updateParameter().

bool FWLiteJetProducer::debug_ [private]

Definition at line 117 of file FWLiteJetProducer.h.

Referenced by getDebug(), and setDebug().

int FWLiteJetProducer::maxIterations_ [private]

????

Definition at line 112 of file FWLiteJetProducer.h.

Referenced by FWLiteJetProducer(), getMaxIterations(), print(), setMaxIterations(), and updateParameter().

int FWLiteJetProducer::maxPairSize_ [private]

????

Definition at line 110 of file FWLiteJetProducer.h.

Referenced by FWLiteJetProducer(), getMaxPairSize(), print(), setMaxPairSize(), and updateParameter().

double FWLiteJetProducer::mEInputCut_ [private]

Minimum energy for jet constituents.

Definition at line 102 of file FWLiteJetProducer.h.

Referenced by applyCuts(), FWLiteJetProducer(), getmEInputCut(), print(), and setmEInputCut().

double FWLiteJetProducer::mEtInputCut_ [private]

Minimum ET for jet constituents.

Definition at line 100 of file FWLiteJetProducer.h.

Referenced by applyCuts(), FWLiteJetProducer(), getmEtInputCut(), print(), and setmEtInputCut().

double FWLiteJetProducer::overlapThreshold_ [private]

????

Definition at line 114 of file FWLiteJetProducer.h.

Referenced by FWLiteJetProducer(), getOverlapThreshold(), print(), setOverlapThreshold(), and updateParameter().

double FWLiteJetProducer::ptMin_ [private]

Definition at line 115 of file FWLiteJetProducer.h.

Referenced by FWLiteJetProducer(), getPtMin(), print(), setPtMin(), and updateParameter().

double FWLiteJetProducer::rparam_ [private]

Definition at line 116 of file FWLiteJetProducer.h.

Referenced by FWLiteJetProducer(), getRParam(), print(), setRParam(), and updateParameter().

double FWLiteJetProducer::seedThreshold_ [private]

Seed to start jet reconstruction.

Definition at line 104 of file FWLiteJetProducer.h.

Referenced by FWLiteJetProducer(), getSeedThreshold(), print(), setSeedThreshold(), and updateParameter().


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