CMS 3D CMS Logo

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

Go to the documentation of this file.
00001 #include "FWCore/Framework/interface/MakerMacros.h"
00002 #include "SubJetProducer.h"
00003 
00004 using namespace edm;
00005 using namespace cms;
00006 using namespace reco;
00007 
00008 SubJetProducer::SubJetProducer(edm::ParameterSet const& conf):
00009   CompoundJetProducer( conf ),
00010   alg_(conf.getParameter<double>("jetPtMin"),
00011        conf.getParameter<int>("nSubjets"),
00012        conf.getParameter<double>("zcut"),
00013        conf.getParameter<double>("rcut_factor"),
00014        fjJetDefinition_,
00015        doAreaFastjet_,
00016        fjActiveArea_,
00017        voronoiRfact_
00018        )
00019 {
00020 }
00021 
00022 void SubJetProducer::produce(  edm::Event & e, const edm::EventSetup & c )
00023 {
00024   CompoundJetProducer::produce(e, c);
00025 }
00026   
00027 void SubJetProducer::runAlgorithm( edm::Event& iEvent, const edm::EventSetup& iSetup)
00028 {
00029 
00030   alg_.run( fjInputs_, 
00031             fjCompoundJets_ );
00032 }
00033 
00034 
00035 //define this as a plug-in
00036 DEFINE_FWK_MODULE(SubJetProducer);