36 produces<reco::HFEMClusterShapeCollection>();
37 produces<reco::BasicClusterCollection>();
38 produces<reco::SuperClusterCollection>();
39 produces<reco::HFEMClusterShapeAssociationCollection>();
40 algo_.setup(conf.getParameter<
double>(
"minTowerEnergy"),
41 conf.getParameter<
double>(
"seedThresholdET"),
42 conf.getParameter<
double>(
"maximumSL"),
43 conf.getParameter<
double>(
"maximumRenergy"),
44 conf.getParameter<
bool>(
"usePMTFlag"),
45 conf.getParameter<
bool>(
"usePulseFlag"),
46 conf.getParameter<
bool>(
"forcePulseFlagMC"),
47 conf.getParameter<
int>(
"correctionType"));
51 auto const& hf_hits =
e.get(
hfreco_);
55 auto retdata1 = std::make_unique<HFEMClusterShapeCollection>();
56 auto retdata2 = std::make_unique<SuperClusterCollection>();
68 auto retdata3 = std::make_unique<HFEMClusterShapeAssociationCollection>(SupHandle, ShapeHandle);
70 for (
unsigned int i = 0;
i < ShapeHandle->size();
i++) {
void clusterize(const HFRecHitCollection &hf, const CaloGeometry &geom, reco::HFEMClusterShapeCollection &clusters, reco::SuperClusterCollection &SuperClusters)
void produce(edm::Event &e, edm::EventSetup const &iSetup) override
void beginRun(edm::Run const &, edm::EventSetup const &) final
#define DEFINE_FWK_MODULE(type)
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geometryToken_
HFEMClusterProducer(edm::ParameterSet const &conf)
bool getData(T &iHolder) const
const edm::EDGetTokenT< HFRecHitCollection > hfreco_