Definition at line 94 of file LMap.h.
Definition at line 171 of file LMap.cc.
References photons_cff::_id, HcalElectronicsMap::allElectronicsIdPrecision(), HcalElectronicsMap::allElectronicsIdTrigger(), EMap::EMapRow::crate, EMap::EMapRow::dcc, EMap::EMapRow::fiber, EMap::EMapRow::fiberchan, HcalAssistant::getSubdetectorString(), HcalAssistant::getZDCSectionString(), HcalGenericDetId::HcalGenBarrel, HcalGenericDetId::HcalGenEndcap, HcalGenericDetId::HcalGenForward, HcalGenericDetId::HcalGenOuter, HcalGenericDetId::HcalGenZDC, EMap::EMapRow::idepth, EMap::EMapRow::ieta, EMap::EMapRow::iphi, HcalElectronicsMap::lookup(), HcalElectronicsMap::lookupTrigger(), genParticles_cff::map, EMap::EMapRow::rawId, EMap::EMapRow::slot, EMap::EMapRow::spigot, EMap::EMapRow::subdet, EMap::EMapRow::topbottom, EMap::EMapRow::zdc_channel, EMap::EMapRow::zdc_section, and EMap::EMapRow::zdc_zside.
177 std::vector <HcalElectronicsId> v_eId = emap->allElectronicsIdPrecision();
178 for (std::vector <HcalElectronicsId>::const_iterator eId=v_eId.begin();
183 row.crate = eId->readoutVMECrateId();
184 row.slot = eId->htrSlot();
185 row.dcc = eId->dccid();
186 row.spigot = eId->spigot();
187 row.fiber = eId->fiberIndex();
188 row.fiberchan = eId->fiberChanId();
189 if (eId->htrTopBottom()==1) row.topbottom =
"t";
190 else if (eId->htrTopBottom()==0) row.topbottom =
"b";
191 else row.topbottom =
"u";
194 if ( !(_gid.null()) &&
202 row.rawId =
_id.rawId();
203 row.ieta =
_id.ieta();
204 row.iphi =
_id.iphi();
205 row.idepth =
_id.depth();
211 else if ( !(_gid.null()) &&
215 row.zdc_channel =
_id.channel();
217 row.idepth =
_id.depth();
218 row.zdc_zside =
_id.zside();
227 for (std::vector <HcalElectronicsId>::const_iterator eId=v_eId.begin();
232 row.crate = eId->readoutVMECrateId();
233 row.slot = eId->htrSlot();
234 row.dcc = eId->dccid();
235 row.spigot = eId->spigot();
236 row.fiber = eId->isVMEid() ? eId->slbSiteNumber() : eId->fiberIndex();
237 row.fiberchan = eId->isVMEid() ? eId->slbChannelIndex() : eId->fiberChanId();
238 if (eId->htrTopBottom()==1) row.topbottom =
"t";
239 else if (eId->htrTopBottom()==0) row.topbottom =
"b";
240 else row.topbottom =
"u";
243 if ( !(
_id.null()) ){
244 row.rawId =
_id.rawId();
245 row.ieta =
_id.ieta();
246 row.iphi =
_id.iphi();
247 row.idepth =
_id.depth();
255 edm::LogError(
"EMap") <<
"Pointer to HcalElectronicsMap is 0!!!";
std::string getSubdetectorString(HcalSubdetector _det)
std::string getZDCSectionString(HcalZDCDetId::Section _section)
std::vector< HcalElectronicsId > allElectronicsIdTrigger() const