#include <FWLiteJetProducer.h>
Public Member Functions | |
void | applyCuts (const reco::CandidatePtrVector &Candidates, JetReco::InputCollection *input) |
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_ |
CMSIterativeConeAlgorithm * | algoIC_ |
Jet Algos --------------------------------------------. | |
CMSMidpointAlgorithm * | algoMC_ |
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. |
Definition at line 22 of file FWLiteJetProducer.h.
FWLiteJetProducer::FWLiteJetProducer | ( | ) |
default constructor
Definition at line 23 of file FWLiteJetProducer.cc.
{ mEtInputCut_=0.5; mEInputCut_=0.; seedThreshold_=1.0; coneRadius_=0.5; coneAreaFraction_=1.0; maxPairSize_=2; maxIterations_=100; overlapThreshold_=0.75; ptMin_=10.; rparam_=1.; algoIC_=0; algoMC_=0; }
FWLiteJetProducer::~FWLiteJetProducer | ( | ) |
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, edm::PtrVector< T >::push_back(), and edm::PtrVectorBase::size().
Referenced by PFRootEventManager::reconstructFWLiteJets().
{ //edm::OrphanHandle< reco::CandidateCollection > CandidateHandle(&(Candidates), edm::ProductID(20001) ); input->reserve ( Candidates.size()); //cout<<" Candidate " << CandidateHandle->size()<<Candidates.size() << endl; for (unsigned i = 0; i <Candidates.size() ; i++) { const reco::Candidate* constituent = Candidates[i].get(); if ((mEtInputCut_ <= 0 || constituent->et() > mEtInputCut_) && (mEInputCut_ <= 0 || constituent->energy() > mEInputCut_)) { input->push_back (InputItem(constituent,i)); } } }
double FWLiteJetProducer::getConeAreaFraction | ( | ) | [inline] |
Get fraction of (alowed) overlapping.
Definition at line 62 of file FWLiteJetProducer.h.
References coneAreaFraction_.
{return coneAreaFraction_;}
double FWLiteJetProducer::getConeRadius | ( | ) | [inline] |
Get radius of the cone.
Definition at line 60 of file FWLiteJetProducer.h.
References coneRadius_.
{return coneRadius_;}
bool FWLiteJetProducer::getDebug | ( | ) | [inline] |
int FWLiteJetProducer::getMaxIterations | ( | ) | [inline] |
????
Definition at line 66 of file FWLiteJetProducer.h.
References maxIterations_.
{return maxIterations_;}
int FWLiteJetProducer::getMaxPairSize | ( | ) | [inline] |
????
Definition at line 64 of file FWLiteJetProducer.h.
References maxPairSize_.
{return maxPairSize_;}
double FWLiteJetProducer::getmEInputCut | ( | ) | [inline] |
Minimum E for jet constituents.
Definition at line 56 of file FWLiteJetProducer.h.
References mEInputCut_.
{return mEInputCut_;}
double FWLiteJetProducer::getmEtInputCut | ( | ) | [inline] |
Minimum ET for jet constituents.
Definition at line 54 of file FWLiteJetProducer.h.
References mEtInputCut_.
{return mEtInputCut_;}
double FWLiteJetProducer::getOverlapThreshold | ( | ) | [inline] |
????
Definition at line 68 of file FWLiteJetProducer.h.
References overlapThreshold_.
{return overlapThreshold_;}
double FWLiteJetProducer::getPtMin | ( | ) | [inline] |
double FWLiteJetProducer::getRParam | ( | ) | [inline] |
double FWLiteJetProducer::getSeedThreshold | ( | ) | [inline] |
Get seed to start jet reconstruction.
Definition at line 58 of file FWLiteJetProducer.h.
References seedThreshold_.
{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 gather_cfg::cout.
Referenced by PFRootEventManager::reconstructFWLiteJets().
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 gather_cfg::cout.
Referenced by PFRootEventManager::reconstructFWLiteJets().
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 gather_cfg::cout.
Referenced by PFRootEventManager::reconstructFWLiteJets().
void FWLiteJetProducer::print | ( | void | ) |
Definition at line 63 of file FWLiteJetProducer.cc.
References gather_cfg::cout.
{ cout <<"--- FWLiteJetProducer:Print(): ---" << endl; cout <<"Cut: mEtInputCut " << mEtInputCut_ <<endl; cout <<"Cut: mEInputCut " << mEInputCut_<<endl; cout <<"IC/MC: seedThreshold " << seedThreshold_ <<endl; cout <<"IC/MC: coneRadius " << coneRadius_ <<endl; cout <<"MC: coneAreaFraction " << coneAreaFraction_ <<endl; cout <<"MC: maxPairSize " <<maxPairSize_ <<endl; cout <<"MC: maxIterations " << maxIterations_ <<endl; cout <<"MC: overlapThreshold " << overlapThreshold_<<endl; cout <<"FJ: PtMin " << ptMin_ <<endl; cout <<"FJ: Rparam " << rparam_<<endl; cout <<"----------------------------------" << endl; }
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().
{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().
{coneRadius_=aConeRadius;}
void FWLiteJetProducer::setDebug | ( | bool | aDebug | ) | [inline] |
Definition at line 95 of file FWLiteJetProducer.h.
References debug_.
Referenced by PFRootEventManager::readOptions().
{debug_=aDebug;}
void FWLiteJetProducer::setMaxIterations | ( | int | amaxIteration | ) | [inline] |
????
Definition at line 90 of file FWLiteJetProducer.h.
References maxIterations_.
Referenced by PFRootEventManager::readOptions().
{maxIterations_=amaxIteration;}
void FWLiteJetProducer::setMaxPairSize | ( | int | aMaxPairSize | ) | [inline] |
????
Definition at line 88 of file FWLiteJetProducer.h.
References maxPairSize_.
Referenced by PFRootEventManager::readOptions().
{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().
{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().
{mEtInputCut_=amEtInputCut;}
void FWLiteJetProducer::setOverlapThreshold | ( | double | aOverlapThreshold | ) | [inline] |
????
Definition at line 92 of file FWLiteJetProducer.h.
References overlapThreshold_.
Referenced by PFRootEventManager::readOptions().
{overlapThreshold_=aOverlapThreshold;}
void FWLiteJetProducer::setPtMin | ( | double | aPtMin | ) | [inline] |
Definition at line 93 of file FWLiteJetProducer.h.
References ptMin_.
Referenced by PFRootEventManager::readOptions().
{ptMin_=aPtMin;}
void FWLiteJetProducer::setRParam | ( | double | aRparam | ) | [inline] |
Definition at line 94 of file FWLiteJetProducer.h.
References rparam_.
Referenced by PFRootEventManager::readOptions().
{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().
{seedThreshold_=aSeedThreshold;}
void FWLiteJetProducer::updateParameter | ( | ) |
Definition at line 49 of file FWLiteJetProducer.cc.
References reco::print().
Referenced by PFRootEventManager::readOptions().
{ if (algoIC_) delete algoIC_; if (algoMC_) delete algoMC_; algoIC_= new CMSIterativeConeAlgorithm(seedThreshold_,coneRadius_ ); algoMC_= new CMSMidpointAlgorithm(seedThreshold_, coneRadius_,coneAreaFraction_, maxPairSize_, maxIterations_, overlapThreshold_, 0) ; algoF_.setPtMin(ptMin_); algoF_.setRParam(rparam_); print(); }
Definition at line 49 of file FWLiteJetProducer.h.
Jet Algos --------------------------------------------.
Definition at line 48 of file FWLiteJetProducer.h.
Definition at line 50 of file FWLiteJetProducer.h.
double FWLiteJetProducer::coneAreaFraction_ [private] |
Fraction of (alowed) overlapping.
Definition at line 108 of file FWLiteJetProducer.h.
Referenced by getConeAreaFraction(), and setConeAreaFraction().
double FWLiteJetProducer::coneRadius_ [private] |
Radius of the cone.
Definition at line 106 of file FWLiteJetProducer.h.
Referenced by getConeRadius(), and setConeRadius().
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 getMaxIterations(), and setMaxIterations().
int FWLiteJetProducer::maxPairSize_ [private] |
????
Definition at line 110 of file FWLiteJetProducer.h.
Referenced by getMaxPairSize(), and setMaxPairSize().
double FWLiteJetProducer::mEInputCut_ [private] |
Minimum energy for jet constituents.
Definition at line 102 of file FWLiteJetProducer.h.
Referenced by getmEInputCut(), and setmEInputCut().
double FWLiteJetProducer::mEtInputCut_ [private] |
Minimum ET for jet constituents.
Definition at line 100 of file FWLiteJetProducer.h.
Referenced by getmEtInputCut(), and setmEtInputCut().
double FWLiteJetProducer::overlapThreshold_ [private] |
????
Definition at line 114 of file FWLiteJetProducer.h.
Referenced by getOverlapThreshold(), and setOverlapThreshold().
double FWLiteJetProducer::ptMin_ [private] |
Definition at line 115 of file FWLiteJetProducer.h.
Referenced by getPtMin(), and setPtMin().
double FWLiteJetProducer::rparam_ [private] |
Definition at line 116 of file FWLiteJetProducer.h.
Referenced by getRParam(), and setRParam().
double FWLiteJetProducer::seedThreshold_ [private] |
Seed to start jet reconstruction.
Definition at line 104 of file FWLiteJetProducer.h.
Referenced by getSeedThreshold(), and setSeedThreshold().