#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().
15 produces<reco::HFEMClusterShapeCollection>();
16 produces<reco::BasicClusterCollection>();
17 produces<reco::SuperClusterCollection>();
18 produces<reco::HFEMClusterShapeAssociationCollection>();
19 algo_.
setup(conf.getParameter<
double>(
"minTowerEnergy"),
20 conf.getParameter<
double>(
"seedThresholdET"),
21 conf.getParameter<
double>(
"maximumSL"),
22 conf.getParameter<
double>(
"maximumRenergy"),
23 conf.getParameter<
bool>(
"usePMTFlag"),
24 conf.getParameter<
bool>(
"usePulseFlag"),
25 conf.getParameter<
bool>(
"forcePulseFlagMC"),
26 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 29 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>();
53 auto retdata3 = std::make_unique<HFEMClusterShapeAssociationCollection>(SupHandle, ShapeHandle);
55 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