31 etCut_(iConfig.getParameter<double>(
"etMin")),
32 corrector_(iConfig.getParameter<std::
string>(
"corrector"), -1),
33 resol_(iConfig.getParameter<edm::
ParameterSet>(
"resol")) {
34 produces<l1t::PFClusterCollection>();
42 unsigned int index = 0;
43 for (
auto it = clusters->begin(), ed = clusters->end(); it != ed; ++it, ++
index) {
44 if (it->pt() <= etCut_)
48 it->pt(), it->eta(), it->phi(), 0.,
true);
49 if (corrector_.valid())
50 corrector_.correctPt(cluster);
53 out->push_back(cluster);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
~PFClusterProducerFromL1EGClusters() override
PFClusterProducerFromL1EGClusters(const edm::ParameterSet &)
l1tpf::ParametricResolution resol_
Abs< T >::type abs(const T &t)
std::vector< l1t::PFCluster > PFClusterCollection
std::vector< l1tp2::CaloCrystalCluster > CaloCrystalClusterCollection
void setPtError(float ptError)
void produce(edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< l1tp2::CaloCrystalClusterCollection > src_
l1tpf::corrector corrector_