#include <SiStripQuality.cc>
Classes | |
struct | BadComponent |
class | BadComponentStrictWeakOrdering |
Public Member Functions | |
void | add (uint32_t, const SiStripBadStrip::Range &) |
void | add (const SiStripBadStrip *) |
void | add (const SiStripDetCabling *) |
void | add (const SiStripDetVOff *) |
void | add (const RunInfo *) |
void | addInvalidConnectionFromCabling () |
void | addNotConnectedConnectionFromCabling () |
SiStripDetCabling const * | cabling () const |
bool | cleanUp (bool force=false) |
void | clear () |
void | compact (uint32_t detid, std::vector< unsigned int > &) |
SiStripQuality | difference (const SiStripQuality &) const |
void | fillBadComponents () |
short | getBadApvs (uint32_t detid) const |
const std::vector< BadComponent > & | getBadComponentList () const |
short | getBadFibers (uint32_t detid) const |
bool | IsApvBad (uint32_t detid, short apvNb) const |
bool | IsFiberBad (uint32_t detid, short fiberNb) const |
bool | IsModuleBad (uint32_t detid) const |
bool | IsModuleUsable (uint32_t detid) const |
bool | IsStripBad (uint32_t detid, short strip) const |
bool | IsStripBad (const Range &range, short strip) const |
int | nBadStripsOnTheLeft (const Range &range, short strip) const |
int | nBadStripsOnTheRight (const Range &range, short strip) const |
void | ReduceGranularity (double) |
void | setPrintDebugOutput (const bool printDebug) |
void | setUseEmptyRunInfo (const bool useEmptyRunInfo) |
SiStripQuality ()=delete | |
SiStripQuality (SiStripDetInfo) | |
SiStripQuality (const SiStripQuality &)=default | |
SiStripQuality (SiStripQuality &&)=default | |
~SiStripQuality () override=default | |
Public Member Functions inherited from SiStripBadStrip | |
data | decode (const unsigned int &value) const |
data | decodePhase2 (const unsigned int &value) const |
unsigned int | encode (const unsigned short &first, const unsigned short &NconsecutiveBadStrips, const unsigned short &flag=0) |
unsigned int | encodePhase2 (const unsigned short &first, const unsigned short &NconsecutiveBadStrips, const unsigned short &flag=0) |
ContainerIterator | getDataVectorBegin () const |
ContainerIterator | getDataVectorEnd () const |
void | getDetIds (std::vector< uint32_t > &DetIds_) const |
const Range | getRange (const uint32_t detID) const |
Range | getRangeByPos (unsigned short pos) const |
RegistryIterator | getRegistryVectorBegin () const |
RegistryIterator | getRegistryVectorEnd () const |
void | printDebug (std::stringstream &ss, const TrackerTopology *trackerTopo) const |
void | printSummary (std::stringstream &ss, const TrackerTopology *trackerTopo) const |
bool | put (const uint32_t &detID, const InputVector &vect) |
bool | put (const uint32_t &detID, Range input) |
SiStripBadStrip () | |
SiStripBadStrip (const SiStripBadStrip &orig) | |
virtual | ~SiStripBadStrip () |
Private Member Functions | |
void | compact (std::vector< unsigned int > &, std::vector< unsigned int > &, unsigned short &) |
void | printActiveFedsInfo (const std::vector< uint16_t > &activeFedsFromCabling, const std::vector< int > &activeFedsFromRunInfo, const std::vector< int > &differentFeds, const bool printDebug) |
void | printDetInfo (const TrackerTopology *const tTopo, uint32_t detId, uint32_t apvPairNumber, std::stringstream &ss) |
Prints debug output for a given detId. More... | |
bool | put_replace (uint32_t detId, Range input) |
void | subtract (std::vector< unsigned int > &, const std::vector< unsigned int > &) |
void | subtraction (std::vector< unsigned int > &, const unsigned int &) |
void | turnOffFeds (const std::vector< int > &fedsList, const bool turnOffStrips, const bool printDebug) |
Private Attributes | |
std::vector< BadComponent > | BadComponentVect |
SiStripDetInfo | info_ |
bool | printDebug_ |
const SiStripDetCabling * | SiStripDetCabling_ |
bool | toCleanUp |
bool | useEmptyRunInfo_ |
Additional Inherited Members | |
Public Types inherited from SiStripBadStrip | |
typedef std::vector< unsigned int > | Container |
typedef std::vector< unsigned int >::const_iterator | ContainerIterator |
typedef Container | InputVector |
typedef std::pair< ContainerIterator, ContainerIterator > | Range |
typedef std::vector< DetRegistry > | Registry |
typedef Registry::const_iterator | RegistryIterator |
Protected Attributes inherited from SiStripBadStrip | |
Registry | indexes |
Container | v_badstrips |
Description: <one line="" class="" summary>="">
Usage: <usage>
Definition at line 32 of file SiStripQuality.h.
|
delete |
|
explicit |
Definition at line 17 of file SiStripQuality.cc.
|
default |
|
default |
|
overridedefault |
void SiStripQuality::add | ( | uint32_t | detid, |
const SiStripBadStrip::Range & | baserange | ||
) |
Definition at line 243 of file SiStripQuality.cc.
References compact(), SiStripBadStrip::decode(), SiStripBadStrip::data::firstStrip, SiStripBadStrip::data::flag, SiStripDetInfo::getNumberOfApvsAndStripLength(), SiStripBadStrip::getRange(), info_, LogTrace, put_replace(), FastTimerService_cff::range, SiStripBadStrip::data::range, and createJobs::tmp.
Referenced by add(), addInvalidConnectionFromCabling(), addNotConnectedConnectionFromCabling(), ReduceGranularity(), counter.Counter::register(), SequenceTypes._TaskBase::remove(), SequenceTypes._TaskBase::replace(), and turnOffFeds().
void SiStripQuality::add | ( | const SiStripBadStrip * | base | ) |
Definition at line 226 of file SiStripQuality.cc.
References add(), newFWLiteAna::base, and LogTrace.
Referenced by counter.Counter::register(), SequenceTypes._TaskBase::remove(), and SequenceTypes._TaskBase::replace().
void SiStripQuality::add | ( | const SiStripDetCabling * | cab | ) |
Definition at line 158 of file SiStripQuality.cc.
References addInvalidConnectionFromCabling(), addNotConnectedConnectionFromCabling(), and SiStripDetCabling_.
Referenced by counter.Counter::register(), SequenceTypes._TaskBase::remove(), and SequenceTypes._TaskBase::replace().
void SiStripQuality::add | ( | const SiStripDetVOff * | Voff | ) |
Definition at line 63 of file SiStripQuality.cc.
References add(), SiStripBadStrip::encode(), SiStripDetVOff::getDetIds(), SiStripDetInfo::getNumberOfApvsAndStripLength(), info_, LogTrace, and FastTimerService_cff::range.
Referenced by counter.Counter::register(), SequenceTypes._TaskBase::remove(), and SequenceTypes._TaskBase::replace().
void SiStripQuality::add | ( | const RunInfo * | runInfo | ) |
Used to get the cabling from RunInfo.
It compares the feds from cabling with those from runInfo and it turns off all the strips associated to feds that are off for the RunInfo but not for FedCabling.
Definition at line 85 of file SiStripQuality.cc.
References RPCNoise_example::check, SiStripDetCabling::fedCabling(), SiStripFedCabling::fedIds(), createfilelist::int, FEDNumbering::MAXSiStripFEDID, FEDNumbering::MINSiStripFEDID, printDebug_, submitPVValidationJobs::runInfo, DBoxMetadataHelper::set_difference(), SiStripDetCabling_, jetUpdater_cfi::sort, contentValuesCheck::ss, turnOffFeds(), useEmptyRunInfo_, and x.
Referenced by counter.Counter::register(), SequenceTypes._TaskBase::remove(), and SequenceTypes._TaskBase::replace().
void SiStripQuality::addInvalidConnectionFromCabling | ( | ) |
Definition at line 182 of file SiStripQuality.cc.
References add(), SiStripDetCabling::addActiveDetectorsRawIds(), SiStripBadStrip::encode(), SiStripDetCabling::getConnections(), heavyIonCSV_trainingSettings::idx, sistrip::invalid_, LogTrace, SiStripDetCabling::nApvPairs(), FastTimerService_cff::range, SiStripDetCabling_, and testProducerWithPsetDescEmpty_cfi::x1.
Referenced by add().
void SiStripQuality::addNotConnectedConnectionFromCabling | ( | ) |
Definition at line 164 of file SiStripQuality.cc.
References add(), SiStripBadStrip::encode(), SiStripDetInfo::getAllData(), info_, SiStripDetCabling::IsConnected(), LogTrace, FastTimerService_cff::range, and SiStripDetCabling_.
Referenced by add().
|
inline |
Definition at line 121 of file SiStripQuality.h.
References SiStripDetCabling_.
bool SiStripQuality::cleanUp | ( | bool | force = false | ) |
Definition at line 458 of file SiStripQuality.cc.
References cmsStageWithFailover::force, SiStripBadStrip::indexes, LogTrace, SiStripBadStrip::put(), FastTimerService_cff::range, toCleanUp, and SiStripBadStrip::v_badstrips.
Referenced by difference().
|
inline |
Definition at line 53 of file SiStripQuality.h.
References BadComponentVect, SiStripBadStrip::indexes, toCleanUp, and SiStripBadStrip::v_badstrips.
Referenced by SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), and SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips().
void SiStripQuality::compact | ( | uint32_t | detid, |
std::vector< unsigned int > & | vect | ||
) |
Definition at line 285 of file SiStripQuality.cc.
References SiStripDetInfo::getNumberOfApvsAndStripLength(), info_, and createJobs::tmp.
Referenced by add(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), SiStripHitEffFromCalibTree::makeSQLite(), and SiStripCondObjBuilderFromDb::storeQuality().
|
private |
Definition at line 380 of file SiStripQuality.cc.
References SiStripBadStrip::decode(), SiStripBadStrip::encode(), SiStripBadStrip::data::firstStrip, SiStripBadStrip::data::range, and createJobs::tmp.
SiStripQuality SiStripQuality::difference | ( | const SiStripQuality & | other | ) | const |
Definition at line 24 of file SiStripQuality.cc.
References cleanUp(), SiStripBadStrip::decode(), fillBadComponents(), SiStripBadStrip::data::firstStrip, SiStripDetInfo::getNumberOfApvsAndStripLength(), SiStripBadStrip::getRange(), info_, trackingPlots::other, put_replace(), FastTimerService_cff::range, SiStripBadStrip::data::range, and subtract().
void SiStripQuality::fillBadComponents | ( | ) |
Definition at line 489 of file SiStripQuality.cc.
References BadComponentVect, SiStripBadStrip::decode(), compareTotals::fs, SiStripDetInfo::getNumberOfApvsAndStripLength(), SiStripBadStrip::indexes, info_, FastTimerService_cff::range, mps_fire::result, and SiStripBadStrip::v_badstrips.
Referenced by difference(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), and SiStripHitEffFromCalibTree::makeSQLite().
short SiStripQuality::getBadApvs | ( | uint32_t | detid | ) | const |
Definition at line 625 of file SiStripQuality.cc.
References BadComponentVect, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by HitEff::analyze(), SiStripRecHitConverterAlgorithm::fillBad128StripBlocks(), and SiStripHitEfficiencyWorker::fillForTraj().
|
inline |
Definition at line 114 of file SiStripQuality.h.
References BadComponentVect.
Referenced by SiStripHitEffFromCalibTree::algoAnalyze(), SiStripBadComponentInfo::fillBadComponentMaps(), SiStripPI::fillBCArrays(), SiStripQualityDQM::fillGrandSummaryMEs(), and SiStripQualityStatistics::updateAndSave().
short SiStripQuality::getBadFibers | ( | uint32_t | detid | ) | const |
Definition at line 633 of file SiStripQuality.cc.
References BadComponentVect, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by SiStripRecHitConverterAlgorithm::fillBad128StripBlocks().
bool SiStripQuality::IsApvBad | ( | uint32_t | detid, |
short | apvNb | ||
) | const |
Definition at line 573 of file SiStripQuality.cc.
References BadComponentVect, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by SiStripBadAPVAlgorithmFromClusterOccupancy::AnalyzeOccupancy(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::AnalyzeOccupancy(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), SiStripAPVRestorer::inspect(), and SiStripClusterInfo::IsApvBad().
bool SiStripQuality::IsFiberBad | ( | uint32_t | detid, |
short | fiberNb | ||
) | const |
Definition at line 565 of file SiStripQuality.cc.
References BadComponentVect, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by SiStripClusterInfo::IsFiberBad().
bool SiStripQuality::IsModuleBad | ( | uint32_t | detid | ) | const |
Definition at line 557 of file SiStripQuality.cc.
References BadComponentVect, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by MCMisalignmentScaler::analyze(), TrackerGeometryCompare::fillTree(), LargeEvents< T >::filter(), SiStripClusterizerConditions::isModuleBad(), SiStripClusterInfo::IsModuleBad(), and SiStripTrackerMapCreator::setTkMapFromAlarm().
bool SiStripQuality::IsModuleUsable | ( | uint32_t | detid | ) | const |
Definition at line 543 of file SiStripQuality.cc.
References BadComponentVect, SiStripDetCabling::IsConnected(), pfDeepBoostedJetPreprocessParams_cfi::lower_bound, AlCaHLTBitMon_ParallelJobs::p, and SiStripDetCabling_.
Referenced by SiStripQualityDQM::fillGrandSummaryMEs(), SiStripClusterizerConditions::isModuleUsable(), SiStripClusterInfo::IsModuleUsable(), SiStripQualityStatistics::updateAndSave(), and SiStripRecHitConverterAlgorithm::useModule().
bool SiStripQuality::IsStripBad | ( | uint32_t | detid, |
short | strip | ||
) | const |
Definition at line 581 of file SiStripQuality.cc.
References SiStripBadStrip::getRange(), FastTimerService_cff::range, and digitizers_cfi::strip.
Referenced by SiStripAPVRestorer::abnormalBaselineInspect(), SiStripMonitorCluster::analyze(), SiStripDB2Tree::analyze(), SiStripClusterizerConditions::Det::bad(), SiStripMonitorTrack::clusterInfos(), SiStripQualityDQM::fillMEsForDet(), SiStripQualityDQM::fillMEsForLayer(), SiStripAPVRestorer::nullInspect(), SiStripClusterInfo::stripQualitiesBad(), TT6CMNSubtractor::subtract_(), and IteratedMedianCMNSubtractor::subtract_().
bool SiStripQuality::IsStripBad | ( | const Range & | range, |
short | strip | ||
) | const |
Definition at line 586 of file SiStripQuality.cc.
References SiStripBadStrip::decode(), compareTotals::fs, FastTimerService_cff::range, mps_fire::result, and digitizers_cfi::strip.
int SiStripQuality::nBadStripsOnTheLeft | ( | const Range & | range, |
short | strip | ||
) | const |
Definition at line 599 of file SiStripQuality.cc.
References SiStripBadStrip::decode(), compareTotals::fs, FastTimerService_cff::range, mps_fire::result, and digitizers_cfi::strip.
int SiStripQuality::nBadStripsOnTheRight | ( | const Range & | range, |
short | strip | ||
) | const |
Definition at line 612 of file SiStripQuality.cc.
References SiStripBadStrip::decode(), compareTotals::fs, FastTimerService_cff::range, mps_fire::result, and digitizers_cfi::strip.
|
private |
Prints debug output for the active feds comparing the list in RunInfo and FedCabling
Definition at line 675 of file SiStripQuality.cc.
References filterCSVwithJSON::copy, SiStripBadStrip::printDebug(), and contentValuesCheck::ss.
|
private |
Prints debug output for a given detId.
Definition at line 641 of file SiStripQuality.cc.
References phase1PixelTopology::layer, TrackerTopology::layer(), contentValuesCheck::ss, AlCaHLTBitMon_QueryRunRegistry::string, DetId::subdetId(), StripSubdetector::TEC, TrackerTopology::tecIsStereo(), StripSubdetector::TIB, TrackerTopology::tibIsStereo(), StripSubdetector::TID, TrackerTopology::tidIsStereo(), StripSubdetector::TOB, and TrackerTopology::tobIsStereo().
Referenced by turnOffFeds().
|
private |
Definition at line 293 of file SiStripQuality.cc.
References SiStripBadStrip::DetRegistry::detid, SiStripBadStrip::DetRegistry::ibegin, SiStripBadStrip::DetRegistry::iend, SiStripBadStrip::indexes, input, LogTrace, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, AlCaHLTBitMon_ParallelJobs::p, toCleanUp, and SiStripBadStrip::v_badstrips.
Referenced by add(), and difference().
void SiStripQuality::ReduceGranularity | ( | double | threshold | ) |
Definition at line 324 of file SiStripQuality.cc.
References add(), SiStripBadStrip::decode(), SiStripBadStrip::encode(), SiStripBadStrip::data::firstStrip, SiStripBadStrip::getDataVectorBegin(), SiStripBadStrip::getRegistryVectorBegin(), SiStripBadStrip::getRegistryVectorEnd(), mps_fire::i, LogTrace, SiStripPI::max, SiStripPI::min, SiStripBadStrip::data::range, and remoteMonitoring_LASER_era2018_cfg::threshold.
|
inline |
Definition at line 118 of file SiStripQuality.h.
References SiStripBadStrip::printDebug(), and printDebug_.
|
inline |
|
private |
Definition at line 418 of file SiStripQuality.cc.
References A, B, and subtraction().
Referenced by difference().
|
private |
Definition at line 426 of file SiStripQuality.cc.
References A, B, SiStripBadStrip::decode(), SiStripBadStrip::encode(), SiStripBadStrip::data::firstStrip, SiStripBadStrip::data::range, and createJobs::tmp.
Referenced by subtract().
|
private |
Loop on all the fedIds, take the fedChannels and then the detId. Depending on the value of a bool turn off or not the strips in the list.
Definition at line 701 of file SiStripQuality.cc.
References add(), SiStripBadStrip::encode(), SiStripDetCabling::fedCabling(), SiStripFedCabling::fedConnections(), LogTrace, SiStripBadStrip::printDebug(), printDetInfo(), SiStripDetCabling_, contentValuesCheck::ss, and SiStripDetCabling::trackerTopology().
Referenced by add().
|
private |
Definition at line 146 of file SiStripQuality.h.
Referenced by clear(), fillBadComponents(), getBadApvs(), getBadComponentList(), getBadFibers(), IsApvBad(), IsFiberBad(), IsModuleBad(), and IsModuleUsable().
|
private |
Definition at line 144 of file SiStripQuality.h.
Referenced by add(), addNotConnectedConnectionFromCabling(), compact(), difference(), and fillBadComponents().
|
private |
Definition at line 149 of file SiStripQuality.h.
Referenced by add(), and setPrintDebugOutput().
|
private |
Definition at line 148 of file SiStripQuality.h.
Referenced by add(), addInvalidConnectionFromCabling(), addNotConnectedConnectionFromCabling(), cabling(), IsModuleUsable(), and turnOffFeds().
|
private |
Definition at line 145 of file SiStripQuality.h.
Referenced by cleanUp(), clear(), and put_replace().
|
private |
Definition at line 150 of file SiStripQuality.h.
Referenced by add(), and setUseEmptyRunInfo().