CMS 3D CMS Logo

Public Member Functions | Public Attributes | Private Attributes

FWLiteJetProducer Class Reference

#include <FWLiteJetProducer.h>

List of all members.

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_
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.

FWLiteJetProducer::~FWLiteJetProducer ( )

destructor

Definition at line 43 of file FWLiteJetProducer.cc.

                                      {       
  delete algoIC_;
  delete algoMC_;
}

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, 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_.

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]

Definition at line 74 of file FWLiteJetProducer.h.

References debug_.

{return  debug_;}
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_.

double FWLiteJetProducer::getPtMin ( ) [inline]

Definition at line 70 of file FWLiteJetProducer.h.

References ptMin_.

{return ptMin_ ;}
double FWLiteJetProducer::getRParam ( ) [inline]

Definition at line 72 of file FWLiteJetProducer.h.

References rparam_.

{return  rparam_;}
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().

                                                                                            {
  // FastJetFWLiteWrapper algo;
  if (fInput.empty ()) {
    std::cout << "empty input for jet algorithm: bypassing..." << std::endl;
  }
  else {                                      
    algoF_.run(fInput, &(*fOutput));
  } 
}
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().

                                                                                                     {        
  if (fInput.empty ()) {
    std::cout << "empty input for jet algorithm: bypassing..." << std::endl;
  }
  else {                                      
    algoIC_->run(fInput, & (*fOutput));
  }     
}       
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().

                                                                                                {
  //  CMSMidpointAlgorithm algo;
  if (fInput.empty ()) {
    std::cout << "empty input for jet algorithm: bypassing..." << std::endl;
  }
  else {                                      
    algoMC_->run(fInput, &(*fOutput));
  } 
}
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 ( )

Member Data Documentation

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.

Fraction of (alowed) overlapping.

Definition at line 108 of file FWLiteJetProducer.h.

Referenced by getConeAreaFraction(), and setConeAreaFraction().

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().

????

Definition at line 112 of file FWLiteJetProducer.h.

Referenced by getMaxIterations(), and setMaxIterations().

????

Definition at line 110 of file FWLiteJetProducer.h.

Referenced by getMaxPairSize(), and setMaxPairSize().

Minimum energy for jet constituents.

Definition at line 102 of file FWLiteJetProducer.h.

Referenced by getmEInputCut(), and setmEInputCut().

Minimum ET for jet constituents.

Definition at line 100 of file FWLiteJetProducer.h.

Referenced by getmEtInputCut(), and setmEtInputCut().

????

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().

Seed to start jet reconstruction.

Definition at line 104 of file FWLiteJetProducer.h.

Referenced by getSeedThreshold(), and setSeedThreshold().