#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 |
unsigned int | encode (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(), SiStripBadStrip::data::range, sistrip::SpyUtilities::range(), and createJobs::tmp.
Referenced by add(), addInvalidConnectionFromCabling(), addNotConnectedConnectionFromCabling(), ReduceGranularity(), counter.Counter::register(), SequenceTypes.Task::remove(), SequenceTypes.Task::replace(), and turnOffFeds().
void SiStripQuality::add | ( | const SiStripBadStrip * | base | ) |
Definition at line 226 of file SiStripQuality.cc.
References add(), SiStripBadStrip::getDataVectorBegin(), SiStripBadStrip::getRegistryVectorBegin(), SiStripBadStrip::getRegistryVectorEnd(), and LogTrace.
Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::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.Task::remove(), and SequenceTypes.Task::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 sistrip::SpyUtilities::range().
Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::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 trackerTree::check(), SiStripDetCabling::fedCabling(), SiStripFedCabling::fedIds(), RunInfo::m_fed_in, FEDNumbering::MAXSiStripFEDID, FEDNumbering::MINSiStripFEDID, printDebug_, DBoxMetadataHelper::set_difference(), SiStripDetCabling_, contentValuesCheck::ss, turnOffFeds(), useEmptyRunInfo_, and x.
Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
void SiStripQuality::addInvalidConnectionFromCabling | ( | ) |
Definition at line 182 of file SiStripQuality.cc.
References add(), SiStripDetCabling::addActiveDetectorsRawIds(), SiStripBadStrip::encode(), SiStripDetCabling::getConnections(), sistrip::invalid_, LogTrace, SiStripDetCabling::nApvPairs(), sistrip::SpyUtilities::range(), and SiStripDetCabling_.
Referenced by add().
void SiStripQuality::addNotConnectedConnectionFromCabling | ( | ) |
Definition at line 164 of file SiStripQuality.cc.
References add(), SiStripBadStrip::encode(), SiStripDetInfo::getAllData(), info_, SiStripDetCabling::IsConnected(), LogTrace, sistrip::SpyUtilities::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 459 of file SiStripQuality.cc.
References SiStripBadStrip::indexes, LogTrace, SiStripBadStrip::put(), sistrip::SpyUtilities::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(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), and BeautifulSoup.Tag::setString().
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(), SiStripBadAPVAlgorithmFromClusterOccupancy::AnalyzeOccupancy(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::AnalyzeOccupancy(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), SiStripHitEffFromCalibTree::makeSQLite(), and SiStripCondObjBuilderFromDb::storeQuality().
|
private |
Definition at line 381 of file SiStripQuality.cc.
References SiStripBadStrip::decode(), SiStripBadStrip::encode(), SiStripBadStrip::data::firstStrip, and SiStripBadStrip::data::range.
SiStripQuality SiStripQuality::difference | ( | const SiStripQuality & | other | ) | const |
Definition at line 24 of file SiStripQuality.cc.
References cleanUp(), SiStripBadStrip::decode(), fillBadComponents(), SiStripBadStrip::data::firstStrip, SiStripBadStrip::getDataVectorBegin(), SiStripDetInfo::getNumberOfApvsAndStripLength(), SiStripBadStrip::getRange(), SiStripBadStrip::getRegistryVectorBegin(), SiStripBadStrip::getRegistryVectorEnd(), info_, put_replace(), SiStripBadStrip::data::range, sistrip::SpyUtilities::range(), and subtract().
void SiStripQuality::fillBadComponents | ( | ) |
Definition at line 490 of file SiStripQuality.cc.
References SiStripQuality::BadComponent::BadApvs, BadComponentVect, SiStripQuality::BadComponent::BadFibers, SiStripQuality::BadComponent::BadModule, SiStripBadStrip::decode(), SiStripQuality::BadComponent::detid, SiStripBadStrip::data::firstStrip, compareTotals::fs, SiStripDetInfo::getNumberOfApvsAndStripLength(), SiStripBadStrip::indexes, info_, SiStripBadStrip::data::range, sistrip::SpyUtilities::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 626 of file SiStripQuality.cc.
References BadComponentVect, cuda_std::lower_bound(), and AlCaHLTBitMon_ParallelJobs::p.
Referenced by SiStripRecHitConverterAlgorithm::fillBad128StripBlocks(), SiStripHitEfficiencyWorker::fillForTraj(), and MeasurementTrackerImpl::initializeStripStatus().
|
inline |
Definition at line 114 of file SiStripQuality.h.
References BadComponentVect.
Referenced by SiStripHitEffFromCalibTree::algoAnalyze(), SiStripBadComponentInfo::fillBadComponentMaps(), SiStripPI::fillBCArrays(), SiStripHitEfficiencyHarvester::printAndWriteBadModules(), and SiStripQualityStatistics::updateAndSave().
short SiStripQuality::getBadFibers | ( | uint32_t | detid | ) | const |
Definition at line 634 of file SiStripQuality.cc.
References BadComponentVect, cuda_std::lower_bound(), and AlCaHLTBitMon_ParallelJobs::p.
Referenced by SiStripRecHitConverterAlgorithm::fillBad128StripBlocks(), and MeasurementTrackerImpl::initializeStripStatus().
bool SiStripQuality::IsApvBad | ( | uint32_t | detid, |
short | apvNb | ||
) | const |
Definition at line 574 of file SiStripQuality.cc.
References BadComponentVect, cuda_std::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 566 of file SiStripQuality.cc.
References BadComponentVect, cuda_std::lower_bound(), and AlCaHLTBitMon_ParallelJobs::p.
Referenced by SiStripClusterInfo::IsFiberBad().
bool SiStripQuality::IsModuleBad | ( | uint32_t | detid | ) | const |
Definition at line 558 of file SiStripQuality.cc.
References BadComponentVect, cuda_std::lower_bound(), and AlCaHLTBitMon_ParallelJobs::p.
Referenced by MCMisalignmentScaler::analyze(), TrackerGeometryCompare::fillTree(), SingleMultiplicity< T >::getEvent(), SiStripClusterizerConditions::isModuleBad(), SiStripClusterInfo::IsModuleBad(), and SiStripTrackerMapCreator::setTkMapFromAlarm().
bool SiStripQuality::IsModuleUsable | ( | uint32_t | detid | ) | const |
Definition at line 544 of file SiStripQuality.cc.
References BadComponentVect, SiStripDetCabling::IsConnected(), cuda_std::lower_bound(), AlCaHLTBitMon_ParallelJobs::p, and SiStripDetCabling_.
Referenced by MeasurementTrackerImpl::initializeStripStatus(), SiStripClusterizerConditions::isModuleUsable(), SiStripClusterInfo::IsModuleUsable(), SiStripQualityStatistics::updateAndSave(), and SiStripRecHitConverterAlgorithm::useModule().
bool SiStripQuality::IsStripBad | ( | uint32_t | detid, |
short | strip | ||
) | const |
Definition at line 582 of file SiStripQuality.cc.
References SiStripBadStrip::getRange(), and sistrip::SpyUtilities::range().
Referenced by SiStripAPVRestorer::abnormalBaselineInspect(), SiStripMonitorCluster::analyze(), SiStripClusterizerConditions::Det::bad(), SiStripMonitorTrack::clusterInfos(), SiStripAPVRestorer::nullInspect(), SiStripClusterInfo::stripQualitiesBad(), TT6CMNSubtractor::subtract_(), and IteratedMedianCMNSubtractor::subtract_().
bool SiStripQuality::IsStripBad | ( | const Range & | range, |
short | strip | ||
) | const |
Definition at line 587 of file SiStripQuality.cc.
References SiStripBadStrip::decode(), SiStripBadStrip::data::firstStrip, compareTotals::fs, SiStripBadStrip::data::range, and mps_fire::result.
int SiStripQuality::nBadStripsOnTheLeft | ( | const Range & | range, |
short | strip | ||
) | const |
Definition at line 600 of file SiStripQuality.cc.
References SiStripBadStrip::decode(), SiStripBadStrip::data::firstStrip, compareTotals::fs, SiStripBadStrip::data::range, and mps_fire::result.
int SiStripQuality::nBadStripsOnTheRight | ( | const Range & | range, |
short | strip | ||
) | const |
Definition at line 613 of file SiStripQuality.cc.
References SiStripBadStrip::decode(), SiStripBadStrip::data::firstStrip, compareTotals::fs, SiStripBadStrip::data::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 676 of file SiStripQuality.cc.
References filterCSVwithJSON::copy, and contentValuesCheck::ss.
|
private |
Prints debug output for a given detId.
Definition at line 642 of file SiStripQuality.cc.
References phase1PixelTopology::layer, TrackerTopology::layer(), 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, LogTrace, cuda_std::lower_bound(), AlCaHLTBitMon_ParallelJobs::p, sd, 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, and SiStripBadStrip::data::range.
|
inline |
Definition at line 118 of file SiStripQuality.h.
References SiStripBadStrip::printDebug(), and printDebug_.
|
inline |
|
private |
Definition at line 419 of file SiStripQuality.cc.
References subtraction().
Referenced by difference().
|
private |
Definition at line 427 of file SiStripQuality.cc.
References 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 702 of file SiStripQuality.cc.
References add(), SiStripBadStrip::encode(), SiStripDetCabling::fedCabling(), SiStripFedCabling::fedConnections(), LogTrace, 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().