340 std::vector<const GeomDet*>::const_iterator itTracker = trackerGeometry->
dets().begin();
341 for (; itTracker != trackerGeometry->
dets().end(); ++itTracker) {
342 int subdet = (*itTracker)->geographicalId().subdetId();
346 module.x = (*itTracker)->position().x();
347 module.y = (*itTracker)->position().y();
348 module.z = (*itTracker)->position().z();
349 module.Phi = (*itTracker)->position().phi();
350 module.Eta = (*itTracker)->position().eta();
351 module.DetId = (*itTracker)->geographicalId().rawId();
352 const std::vector<sipixelobjects::CablingPathToDetUnit> path2det =
PixelCabling_->pathToDetUnit(
module.DetId);
353 module.Fed = path2det[0].fed;
389 hcalRecHitCollection = hbheRecHitHandle.
product();
391 double radTodeg = 180. /
Geom::pi();
417 std::vector<edm::Ref<TCandColl>> recoEcalCandColl;
420 typename std::vector<edm::EDGetTokenT<TEleColl>>::const_iterator itElectronColl =
electronToken_.begin();
422 std::vector<edm::EDGetTokenT<trigger::TriggerFilterObjectWithRefs>>::const_iterator itRecoEcalCandColl =
430 ++itElectronColl, ++itElectronCollFlag, ++itRecoEcalCandColl) {
432 iEvent.getByToken(*itRecoEcalCandColl, triggerRecoEcalCandidateCollection);
433 if (triggerRecoEcalCandidateCollection.
failedToGet())
442 if (recoEcalCandColl.empty())
444 if (recoEcalCandColl.empty())
447 typename std::vector<edm::Ref<TCandColl>>::const_iterator itRecoEcalCand =
448 recoEcalCandColl.begin();
451 for (; itRecoEcalCand != recoEcalCandColl.end(); ++itRecoEcalCand) {
452 recoEcalCand = (*itRecoEcalCand);
454 recoEcalCand->superCluster();
456 typename TEleColl::const_iterator itEle =
electrons->begin();
457 for (; itEle !=
electrons->end(); ++itEle) {
461 if (scRefRecoEcalCand != scRef)
464 const std::vector<std::pair<DetId, float>>&
hits = scRef->hitsAndFractions();
466 std::vector<std::pair<DetId, float>>::const_iterator itSChits =
hits.begin();
468 for (; itSChits !=
hits.end(); ++itSChits) {
469 if ((*itSChits).first.subdetId() ==
EcalBarrel) {
470 EBDetId idEBRaw((*itSChits).first);
477 LogDebug(
"SelectedElectronFEDListProducer")
478 <<
" electron hit detID Barrel " << (*itSChits).first.rawId() <<
" eta " << double(
point.eta())
479 <<
" phi " <<
double(
point.phi()) * radTodeg <<
" FED " << hitFED << std::endl;
488 }
else if ((*itSChits).first.subdetId() ==
EcalEndcap) {
489 EEDetId idEERaw((*itSChits).first);
496 LogDebug(
"SelectedElectronFEDListProducer")
497 <<
" electron hit detID Endcap " << (*itSChits).first.rawId() <<
" eta " << double(
point.eta())
498 <<
" phi " <<
double(
point.phi()) * radTodeg <<
" FED " << hitFED << std::endl;
508 (dynamic_cast<const EcalPreshowerGeometry*>(
GeometryES_))->getClosestCellInPlane(
point, 1);
512 LogDebug(
"SelectedElectronFEDListProducer")
513 <<
" ES hit plane X (deiID) " << stripX.
rawId() <<
" six " << stripX.
six() <<
" siy "
514 << stripX.
siy() <<
" plane " << stripX.
plane() <<
" FED ID " << hitFED << std::endl;
526 (dynamic_cast<const EcalPreshowerGeometry*>(
GeometryES_))->getClosestCellInPlane(
point, 2);
532 LogDebug(
"SelectedElectronFEDListProducer")
533 <<
" ES hit plane Y (deiID) " << stripY.
rawId() <<
" six " << stripY.
six() <<
" siy "
534 << stripY.
siy() <<
" plane " << stripY.
plane() <<
" FED ID " << hitFED << std::endl;
549 for (; itHcalRecHit != hcalRecHitCollection->
end(); ++itHcalRecHit) {
555 cellGeometry->getPosition(recHitId).eta(),
556 cellGeometry->getPosition(recHitId).phi());
560 LogDebug(
"SelectedElectronFEDListProducer")
561 <<
" matched hcal recHit : HcalDetId " << recHitId <<
" HcalElectronicsId " << electronicId
562 <<
" dcc id " << electronicId.
dccid() <<
" spigot " << electronicId.
spigot() <<
" fiber channel "
584 if (*itElectronCollFlag) {
591 for (uint32_t iCabling = 0; iCabling < SiStripCabling.size(); iCabling++) {
593 double dphi = fabs(
pos.second -
phi);
595 dphi = 2 * acos(-1) - dphi;
608 regSubdetLayers[ilayer];
609 SiStripRegionCabling::ElementCabling::const_iterator itFedMap = fedVectorMap.begin();
610 for (; itFedMap != fedVectorMap.end(); itFedMap++) {
611 for (uint32_t op = 0; op < (itFedMap->second).
size(); op++) {
612 int hitFED = (itFedMap->second)[op].
fedId();
615 LogDebug(
"SelectedElectronFEDListProducer") <<
" SiStrip (FedID) " << hitFED << std::endl;
629 if (*itElectronCollFlag)
630 momentum =
electron.gsfTrack()->momentum();
632 momentum =
electron.track()->momentum();
637 std::vector<PixelModule>::const_iterator itUp, itDn;
638 if (lowerBound.Phi >= -
M_PI && upperBound.Phi <=
M_PI) {
643 if (lowerBound.Phi < -
M_PI)
644 lowerBound.Phi = lowerBound.Phi + 2 *
M_PI;
650 if (upperBound.Phi < -
M_PI)
651 upperBound.Phi = upperBound.Phi - 2 *
M_PI;
671 auto streamFEDRawProduct = std::make_unique<FEDRawDataCollection>();
673 std::vector<uint32_t>::const_iterator itfedList =
fedList_.begin();
674 for (; itfedList !=
fedList_.end(); ++itfedList) {
675 LogDebug(
"SelectedElectronFEDListProducer") <<
" fed point " << *itfedList <<
" ";
677 if (
data.size() > 0) {
678 FEDRawData& fedData = streamFEDRawProduct->FEDData(*itfedList);