9 bge_( iConfig.getParameter<double>(
"maxRapidity"),
10 iConfig.getParameter<double>(
"gridSpacing") )
22 std::vector<fastjet::PseudoJet>
inputs;
23 for ( reco::PFCandidateCollection::const_iterator ibegin = pfColl->begin(),
24 iend = pfColl->end(),
i = ibegin;
i != iend; ++
i ){
25 inputs.push_back( fastjet::PseudoJet(
i->px(),
i->py(),
i->pz(),
i->energy()) );
27 bge_.set_particles(inputs);
28 std::auto_ptr<double> outputRho(
new double(
bge_.rho()));
29 iEvent.
put(outputRho);
FixedGridRhoProducerFastjet(const edm::ParameterSet &iConfig)
T getParameter(std::string const &) const
virtual void produce(edm::Event &, const edm::EventSetup &)
#define DEFINE_FWK_MODULE(type)
edm::InputTag pfCandidatesTag_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual ~FixedGridRhoProducerFastjet()
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
fastjet::GridMedianBackgroundEstimator bge_