Reimplemented from DQMEDAnalyzer.
Definition at line 211 of file SiStripSpyMonitorModule.cc.
215 std::ofstream lOutCabling;
216 lOutCabling.open(
"trackerDetId_FEDIdChNum_list.txt",
std::ios::out);
222 uint32_t lDetId = lConnection.
detId();
223 lOutCabling <<
"FED ID = " << lFedId <<
", Channel = " << lFedChannel
239 LogError(
"SiStripSpyMonitorModule") <<
e.what();
244 const std::vector<uint32_t>& lSpyAPVeVec = *lSpyAPVeHandle;
251 LogError(
"SiStripSpyMonitorModule") <<
e.what();
261 LogError(
"SiStripSpyMonitorModule") <<
e.what();
294 for (
unsigned int i(0);
i <
nFiles;
i++) {
295 outfile_[
i] <<
"**** evt " <<
iEvent.id().event() <<
" ****" << std::endl;
310 lFEDErrors.
hasOOS =
false;
318 uint32_t lAPVAddrRef = lSpyAPVeVec.at(lFedId);
329 uint32_t lDetId = lConnection.
detId();
339 if (lDigis == lInputDigis->
end()) {
340 LogDebug(
"SiStripSpyMonitorModule") <<
" -- digis not found in ScopeRawDigis map for FEDID " << lFedId
341 <<
" and FED channel " << lFedChannel << std::endl;
371 outfile_[
outfileMap_[
"NoData"]] << lFedId <<
" " << lFedChannel <<
" " << lDetId << std::endl;
372 }
else if (lFrame.
digitalLow == 0 && lRange > 0) {
377 outfile_[
outfileMap_[
"MinZero"]] << lFedId <<
" " << lFedChannel <<
" " << lDetId << std::endl;
383 outfile_[
outfileMap_[
"MaxSat"]] << lFedId <<
" " << lFedChannel <<
" " << lDetId << std::endl;
389 outfile_[
outfileMap_[
"LowRange"]] << lFedId <<
" " << lFedChannel <<
" " << lDetId << std::endl;
395 outfile_[
outfileMap_[
"HighRange"]] << lFedId <<
" " << lFedChannel <<
" " << lDetId << std::endl;
401 outfile_[
outfileMap_[
"LowPb"]] << lFedId <<
" " << lFedChannel <<
" " << lDetId << std::endl;
407 outfile_[
outfileMap_[
"HighPb"]] << lFedId <<
" " << lFedChannel <<
" " << lDetId << std::endl;
422 outfile_[
outfileMap_[
"OOS"]] << lFedId <<
" " << lFedChannel <<
" " << lDetId << std::endl;
428 outfile_[
outfileMap_[
"OtherPbs"]] << lFedId <<
" " << lFedChannel <<
" " << lDetId << std::endl;
453 if (lFrame.
apvAddress.second != lAPVAddrRef) {
459 outfile_[
outfileMap_[
"APVAddressError"]] << lFedId <<
" " << lFedChannel <<
" " << lDetId << std::endl;
470 outfile_[
outfileMap_[
"NegPeds"]] << lFedId <<
" " << lFedChannel <<
" " << lDetId << std::endl;
490 lTime = static_cast<double>(
evt_);
494 lTime = static_cast<double>(
iEvent.id().event());
References sistrip::SpyUtilities::Frame::apvAddress, sistrip::SpyUtilities::Frame::apvErrorBit, FedChannelConnection::apvPairNumber(), FedChannelConnection::detId(), sistrip::SpyUtilities::Frame::digitalHigh, sistrip::SpyUtilities::Frame::digitalLow, MillePedeFileConverter_cfg::e, edm::DetSetVector< T >::end(), evt_, sistrip::SpyUtilities::extractFrameInfo(), sistrip::FED_ID_MAX, sistrip::FED_ID_MIN, sistrip::FEDCH_PER_FED, SiStripFedCabling::fedConnection(), SPYHistograms::fillCountersHistograms(), SPYHistograms::fillDetailedHistograms(), SPYHistograms::fillFEDHistograms(), fillWithLocalEvtNum_, edm::DetSetVector< T >::find(), sistrip::SpyUtilities::Frame::firstHeaderBit, firstHeaderBit_, sistrip::SpyUtilities::Frame::firstTrailerBit, firstTrailerBit_, frameQuality_, sistrip::SpyUtilities::getCabling(), sistrip::SpyUtilities::getMajorityHeader(), SPYHistograms::Errors::hasAPVAddressError0, SPYHistograms::Errors::hasAPVAddressError1, SPYHistograms::Errors::hasErrorBit0, SPYHistograms::Errors::hasErrorBit1, SPYHistograms::Errors::hasHighPb, SPYHistograms::Errors::hasHighRange, SPYHistograms::Errors::hasLowPb, SPYHistograms::Errors::hasLowRange, SPYHistograms::Errors::hasMaxSat, SPYHistograms::Errors::hasMinZero, hasNegativePedSubtr(), SPYHistograms::Errors::hasNegPeds, SPYHistograms::Errors::hasNoData, SPYHistograms::Errors::hasOOS, SPYHistograms::Errors::hasOtherPbs, histManager_, mps_fire::i, identifyTickmarks(), iEvent, FedChannelConnection::isConnected(), LogDebug, sistrip::SpyUtilities::FrameQuality::maxDigiRange, sistrip::SpyUtilities::FrameQuality::maxTickHeight, sistrip::SpyUtilities::FrameQuality::maxZeroLight, sistrip::SpyUtilities::FrameQuality::minDigiRange, sistrip::SpyUtilities::FrameQuality::minTickHeight, sistrip::SpyUtilities::FrameQuality::minZeroLight, SPYHistograms::ErrorCounters::nAPVAddressError, SPYHistograms::ErrorCounters::nAPVError, cmsBatch::nFiles, SPYHistograms::ErrorCounters::nHighPb, SPYHistograms::ErrorCounters::nHighRange, SPYHistograms::ErrorCounters::nLowPb, SPYHistograms::ErrorCounters::nLowRange, SPYHistograms::ErrorCounters::nMaxSat, SPYHistograms::ErrorCounters::nMinZero, SPYHistograms::ErrorCounters::nNegPeds, SPYHistograms::ErrorCounters::nNoData, SPYHistograms::ErrorCounters::nOOS, SPYHistograms::ErrorCounters::nOtherPbs, MillePedeFileConverter_cfg::out, outfile_, outfileMap_, outfileNames_, edm::Handle< T >::product(), sistrip::SpyUtilities::range(), sistrip::SPY_SAMPLES_PER_CHANNEL, spyAPVeToken_, spyL1Token_, spyPedSubtrDigisToken_, spyScopeRawDigisToken_, spyTotCountToken_, sistrip::STRIPS_PER_FEDCH, sistrip::SpyUtilities::threshold(), utility_, and writeCabling_.