19 using namespace JetReco;
29 coneAreaFraction_=1.0;
32 overlapThreshold_=0.75;
51 if (algoIC_)
delete algoIC_;
52 if (algoMC_)
delete algoMC_;
55 maxPairSize_, maxIterations_, overlapThreshold_, 0) ;
56 algoF_.setPtMin(ptMin_);
57 algoF_.setRParam(rparam_);
65 cout <<
"--- FWLiteJetProducer:Print(): ---" << endl;
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;
89 input->reserve ( Candidates.
size());
91 for (
unsigned i = 0;
i <Candidates.
size() ;
i++) {
94 if ((mEtInputCut_ <= 0 || constituent->et() > mEtInputCut_) &&
95 (mEInputCut_ <= 0 || constituent->
energy() > mEInputCut_)) {
103 if (fInput.empty ()) {
104 std::cout <<
"empty input for jet algorithm: bypassing..." << std::endl;
107 algoIC_->run(fInput, & (*fOutput));
114 if (fInput.empty ()) {
115 std::cout <<
"empty input for jet algorithm: bypassing..." << std::endl;
118 algoF_.run(fInput, &(*fOutput));
125 if (fInput.empty ()) {
126 std::cout <<
"empty input for jet algorithm: bypassing..." << std::endl;
129 algoMC_->run(fInput, &(*fOutput));
std::vector< ProtoJet > OutputCollection
size_type size() const
Size of the RefVector.
void makeIterativeConeJets(const JetReco::InputCollection &fInput, JetReco::OutputCollection *fOutput)
Produce jet collection using CMS Iterative Cone Algorithm.
void push_back(Ptr< T > const &iPtr)
std::vector< InputItem > InputCollection
std::string print(const Track &, edm::Verbosity=edm::Concise)
Track print utility.
void applyCuts(const reco::CandidatePtrVector &Candidates, JetReco::InputCollection *input)
~FWLiteJetProducer()
destructor
void makeMidpointJets(const JetReco::InputCollection &fInput, JetReco::OutputCollection *fOutput)
Produce jet collection using CMS Midpoint Jet Algorithm.
void makeFastJets(const JetReco::InputCollection &fInput, JetReco::OutputCollection *fOutput)
Produce jet collection using CMS Fast Jet Algorithm.
CorrectedIndexedCandidate InputItem
FWLiteJetProducer()
default constructor