41 if (verbosityString ==
"DEBUG")
43 else if (verbosityString ==
"WARNING")
45 else if (verbosityString ==
"INFO")
62 double barrelSeedThreshold = ps.
getParameter<
double>(
"IslandBarrelSeedThr");
63 double endcapSeedThreshold = ps.
getParameter<
double>(
"IslandEndcapSeedThr");
77 const std::vector<std::string> seedflagnamesEB =
78 ps.
getParameter<std::vector<std::string>>(
"SeedRecHitFlagToBeExcludedEB");
79 const std::vector<int> seedflagsexclEB = StringToEnumValue<EcalRecHit::Flags>(seedflagnamesEB);
81 const std::vector<std::string> seedflagnamesEE =
82 ps.
getParameter<std::vector<std::string>>(
"SeedRecHitFlagToBeExcludedEE");
83 const std::vector<int> seedflagsexclEE = StringToEnumValue<EcalRecHit::Flags>(seedflagnamesEE);
85 const std::vector<std::string> flagnamesEB = ps.
getParameter<std::vector<std::string>>(
"RecHitFlagToBeExcludedEB");
86 const std::vector<int> flagsexclEB = StringToEnumValue<EcalRecHit::Flags>(flagnamesEB);
88 const std::vector<std::string> flagnamesEE = ps.
getParameter<std::vector<std::string>>(
"RecHitFlagToBeExcludedEE");
89 const std::vector<int> flagsexclEE = StringToEnumValue<EcalRecHit::Flags>(flagnamesEE);
119 desc.add<
std::string>(
"barrelClusterCollection",
"islandBarrelBasicClusters");
120 desc.add<
std::string>(
"endcapClusterCollection",
"islandEndcapBasicClusters");
121 desc.add<
double>(
"IslandBarrelSeedThr", 0.5);
122 desc.add<
double>(
"IslandEndcapSeedThr", 0.18);
133 desc.add<
std::string>(
"clustershapecollectionEE",
"islandEndcapShape");
134 desc.add<
std::string>(
"clustershapecollectionEB",
"islandBarrelShape");
135 desc.add<
std::string>(
"barrelShapeAssociation",
"islandBarrelShapeAssoc");
136 desc.add<
std::string>(
"endcapShapeAssociation",
"islandEndcapShapeAssoc");
137 desc.add<std::vector<std::string>>(
"SeedRecHitFlagToBeExcludedEB", {});
138 desc.add<std::vector<std::string>>(
"SeedRecHitFlagToBeExcludedEE", {});
139 desc.add<std::vector<std::string>>(
"RecHitFlagToBeExcludedEB", {});
140 desc.add<std::vector<std::string>>(
"RecHitFlagToBeExcludedEE", {});
141 descriptions.
add(
"IslandClusterProducer",
desc);
172 std::unique_ptr<CaloSubdetectorTopology> topology_p;
177 topology_p = std::make_unique<EcalBarrelTopology>(*geoHandle);
180 topology_p = std::make_unique<EcalEndcapTopology>(*geoHandle);
191 std::vector<reco::ClusterShape> ClusVec;
192 for (
int erg = 0; erg <
int(
clusters.size()); ++erg) {
194 ClusVec.push_back(TestShape);
198 auto clustersshapes_p = std::make_unique<reco::ClusterShapeCollection>();
199 clustersshapes_p->assign(ClusVec.begin(), ClusVec.end());
207 auto clusters_p = std::make_unique<reco::BasicClusterCollection>();
216 auto shapeAssocs_p = std::make_unique<reco::BasicClusterShapeAssociationCollection>(bccHandle, clusHandle);
217 for (
unsigned int i = 0;
i < clusHandle->size();
i++) {
221 evt.
put(
std::move(shapeAssocs_p), clusterShapeAssociation);