CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes | Private Attributes
FWLiteJetProducer Class Reference

#include <FWLiteJetProducer.h>

Public Member Functions

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

Public Attributes

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

Private Attributes

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

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.

23  {
24 
25  mEtInputCut_=0.5;
26  mEInputCut_=0.;
27  seedThreshold_=1.0;
28  coneRadius_=0.5;
30  maxPairSize_=2;
31  maxIterations_=100;
32  overlapThreshold_=0.75;
33  ptMin_=10.;
34  rparam_=1.;
35  algoIC_=0;
36  algoMC_=0;
37 }
double coneAreaFraction_
Fraction of (alowed) overlapping.
double mEtInputCut_
Minimum ET for jet constituents.
CMSMidpointAlgorithm * algoMC_
CMSIterativeConeAlgorithm * algoIC_
Jet Algos -----------------------------------------—.
double seedThreshold_
Seed to start jet reconstruction.
double coneRadius_
Radius of the cone.
double mEInputCut_
Minimum energy for jet constituents.
double overlapThreshold_
????
FWLiteJetProducer::~FWLiteJetProducer ( )

destructor

Definition at line 43 of file FWLiteJetProducer.cc.

43  {
44  delete algoIC_;
45  delete algoMC_;
46 }
CMSMidpointAlgorithm * algoMC_
CMSIterativeConeAlgorithm * algoIC_
Jet Algos -----------------------------------------—.

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

85  {
87  //edm::OrphanHandle< reco::CandidateCollection > CandidateHandle(&(Candidates), edm::ProductID(20001) );
88 
89  input->reserve ( Candidates.size());
90  //cout<<" Candidate " << CandidateHandle->size()<<Candidates.size() << endl;
91  for (unsigned i = 0; i <Candidates.size() ; i++) {
92  const reco::Candidate* constituent = Candidates[i].get();
93 
94  if ((mEtInputCut_ <= 0 || constituent->et() > mEtInputCut_) &&
95  (mEInputCut_ <= 0 || constituent->energy() > mEInputCut_)) {
96  input->push_back (InputItem(constituent,i));
97  }
98  }
99 }
int i
Definition: DBlmapReader.cc:9
size_type size() const
Size of the RefVector.
Definition: PtrVectorBase.h:73
double mEtInputCut_
Minimum ET for jet constituents.
CorrectedIndexedCandidate InputItem
Definition: JetRecoTypes.h:60
double mEInputCut_
Minimum energy for jet constituents.
double FWLiteJetProducer::getConeAreaFraction ( )
inline

Get fraction of (alowed) overlapping.

Definition at line 62 of file FWLiteJetProducer.h.

References coneAreaFraction_.

62 {return coneAreaFraction_;}
double coneAreaFraction_
Fraction of (alowed) overlapping.
double FWLiteJetProducer::getConeRadius ( )
inline

Get radius of the cone.

Definition at line 60 of file FWLiteJetProducer.h.

References coneRadius_.

60 {return coneRadius_;}
double coneRadius_
Radius of the cone.
bool FWLiteJetProducer::getDebug ( )
inline

Definition at line 74 of file FWLiteJetProducer.h.

References debug_.

74 {return debug_;}
int FWLiteJetProducer::getMaxIterations ( )
inline

????

Definition at line 66 of file FWLiteJetProducer.h.

References maxIterations_.

66 {return maxIterations_;}
int FWLiteJetProducer::getMaxPairSize ( )
inline

????

Definition at line 64 of file FWLiteJetProducer.h.

References maxPairSize_.

64 {return maxPairSize_;}
double FWLiteJetProducer::getmEInputCut ( )
inline

Minimum E for jet constituents.

Definition at line 56 of file FWLiteJetProducer.h.

References mEInputCut_.

56 {return mEInputCut_;}
double mEInputCut_
Minimum energy for jet constituents.
double FWLiteJetProducer::getmEtInputCut ( )
inline

Minimum ET for jet constituents.

Definition at line 54 of file FWLiteJetProducer.h.

References mEtInputCut_.

54 {return mEtInputCut_;}
double mEtInputCut_
Minimum ET for jet constituents.
double FWLiteJetProducer::getOverlapThreshold ( )
inline

????

Definition at line 68 of file FWLiteJetProducer.h.

References overlapThreshold_.

68 {return overlapThreshold_;}
double overlapThreshold_
????
double FWLiteJetProducer::getPtMin ( )
inline

Definition at line 70 of file FWLiteJetProducer.h.

References ptMin_.

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

Definition at line 72 of file FWLiteJetProducer.h.

References rparam_.

72 {return rparam_;}
double FWLiteJetProducer::getSeedThreshold ( )
inline

Get seed to start jet reconstruction.

Definition at line 58 of file FWLiteJetProducer.h.

References seedThreshold_.

58 {return seedThreshold_;}
double seedThreshold_
Seed to start jet reconstruction.
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().

112  {
113  // FastJetFWLiteWrapper algo;
114  if (fInput.empty ()) {
115  std::cout << "empty input for jet algorithm: bypassing..." << std::endl;
116  }
117  else {
118  algoF_.run(fInput, &(*fOutput));
119  }
120 }
void run(const JetReco::InputCollection &fInput, JetReco::OutputCollection *fOutput)
FastJetFWLiteWrapper algoF_
tuple cout
Definition: gather_cfg.py:121
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().

