CMS 3D CMS Logo

MidpointJetProducer.cc

Go to the documentation of this file.
00001 // File: MidpointJetProducer.cc
00002 // Description:  see MidpointJetProducer.h
00003 // Author:  M. Paterno
00004 // Creation Date:  MFP Apr. 6 2005 Initial version.
00005 // Revision:  R. Harris,  Oct. 19, 2005 Modified to use real CaloTowers from Jeremy Mans
00006 // Revisions:  F.Ratnikov, 8-Mar-2006, accommodate Candidate model
00007 // $Id: MidpointJetProducer.cc,v 1.23 2007/06/30 17:24:07 fedor Exp $
00008 //
00009 //--------------------------------------------
00010 #include <memory>
00011 
00012 #include "FWCore/Framework/interface/MakerMacros.h"
00013 #include "MidpointJetProducer.h"
00014 
00015 using namespace std;
00016 using namespace reco;
00017 
00018 namespace {
00019   const bool debug = false;
00020 
00021 }
00022 
00023 namespace cms
00024 {
00025 
00026   // Constructor takes input parameters now: to be replaced with parameter set.
00027 
00028   MidpointJetProducer::MidpointJetProducer(edm::ParameterSet const& conf):
00029     BaseJetProducer (conf),
00030     alg_(conf.getParameter<double>("seedThreshold"),
00031          conf.getParameter<double>("coneRadius"),
00032          conf.getParameter<double>("coneAreaFraction"),
00033          conf.getParameter<int>("maxPairSize"),
00034          conf.getParameter<int>("maxIterations"),
00035          conf.getParameter<double>("overlapThreshold"),
00036          conf.getUntrackedParameter<int>("debugLevel",0))
00037   {}
00038 
00039 
00040   // run algorithm itself
00041   bool MidpointJetProducer::runAlgorithm (const JetReco::InputCollection& fInput, 
00042                      JetReco::OutputCollection* fOutput) {
00043     alg_.run (fInput, fOutput);
00044     return true;
00045   }
00046 }
00047 

Generated on Tue Jun 9 17:43:43 2009 for CMSSW by  doxygen 1.5.4