#include <HFEMClusterProducer.h>
Definition at line 15 of file HFEMClusterProducer.h.
Definition at line 14 of file HFEMClusterProducer.cc.
References algo_, edm::ParameterSet::getParameter(), and HFClusterAlgo::setup().
16 produces<reco::HFEMClusterShapeCollection>();
17 produces<reco::BasicClusterCollection>();
18 produces<reco::SuperClusterCollection>();
19 produces<reco::HFEMClusterShapeAssociationCollection>();
20 algo_.
setup(conf.getParameter<
double>(
"minTowerEnergy"),
21 conf.getParameter<
double>(
"seedThresholdET"),
22 conf.getParameter<
double>(
"maximumSL"),
23 conf.getParameter<
double>(
"maximumRenergy"),
24 conf.getParameter<
bool>(
"usePMTFlag"),
25 conf.getParameter<
bool>(
"usePulseFlag"),
26 conf.getParameter<
bool>(
"forcePulseFlagMC"),
27 conf.getParameter<
int>(
"correctionType"));
void setup(double minTowerEnergy, double seedThreshold, double maximumSL, double m_maximumRenergy, bool usePMTflag, bool usePulseflag, bool forcePulseFlagMC, int correctionSet)
Definition at line 30 of file HFEMClusterProducer.cc.
References algo_, HFClusterAlgo::clusterize(), geometry, edm::EventSetup::get(), edm::Event::getByToken(), hfreco_, mps_fire::i, HFClusterAlgo::isMC(), edm::EventBase::isRealData(), eostools::move(), and edm::Event::put().
39 auto retdata1 = std::make_unique<HFEMClusterShapeCollection>();
40 auto retdata2 = std::make_unique<SuperClusterCollection>();
52 auto retdata3 = std::make_unique<HFEMClusterShapeAssociationCollection>(SupHandle, ShapeHandle);
54 for (
unsigned int i = 0;
i < ShapeHandle->size();
i++) {
void clusterize(const HFRecHitCollection &hf, const CaloGeometry &geom, reco::HFEMClusterShapeCollection &clusters, reco::SuperClusterCollection &SuperClusters)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
ESHandle< TrackerGeometry > geometry