#include <SiStripQuality.cc>
Classes | |
struct | BadComponent |
class | BadComponentStrictWeakOrdering |
Public Member Functions | |
void | add (const 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 (unsigned int &, std::vector< unsigned int > &) |
void | fillBadComponents () |
short | getBadApvs (const uint32_t &detid) const |
const std::vector< BadComponent > & | getBadComponentList () const |
short | getBadFibers (const uint32_t &detid) const |
edm::FileInPath | getFileInPath () const |
bool | IsApvBad (const uint32_t &detid, const short &apvNb) const |
bool | IsFiberBad (const uint32_t &detid, const short &fiberNb) const |
bool | IsModuleBad (const uint32_t &detid) const |
bool | IsModuleUsable (const uint32_t &detid) const |
bool | IsStripBad (const uint32_t &detid, const short &strip) const |
bool | IsStripBad (const Range &range, const short &strip) const |
int | nBadStripsOnTheLeft (const Range &range, const short &strip) const |
int | nBadStripsOnTheRight (const Range &range, const short &strip) const |
bool | operator!= (const SiStripQuality &) const |
SiStripQuality & | operator+= (const SiStripQuality &) |
const SiStripQuality | operator- (const SiStripQuality &) const |
SiStripQuality & | operator-= (const SiStripQuality &) |
bool | operator== (const SiStripQuality &) const |
void | ReduceGranularity (double) |
void | setPrintDebugOutput (const bool printDebug) |
void | setUseEmptyRunInfo (const bool useEmptyRunInfo) |
SiStripQuality () | |
SiStripQuality (edm::FileInPath &) | |
SiStripQuality (const SiStripQuality &) | |
~SiStripQuality () override | |
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) |
Prints debug output for the active feds comparing the list in RunInfo and FedCabling. More... | |
void | printDetInfo (const TrackerTopology *const tTopo, const uint32_t &detId, const uint32_t &apvPairNumber, std::stringstream &ss) |
Prints debug output for a given detId. More... | |
bool | put_replace (const 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 |
edm::FileInPath | FileInPath_ |
bool | printDebug_ |
SiStripDetInfoFileReader * | reader |
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 35 of file SiStripQuality.h.
SiStripQuality::SiStripQuality | ( | ) |
Definition at line 21 of file SiStripQuality.cc.
References FileInPath_, edm::FileInPath::fullPath(), and reader.
Referenced by SiStripQuality::BadComponentStrictWeakOrdering::operator()(), and operator-().
SiStripQuality::SiStripQuality | ( | edm::FileInPath & | file | ) |
Definition at line 31 of file SiStripQuality.cc.
References FileInPath_, edm::FileInPath::fullPath(), and reader.
SiStripQuality::SiStripQuality | ( | const SiStripQuality & | other | ) |
Definition at line 36 of file SiStripQuality.cc.
References BadComponentVect, FileInPath_, SiStripBadStrip::indexes, printDebug_, reader, SiStripDetCabling_, toCleanUp, useEmptyRunInfo_, and SiStripBadStrip::v_badstrips.
|
override |
Definition at line 49 of file SiStripQuality.cc.
References LogTrace, and reader.
Referenced by SiStripQuality::BadComponentStrictWeakOrdering::operator()().
void SiStripQuality::add | ( | const uint32_t & | detid, |
const SiStripBadStrip::Range & | baserange | ||
) |
Definition at line 292 of file SiStripQuality.cc.
References compact(), SiStripBadStrip::decode(), SiStripBadStrip::data::firstStrip, SiStripBadStrip::data::flag, SiStripDetInfoFileReader::getNumberOfApvsAndStripLength(), SiStripBadStrip::getRange(), LogTrace, put_replace(), SiStripBadStrip::data::range, reader, and tmp.
Referenced by add(), addInvalidConnectionFromCabling(), addNotConnectedConnectionFromCabling(), clear(), operator+=(), ReduceGranularity(), counter.Counter::register(), SequenceTypes.Task::remove(), SequenceTypes.Task::replace(), and turnOffFeds().
void SiStripQuality::add | ( | const SiStripBadStrip * | base | ) |
Definition at line 275 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 209 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 118 of file SiStripQuality.cc.
References add(), SiStripBadStrip::encode(), SiStripDetVOff::getDetIds(), SiStripDetInfoFileReader::getNumberOfApvsAndStripLength(), LogTrace, and reader.
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 140 of file SiStripQuality.cc.
References trackerTree::check(), SiStripDetCabling::fedCabling(), SiStripFedCabling::fedIds(), electrons_cff::ids, RunInfo::m_fed_in, FEDNumbering::MAXSiStripFEDID, FEDNumbering::MINSiStripFEDID, printDebug_, SiStripDetCabling_, turnOffFeds(), and useEmptyRunInfo_.
Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
void SiStripQuality::addInvalidConnectionFromCabling | ( | ) |
Definition at line 235 of file SiStripQuality.cc.
References add(), SiStripDetCabling::addActiveDetectorsRawIds(), SiStripBadStrip::encode(), SiStripDetCabling::getConnections(), training_settings::idx, sistrip::invalid_, LogTrace, SiStripDetCabling::nApvPairs(), SiStripDetCabling_, and globals_cff::x1.
Referenced by add(), and clear().
void SiStripQuality::addNotConnectedConnectionFromCabling | ( | ) |
Definition at line 216 of file SiStripQuality.cc.
References add(), SiStripBadStrip::encode(), SiStripDetInfoFileReader::getAllData(), SiStripDetCabling::IsConnected(), LogTrace, reader, and SiStripDetCabling_.
Referenced by add(), and clear().
|
inline |
Definition at line 128 of file SiStripQuality.h.
References compact(), input, printActiveFedsInfo(), SiStripBadStrip::printDebug(), printDetInfo(), put_replace(), SiStripDetCabling_, subtract(), subtraction(), and turnOffFeds().
Referenced by StripClusterizerAlgorithm::initialize().
bool SiStripQuality::cleanUp | ( | bool | force = false | ) |
Definition at line 498 of file SiStripQuality.cc.
References SiStripBadStrip::indexes, LogTrace, SiStripBadStrip::put(), toCleanUp, and SiStripBadStrip::v_badstrips.
Referenced by clear(), operator+=(), and operator-=().
|
inline |
Definition at line 57 of file SiStripQuality.h.
References add(), addInvalidConnectionFromCabling(), addNotConnectedConnectionFromCabling(), BadComponentVect, cleanUp(), fillBadComponents(), cmsStageWithFailover::force, SiStripBadStrip::indexes, operator!=(), operator+=(), operator-(), operator-=(), operator==(), ReduceGranularity(), toCleanUp, and SiStripBadStrip::v_badstrips.
Referenced by Vispa.Views.WidgetView.WidgetView::closeEvent(), Vispa.Views.BoxDecayView.BoxDecayView::closeEvent(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), Vispa.Share.FindAlgorithm.FindAlgorithm::findUsingFindDialog(), Vispa.Views.LineDecayView.LineDecayView::setDataObjects(), Vispa.Views.WidgetView.WidgetView::setDataObjects(), BeautifulSoup.Tag::setString(), Vispa.Views.TreeView.TreeView::updateContent(), Vispa.Views.TableView.TableView::updateContent(), Vispa.Views.BoxDecayView.BoxDecayView::updateContent(), and Vispa.Views.PropertyView.PropertyView::updateContent().
void SiStripQuality::compact | ( | unsigned int & | detid, |
std::vector< unsigned int > & | vect | ||
) |
Definition at line 334 of file SiStripQuality.cc.
References SiStripDetInfoFileReader::getNumberOfApvsAndStripLength(), reader, and tmp.
Referenced by add(), SiStripBadAPVAlgorithmFromClusterOccupancy::AnalyzeOccupancy(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::AnalyzeOccupancy(), cabling(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), getBadComponentList(), SiStripHitEffFromCalibTree::makeSQLite(), and SiStripCondObjBuilderFromDb::storeQuality().
|
private |
Definition at line 418 of file SiStripQuality.cc.
References SiStripBadStrip::decode(), SiStripBadStrip::encode(), SiStripBadStrip::data::firstStrip, and SiStripBadStrip::data::range.
void SiStripQuality::fillBadComponents | ( | ) |
Definition at line 528 of file SiStripQuality.cc.
References SiStripQuality::BadComponent::BadApvs, BadComponentVect, SiStripQuality::BadComponent::BadFibers, SiStripQuality::BadComponent::BadModule, SiStripBadStrip::decode(), SiStripQuality::BadComponent::detid, SiStripBadStrip::data::firstStrip, SiStripDetInfoFileReader::getNumberOfApvsAndStripLength(), SiStripBadStrip::indexes, SiStripBadStrip::data::range, reader, mps_fire::result, and SiStripBadStrip::v_badstrips.
Referenced by clear(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), SiStripHitEffFromCalibTree::makeSQLite(), operator+=(), and operator-=().
short SiStripQuality::getBadApvs | ( | const uint32_t & | detid | ) | const |
Definition at line 673 of file SiStripQuality.cc.
References BadComponentVect, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by HitEff::analyze(), SiStripRecHitConverterAlgorithm::fillBad128StripBlocks(), getFileInPath(), and MeasurementTrackerImpl::initializeStripStatus().
|
inline |
Definition at line 120 of file SiStripQuality.h.
References BadComponentVect, and compact().
Referenced by SiStripHitEffFromCalibTree::algoAnalyze(), SiStripQualityStatistics::analyze(), SiStripQualityHistory::beginRun(), SiStripBadComponentInfo::checkBadComponents(), SiStripPI::fillBCArrays(), and SiStripQualityDQM::fillGrandSummaryMEs().
short SiStripQuality::getBadFibers | ( | const uint32_t & | detid | ) | const |
Definition at line 681 of file SiStripQuality.cc.
References BadComponentVect, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by SiStripRecHitConverterAlgorithm::fillBad128StripBlocks(), getFileInPath(), and MeasurementTrackerImpl::initializeStripStatus().
|
inline |
Definition at line 90 of file SiStripQuality.h.
References SiStripQuality::BadComponent::detid, FileInPath_, getBadApvs(), getBadFibers(), IsApvBad(), IsFiberBad(), IsModuleBad(), IsModuleUsable(), IsStripBad(), nBadStripsOnTheLeft(), nBadStripsOnTheRight(), and digitizers_cfi::strip.
bool SiStripQuality::IsApvBad | ( | const uint32_t & | detid, |
const short & | apvNb | ||
) | const |
Definition at line 617 of file SiStripQuality.cc.
References BadComponentVect, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by SiStripGainFromCalibTree::algoBeginRun(), SiStripBadAPVAlgorithmFromClusterOccupancy::AnalyzeOccupancy(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::AnalyzeOccupancy(), SiStripGainsPCLHarvester::beginRun(), SiStripGainsPCLWorker::dqmBeginRun(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), getFileInPath(), SiStripAPVRestorer::inspect(), and SiStripClusterInfo::IsApvBad().
bool SiStripQuality::IsFiberBad | ( | const uint32_t & | detid, |
const short & | fiberNb | ||
) | const |
Definition at line 609 of file SiStripQuality.cc.
References BadComponentVect, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by getFileInPath(), and SiStripClusterInfo::IsFiberBad().
bool SiStripQuality::IsModuleBad | ( | const uint32_t & | detid | ) | const |
Definition at line 601 of file SiStripQuality.cc.
References BadComponentVect, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by MCMisalignmentScaler::analyze(), TrackerGeometryCompare::fillTree(), LargeEvents< T >::filter(), SingleMultiplicity< T >::getEvent(), getFileInPath(), SiStripClusterInfo::IsModuleBad(), and SiStripTrackerMapCreator::setTkMapFromAlarm().
bool SiStripQuality::IsModuleUsable | ( | const uint32_t & | detid | ) | const |
Definition at line 587 of file SiStripQuality.cc.
References BadComponentVect, SiStripDetCabling::IsConnected(), AlCaHLTBitMon_ParallelJobs::p, and SiStripDetCabling_.
Referenced by SiStripQualityStatistics::analyze(), SiStripQualityDQM::fillGrandSummaryMEs(), getFileInPath(), MeasurementTrackerImpl::initializeStripStatus(), SiStripClusterInfo::IsModuleUsable(), and SiStripRecHitConverterAlgorithm::useModule().
bool SiStripQuality::IsStripBad | ( | const uint32_t & | detid, |
const short & | strip | ||
) | const |
Definition at line 625 of file SiStripQuality.cc.
References SiStripBadStrip::getRange().
Referenced by SiStripAPVRestorer::abnormalBaselineInspect(), SiStripMonitorCluster::analyze(), SiStripMonitorTrack::clusterInfos(), OccupancyPlots::endRun(), SiStripMonitorPedestals::fillCondDBMEs(), SiStripQualityDQM::fillMEsForDet(), SiStripQualityDQM::fillMEsForLayer(), getFileInPath(), SiStripAPVRestorer::nullInspect(), SiStripClusterInfo::stripQualitiesBad(), TT6CMNSubtractor::subtract_(), and IteratedMedianCMNSubtractor::subtract_().
bool SiStripQuality::IsStripBad | ( | const Range & | range, |
const short & | strip | ||
) | const |
Definition at line 631 of file SiStripQuality.cc.
References SiStripBadStrip::decode(), SiStripBadStrip::data::firstStrip, SiStripBadStrip::data::range, and mps_fire::result.
int SiStripQuality::nBadStripsOnTheLeft | ( | const Range & | range, |
const short & | strip | ||
) | const |
Definition at line 645 of file SiStripQuality.cc.
References SiStripBadStrip::decode(), SiStripBadStrip::data::firstStrip, SiStripBadStrip::data::range, and mps_fire::result.
Referenced by getFileInPath().
int SiStripQuality::nBadStripsOnTheRight | ( | const Range & | range, |
const short & | strip | ||
) | const |
Definition at line 659 of file SiStripQuality.cc.
References SiStripBadStrip::decode(), SiStripBadStrip::data::firstStrip, SiStripBadStrip::data::range, mps_fire::result, and digitizers_cfi::strip.
Referenced by getFileInPath().
bool SiStripQuality::operator!= | ( | const SiStripQuality & | other | ) | const |
Definition at line 116 of file SiStripQuality.cc.
References trackingPlots::other.
Referenced by clear().
SiStripQuality & SiStripQuality::operator+= | ( | const SiStripQuality & | other | ) |
Definition at line 55 of file SiStripQuality.cc.
References add(), cleanUp(), and fillBadComponents().
Referenced by clear().
const SiStripQuality SiStripQuality::operator- | ( | const SiStripQuality & | other | ) | const |
Definition at line 105 of file SiStripQuality.cc.
References trackingPlots::other, and SiStripQuality().
Referenced by clear().
SiStripQuality & SiStripQuality::operator-= | ( | const SiStripQuality & | other | ) |
Definition at line 63 of file SiStripQuality.cc.
References cleanUp(), SiStripBadStrip::decode(), fillBadComponents(), SiStripBadStrip::data::firstStrip, SiStripBadStrip::getDataVectorBegin(), SiStripDetInfoFileReader::getNumberOfApvsAndStripLength(), SiStripBadStrip::getRange(), SiStripBadStrip::getRegistryVectorBegin(), SiStripBadStrip::getRegistryVectorEnd(), put_replace(), SiStripBadStrip::data::range, reader, and subtract().
Referenced by clear().
bool SiStripQuality::operator== | ( | const SiStripQuality & | other | ) | const |
Definition at line 110 of file SiStripQuality.cc.
References a, SiStripBadStrip::getRegistryVectorBegin(), SiStripBadStrip::getRegistryVectorEnd(), and trackingPlots::other.
Referenced by clear().
|
private |
Prints debug output for the active feds comparing the list in RunInfo and FedCabling.
Definition at line 724 of file SiStripQuality.cc.
References popcon2dropbox::copy().
Referenced by cabling().
|
private |
Prints debug output for a given detId.
Definition at line 689 of file SiStripQuality.cc.
References 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 cabling(), and turnOffFeds().
|
private |
Definition at line 343 of file SiStripQuality.cc.
References SiStripBadStrip::DetRegistry::detid, SiStripBadStrip::DetRegistry::ibegin, SiStripBadStrip::DetRegistry::iend, SiStripBadStrip::indexes, LogTrace, AlCaHLTBitMon_ParallelJobs::p, sd, toCleanUp, and SiStripBadStrip::v_badstrips.
Referenced by add(), cabling(), and operator-=().
void SiStripQuality::ReduceGranularity | ( | double | threshold | ) |
Definition at line 373 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, min(), and SiStripBadStrip::data::range.
Referenced by clear().
|
inline |
Definition at line 124 of file SiStripQuality.h.
References SiStripBadStrip::printDebug(), and printDebug_.
|
inline |
|
private |
Definition at line 457 of file SiStripQuality.cc.
References subtraction().
Referenced by cabling(), and operator-=().
|
private |
Definition at line 466 of file SiStripQuality.cc.
References SiStripBadStrip::decode(), SiStripBadStrip::encode(), SiStripBadStrip::data::firstStrip, SiStripBadStrip::data::range, and tmp.
Referenced by cabling(), and 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 750 of file SiStripQuality.cc.
References add(), SiStripBadStrip::encode(), SiStripDetCabling::fedCabling(), SiStripFedCabling::fedConnections(), LogTrace, printDetInfo(), SiStripDetCabling_, and SiStripDetCabling::trackerTopology().
Referenced by add(), and cabling().
|
private |
Definition at line 156 of file SiStripQuality.h.
Referenced by clear(), fillBadComponents(), getBadApvs(), getBadComponentList(), getBadFibers(), IsApvBad(), IsFiberBad(), IsModuleBad(), IsModuleUsable(), and SiStripQuality().
|
private |
Definition at line 153 of file SiStripQuality.h.
Referenced by getFileInPath(), and SiStripQuality().
|
private |
Definition at line 159 of file SiStripQuality.h.
Referenced by add(), setPrintDebugOutput(), and SiStripQuality().
|
private |
Definition at line 154 of file SiStripQuality.h.
Referenced by add(), addNotConnectedConnectionFromCabling(), compact(), fillBadComponents(), operator-=(), SiStripQuality(), and ~SiStripQuality().
|
private |
Definition at line 158 of file SiStripQuality.h.
Referenced by add(), addInvalidConnectionFromCabling(), addNotConnectedConnectionFromCabling(), cabling(), IsModuleUsable(), SiStripQuality(), and turnOffFeds().
|
private |
Definition at line 152 of file SiStripQuality.h.
Referenced by cleanUp(), clear(), put_replace(), and SiStripQuality().
|
private |
Definition at line 160 of file SiStripQuality.h.
Referenced by add(), setUseEmptyRunInfo(), and SiStripQuality().