64 bool meet_single_thresh =
false;
69 float energy1 = clus1.
energy();
70 float theta1 = 2 * atan(
exp(-1. *
eta1));
71 float cluspt1 = energy1 *
sin(theta1);
73 saveBarrelSuperClusters.push_back(clus1);
75 meet_single_thresh =
true;
83 float energy1 = clus1.
energy();
84 float theta1 = 2 * atan(
exp(-1. *
eta1));
85 float cluspt1 = energy1 *
sin(theta1);
87 saveEndcapSuperClusters.push_back(clus1);
89 meet_single_thresh =
true;
93 auto SEBDigiCol = std::make_unique<EBDigiCollection>();
94 auto SEEDigiCol = std::make_unique<EEDigiCollection>();
95 int TotClus = saveBarrelSuperClusters.size() + saveEndcapSuperClusters.size();
97 if (TotClus >=
nclus_sel_ || meet_single_thresh) {
98 if (!saveBarrelSuperClusters.empty()) {
115 std::vector<DetId> saveTheseDetIds;
117 for (
int loop = 0;
loop <
int(saveBarrelSuperClusters.size());
loop++) {
122 DetId maxDetId = EcalClusterTools::getMaximum(*bc,
rechits).first;
125 saveTheseDetIds.push_back(detId);
127 for (
int detloop = 0; detloop <
int(saveTheseDetIds.size()); ++detloop) {
131 if (detL == blah->id()) {
133 SEBDigiCol->push_back(detL);
136 for (
int iq = 0; iq < myDigi.
size(); ++iq) {
148 if (!saveEndcapSuperClusters.empty()) {
167 std::set<DetId> saveTheseDetIds;
169 for (
int loop = 0;
loop <
int(saveEndcapSuperClusters.size());
loop++) {
174 DetId maxDetId = EcalClusterTools::getMaximum(*bc,
rechits).first;
177 saveTheseDetIds.insert(detId);
181 std::set<DetId>::const_iterator
finder = saveTheseDetIds.find(blah->id());
182 if (
finder != saveTheseDetIds.end()) {
185 if (detL == blah->id()) {
187 SEEDigiCol->push_back(detL);
189 for (
int iq = 0; iq < myDigi.
size(); ++iq) {
195 if (eecounter >=
int(saveTheseDetIds.size()))