Definition at line 18 of file HFEMClusterProducer.cc.
◆ HFEMClusterProducer()
Definition at line 34 of file HFEMClusterProducer.cc.
References deDxTools::esConsumes().
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"));
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geometryToken_
const edm::EDGetTokenT< HFRecHitCollection > hfreco_
void setup(double minTowerEnergy, double seedThreshold, double maximumSL, double m_maximumRenergy, bool usePMTflag, bool usePulseflag, bool forcePulseFlagMC, int correctionSet)
◆ beginRun()
◆ produce()
Definition at line 50 of file HFEMClusterProducer.cc.
References algo_, HFClusterAlgo::clusterize(), MillePedeFileConverter_cfg::e, geometryToken_, edm::EventSetup::getData(), hfreco_, mps_fire::i, HFClusterAlgo::isMC(), and eostools::move().
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)
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geometryToken_
const edm::EDGetTokenT< HFRecHitCollection > hfreco_
◆ algo_
◆ geometryToken_
◆ hfreco_