CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/RecoJets/JetProducers/plugins/CMSInsideOutJetProducer.cc

Go to the documentation of this file.
00001 
00002 //
00003 // CMSInsideOutJetProducer
00004 // ------------------
00005 //
00006 //            04/21/2009 Philipp Schieferdecker <philipp.schieferdecker@cern.ch>
00008 
00009 #include "RecoJets/JetProducers/plugins/CMSInsideOutJetProducer.h"
00010 
00011 #include "RecoJets/JetProducers/interface/JetSpecific.h"
00012 
00013 #include "FWCore/Framework/interface/Event.h"
00014 #include "FWCore/Framework/interface/EventSetup.h"
00015 #include "FWCore/Framework/interface/ESHandle.h"
00016 #include "FWCore/MessageLogger/interface/MessageLogger.h"
00017 #include "FWCore/Framework/interface/MakerMacros.h"
00018 
00019 
00020 #include "DataFormats/Common/interface/View.h"
00021 #include "DataFormats/Common/interface/Handle.h"
00022 #include "DataFormats/VertexReco/interface/Vertex.h"
00023 #include "DataFormats/VertexReco/interface/VertexFwd.h"
00024 #include "DataFormats/JetReco/interface/CaloJetCollection.h"
00025 #include "DataFormats/JetReco/interface/GenJetCollection.h"
00026 #include "DataFormats/JetReco/interface/PFJetCollection.h"
00027 #include "DataFormats/JetReco/interface/BasicJetCollection.h"
00028 #include "DataFormats/Candidate/interface/CandidateFwd.h"
00029 #include "DataFormats/Candidate/interface/LeafCandidate.h"
00030 
00031 
00032 #include "Geometry/CaloGeometry/interface/CaloGeometry.h"
00033 #include "Geometry/Records/interface/CaloGeometryRecord.h"
00034 
00035 #include "fastjet/SISConePlugin.hh"
00036 #include "fastjet/CMSIterativeConePlugin.hh"
00037 #include "fastjet/ATLASConePlugin.hh"
00038 #include "fastjet/CDFMidPointPlugin.hh"
00039 
00040 
00041 #include <iostream>
00042 #include <memory>
00043 #include <algorithm>
00044 #include <limits>
00045 #include <cmath>
00046 
00047 using namespace std;
00048 
00049 
00050 
00052 // construction / destruction
00054 
00055 //______________________________________________________________________________
00056 CMSInsideOutJetProducer::CMSInsideOutJetProducer(const edm::ParameterSet& iConfig)
00057   : VirtualJetProducer( iConfig ),
00058     alg_( iConfig.getParameter<double>("seedObjectPt"),
00059           iConfig.getParameter<double>("growthParameter"), 
00060           iConfig.getParameter<double>("maxSize"), 
00061           iConfig.getParameter<double>("minSize") )
00062 {
00063 }
00064 
00065 
00066 //______________________________________________________________________________
00067 CMSInsideOutJetProducer::~CMSInsideOutJetProducer()
00068 {
00069 } 
00070 
00071 
00073 // implementation of member functions
00075 
00076 void CMSInsideOutJetProducer::produce( edm::Event & iEvent, const edm::EventSetup & iSetup )
00077 {
00078   VirtualJetProducer::produce( iEvent, iSetup );
00079 }
00080 
00081 //______________________________________________________________________________
00082 void CMSInsideOutJetProducer::runAlgorithm( edm::Event & iEvent, edm::EventSetup const& iSetup)
00083 {
00084 
00085   fjJets_.clear();
00086 
00087   alg_.run( fjInputs_, fjJets_ );
00088 }
00089 
00090 
00091 
00093 // define as cmssw plugin
00095 
00096 DEFINE_FWK_MODULE(CMSInsideOutJetProducer);
00097 
00098 
00099