337 std::vector<const GeomDet*>::const_iterator itTracker = trackerGeometry->
dets().begin();
338 for (; itTracker != trackerGeometry->
dets().end(); ++itTracker) {
339 int subdet = (*itTracker)->geographicalId().subdetId();
343 module.
x = (*itTracker)->position().x();
344 module.
y = (*itTracker)->position().y();
345 module.
z = (*itTracker)->position().z();
346 module.
Phi = (*itTracker)->position().phi();
347 module.
Eta = (*itTracker)->position().eta();
348 module.
DetId = (*itTracker)->geographicalId().rawId();
349 const std::vector<sipixelobjects::CablingPathToDetUnit> path2det =
PixelCabling_->pathToDetUnit(module.
DetId);
350 module.
Fed = path2det[0].fed;
386 hcalRecHitCollection = hbheRecHitHandle.
product();
388 double radTodeg = 180. /
Geom::pi();
414 std::vector<edm::Ref<TCandColl>> recoEcalCandColl;
417 typename std::vector<edm::EDGetTokenT<TEleColl>>::const_iterator itElectronColl =
electronToken_.begin();
419 std::vector<edm::EDGetTokenT<trigger::TriggerFilterObjectWithRefs>>::const_iterator itRecoEcalCandColl =
427 ++itElectronColl, ++itElectronCollFlag, ++itRecoEcalCandColl) {
429 iEvent.getByToken(*itRecoEcalCandColl, triggerRecoEcalCandidateCollection);
430 if (triggerRecoEcalCandidateCollection.
failedToGet())
439 if (recoEcalCandColl.empty())
441 if (recoEcalCandColl.empty())
444 typename std::vector<edm::Ref<TCandColl>>::const_iterator itRecoEcalCand =
445 recoEcalCandColl.begin();
448 for (; itRecoEcalCand != recoEcalCandColl.end(); ++itRecoEcalCand) {
449 recoEcalCand = (*itRecoEcalCand);
451 recoEcalCand->superCluster();
453 typename TEleColl::const_iterator itEle =
electrons->begin();
454 for (; itEle !=
electrons->end(); ++itEle) {
458 if (scRefRecoEcalCand != scRef)
461 const std::vector<std::pair<DetId, float>>&
hits = scRef->hitsAndFractions();
463 std::vector<std::pair<DetId, float>>::const_iterator itSChits =
hits.begin();
465 for (; itSChits !=
hits.end(); ++itSChits) {
466 if ((*itSChits).first.subdetId() ==
EcalBarrel) {
467 EBDetId idEBRaw((*itSChits).first);
474 LogDebug(
"SelectedElectronFEDListProducer")
475 <<
" electron hit detID Barrel " << (*itSChits).first.rawId() <<
" eta " << double(
point.eta())
476 <<
" phi " <<
double(
point.phi()) * radTodeg <<
" FED " << hitFED << std::endl;
485 }
else if ((*itSChits).first.subdetId() ==
EcalEndcap) {
486 EEDetId idEERaw((*itSChits).first);
493 LogDebug(
"SelectedElectronFEDListProducer")
494 <<
" electron hit detID Endcap " << (*itSChits).first.rawId() <<
" eta " << double(
point.eta())
495 <<
" phi " <<
double(
point.phi()) * radTodeg <<
" FED " << hitFED << std::endl;
505 (dynamic_cast<const EcalPreshowerGeometry*>(
GeometryES_))->getClosestCellInPlane(
point, 1);
509 LogDebug(
"SelectedElectronFEDListProducer")
510 <<
" ES hit plane X (deiID) " << stripX.
rawId() <<
" six " << stripX.
six() <<
" siy "
511 << stripX.
siy() <<
" plane " << stripX.
plane() <<
" FED ID " << hitFED << std::endl;
523 (dynamic_cast<const EcalPreshowerGeometry*>(
GeometryES_))->getClosestCellInPlane(
point, 2);
529 LogDebug(
"SelectedElectronFEDListProducer")
530 <<
" ES hit plane Y (deiID) " << stripY.
rawId() <<
" six " << stripY.
six() <<
" siy "
531 << stripY.
siy() <<
" plane " << stripY.
plane() <<
" FED ID " << hitFED << std::endl;
546 for (; itHcalRecHit != hcalRecHitCollection->
end(); ++itHcalRecHit) {
552 cellGeometry->getPosition(recHitId).eta(),
553 cellGeometry->getPosition(recHitId).phi());
557 LogDebug(
"SelectedElectronFEDListProducer")
558 <<
" matched hcal recHit : HcalDetId " << recHitId <<
" HcalElectronicsId " << electronicId
559 <<
" dcc id " << electronicId.
dccid() <<
" spigot " << electronicId.
spigot() <<
" fiber channel "
581 if (*itElectronCollFlag) {
588 for (uint32_t iCabling = 0; iCabling < SiStripCabling.size(); iCabling++) {
590 double dphi = fabs(
pos.second -
phi);
592 dphi = 2 * acos(-1) - dphi;
605 regSubdetLayers[ilayer];
606 SiStripRegionCabling::ElementCabling::const_iterator itFedMap = fedVectorMap.begin();
607 for (; itFedMap != fedVectorMap.end(); itFedMap++) {
608 for (uint32_t op = 0; op < (itFedMap->second).
size(); op++) {
609 int hitFED = (itFedMap->second)[op].
fedId();
612 LogDebug(
"SelectedElectronFEDListProducer") <<
" SiStrip (FedID) " << hitFED << std::endl;
626 if (*itElectronCollFlag)
627 momentum =
electron.gsfTrack()->momentum();
629 momentum =
electron.track()->momentum();
634 std::vector<PixelModule>::const_iterator itUp, itDn;
635 if (lowerBound.Phi >= -
M_PI && upperBound.Phi <=
M_PI) {
640 if (lowerBound.Phi < -
M_PI)
641 lowerBound.Phi = lowerBound.Phi + 2 *
M_PI;
647 if (upperBound.Phi < -
M_PI)
648 upperBound.Phi = upperBound.Phi - 2 *
M_PI;
668 auto streamFEDRawProduct = std::make_unique<FEDRawDataCollection>();
670 std::vector<uint32_t>::const_iterator itfedList =
fedList_.begin();
671 for (; itfedList !=
fedList_.end(); ++itfedList) {
672 LogDebug(
"SelectedElectronFEDListProducer") <<
" fed point " << *itfedList <<
" ";
674 if (
data.size() > 0) {
675 FEDRawData& fedData = streamFEDRawProduct->FEDData(*itfedList);