43 if (verbosityString ==
"DEBUG")
45 else if (verbosityString ==
"WARNING")
47 else if (verbosityString ==
"INFO")
61 double barrelSeedThreshold = ps.
getParameter<
double>(
"IslandBarrelSeedThr");
62 double endcapSeedThreshold = ps.
getParameter<
double>(
"IslandEndcapSeedThr");
76 const std::vector<std::string> seedflagnamesEB =
77 ps.
getParameter<std::vector<std::string>>(
"SeedRecHitFlagToBeExcludedEB");
78 const std::vector<int> seedflagsexclEB = StringToEnumValue<EcalRecHit::Flags>(seedflagnamesEB);
80 const std::vector<std::string> seedflagnamesEE =
81 ps.
getParameter<std::vector<std::string>>(
"SeedRecHitFlagToBeExcludedEE");
82 const std::vector<int> seedflagsexclEE = StringToEnumValue<EcalRecHit::Flags>(seedflagnamesEE);
84 const std::vector<std::string> flagnamesEB = ps.
getParameter<std::vector<std::string>>(
"RecHitFlagToBeExcludedEB");
85 const std::vector<int> flagsexclEB = StringToEnumValue<EcalRecHit::Flags>(flagnamesEB);
87 const std::vector<std::string> flagnamesEE = ps.
getParameter<std::vector<std::string>>(
"RecHitFlagToBeExcludedEE");
88 const std::vector<int> flagsexclEE = StringToEnumValue<EcalRecHit::Flags>(flagnamesEE);
118 desc.
add<
std::string>(
"barrelClusterCollection",
"islandBarrelBasicClusters");
119 desc.
add<
std::string>(
"endcapClusterCollection",
"islandEndcapBasicClusters");
120 desc.
add<
double>(
"IslandBarrelSeedThr", 0.5);
121 desc.
add<
double>(
"IslandEndcapSeedThr", 0.18);
132 desc.
add<
std::string>(
"clustershapecollectionEE",
"islandEndcapShape");
133 desc.
add<
std::string>(
"clustershapecollectionEB",
"islandBarrelShape");
134 desc.
add<
std::string>(
"barrelShapeAssociation",
"islandBarrelShapeAssoc");
135 desc.
add<
std::string>(
"endcapShapeAssociation",
"islandEndcapShapeAssoc");
136 desc.
add<std::vector<std::string>>(
"SeedRecHitFlagToBeExcludedEB", {});
137 desc.
add<std::vector<std::string>>(
"SeedRecHitFlagToBeExcludedEE", {});
138 desc.
add<std::vector<std::string>>(
"RecHitFlagToBeExcludedEB", {});
139 desc.
add<std::vector<std::string>>(
"RecHitFlagToBeExcludedEE", {});
140 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);