102  {
103  if (fInput.empty ()) {
104  std::cout << "empty input for jet algorithm: bypassing..." << std::endl;
105  }
106  else {
107  algoIC_->run(fInput, & (*fOutput));
108  }
109 }
CMSIterativeConeAlgorithm * algoIC_
Jet Algos -----------------------------------------—.
void run(const JetReco::InputCollection &fInput, JetReco::OutputCollection *fOutput) const
Find the ProtoJets from the collection of input Candidates.
tuple cout
Definition: gather_cfg.py:121
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().

123  {
124  // CMSMidpointAlgorithm algo;
125  if (fInput.empty ()) {
126  std::cout << "empty input for jet algorithm: bypassing..." << std::endl;
127  }
128  else {
129  algoMC_->run(fInput, &(*fOutput));
130  }
131 }
CMSMidpointAlgorithm * algoMC_
tuple cout
Definition: gather_cfg.py:121
void run(const JetReco::InputCollection &fInput, JetReco::OutputCollection *fOutput)
void FWLiteJetProducer::print ( void  )

Definition at line 63 of file FWLiteJetProducer.cc.

References gather_cfg::cout.

63  {
64 
65  cout <<"--- FWLiteJetProducer:Print(): ---" << endl;
66 
67  cout <<"Cut: mEtInputCut " << mEtInputCut_ <<endl;
68  cout <<"Cut: mEInputCut " << mEInputCut_<<endl;
69  cout <<"IC/MC: seedThreshold " << seedThreshold_ <<endl;
70  cout <<"IC/MC: coneRadius " << coneRadius_ <<endl;
71  cout <<"MC: coneAreaFraction " << coneAreaFraction_ <<endl;
72  cout <<"MC: maxPairSize " <<maxPairSize_ <<endl;
73  cout <<"MC: maxIterations " << maxIterations_ <<endl;
74  cout <<"MC: overlapThreshold " << overlapThreshold_<<endl;
75  cout <<"FJ: PtMin " << ptMin_ <<endl;
76  cout <<"FJ: Rparam " << rparam_<<endl;
77  cout <<"----------------------------------" << endl;
78 
79 }
double coneAreaFraction_
Fraction of (alowed) overlapping.
double mEtInputCut_
Minimum ET for jet constituents.
double seedThreshold_
Seed to start jet reconstruction.
double coneRadius_
Radius of the cone.
tuple cout
Definition: gather_cfg.py:121
double mEInputCut_
Minimum energy for jet constituents.
double overlapThreshold_
????
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().

86 {coneAreaFraction_=aConeAreaFraction;}
double coneAreaFraction_
Fraction of (alowed) overlapping.
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().

84 {coneRadius_=aConeRadius;}
double coneRadius_
Radius of the cone.
void FWLiteJetProducer::setDebug ( bool  aDebug)
inline

Definition at line 95 of file FWLiteJetProducer.h.

References debug_.

Referenced by PFRootEventManager::readOptions().

95 {debug_=aDebug;}
void FWLiteJetProducer::setMaxIterations ( int  amaxIteration)
inline

????

Definition at line 90 of file FWLiteJetProducer.h.

References maxIterations_.

Referenced by PFRootEventManager::readOptions().

90 {maxIterations_=amaxIteration;}
void FWLiteJetProducer::setMaxPairSize ( int  aMaxPairSize)
inline

????

Definition at line 88 of file FWLiteJetProducer.h.

References maxPairSize_.

Referenced by PFRootEventManager::readOptions().

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

80 {mEInputCut_=amEInputCut;}
double mEInputCut_
Minimum energy for jet constituents.
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().

78 {mEtInputCut_=amEtInputCut;}
double mEtInputCut_
Minimum ET for jet constituents.
void FWLiteJetProducer::setOverlapThreshold ( double  aOverlapThreshold)
inline

????

Definition at line 92 of file FWLiteJetProducer.h.

References overlapThreshold_.

Referenced by PFRootEventManager::readOptions().

92 {overlapThreshold_=aOverlapThreshold;}
double overlapThreshold_
????
void FWLiteJetProducer::setPtMin ( double  aPtMin)
inline

Definition at line 93 of file FWLiteJetProducer.h.

References ptMin_.

Referenced by PFRootEventManager::readOptions().

93 {ptMin_=aPtMin;}
void FWLiteJetProducer::setRParam ( double  aRparam)
inline

Definition at line 94 of file FWLiteJetProducer.h.

References rparam_.

Referenced by PFRootEventManager::readOptions().

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

82 {seedThreshold_=aSeedThreshold;}
double seedThreshold_
Seed to start jet reconstruction.
void FWLiteJetProducer::updateParameter ( )

Definition at line 49 of file FWLiteJetProducer.cc.

References reco::print().

Referenced by PFRootEventManager::readOptions().

49  {
50 
51  if (algoIC_) delete algoIC_;
52  if (algoMC_) delete algoMC_;
58  print();
59 }
double coneAreaFraction_
Fraction of (alowed) overlapping.
CMSMidpointAlgorithm * algoMC_
CMSIterativeConeAlgorithm * algoIC_
Jet Algos -----------------------------------------—.
void setRParam(double aRparam)
FastJetFWLiteWrapper algoF_
void setPtMin(double aPtMin)
double seedThreshold_
Seed to start jet reconstruction.
double coneRadius_
Radius of the cone.
double overlapThreshold_
????

Member Data Documentation

FastJetFWLiteWrapper FWLiteJetProducer::algoF_

Definition at line 49 of file FWLiteJetProducer.h.

CMSIterativeConeAlgorithm* FWLiteJetProducer::algoIC_

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

Definition at line 48 of file FWLiteJetProducer.h.

CMSMidpointAlgorithm* FWLiteJetProducer::algoMC_

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