136 else if (
region ==
"endcap")
150 std::unique_ptr<EBDigiCollection> outputEBDigiCollection(
new EBDigiCollection);
151 std::unique_ptr<EEDigiCollection> outputEEDigiCollection(
new EEDigiCollection);
176 srFlagsEB = srFlagsEBHandle.
product();
182 for (ituneEB = recHitsHandle->
begin(); ituneEB != recHitsHandle->
end(); ituneEB++) {
186 if (digiLookUp == digisEB->
end())
188 outputEBDigiCollection->push_back(digiLookUp->id(), digiLookUp->begin());
196 if (outputEBSrFlagCollection->find(
ttId) != outputEBSrFlagCollection->end())
198 srFlagLookUp = srFlagsEB->
find(
ttId);
200 if (srFlagLookUp == srFlagsEB->
end())
202 outputEBSrFlagCollection->push_back(*srFlagLookUp);
220 srFlagsEE = srFlagsEEHandle.
product();
226 for (ituneEE = recHitsHandle->
begin(); ituneEE != recHitsHandle->
end(); ituneEE++) {
230 if (digiLookUp == digisEE->
end())
232 outputEEDigiCollection->push_back(digiLookUp->id(), digiLookUp->begin());
240 if (outputEESrFlagCollection->find(scId) != outputEESrFlagCollection->end())
242 srFlagLookUp = srFlagsEE->
find(scId);
244 if (srFlagLookUp == srFlagsEE->
end())
246 outputEESrFlagCollection->push_back(*srFlagLookUp);
301 ->setComment(
"Region of rechits to save Digis for. Allowed values: barrel or endcap.");
303 ->setComment(
"The collection of either barrel or endcap digis which correspond to the rechit collection");
304 desc.add<
std::string>(
"digisOut",
"pi0EBDigis")->setComment(
"Name for the collection of Digis saved by the module");
306 ->setComment(
"Collection of rechits to match Digis to");
308 ->setComment(
"The collection of either barrel or endcap srFlags which correspond to the rechit collection");
310 ->setComment(
"Name for the collection of SrFlags saved by the module");
311 descriptions.
add(
"hltFindMatchingECALDigisToRechits",
desc);