Histogram-based analysis for connection loop. More...
#include <FastFedCablingAnalysis.h>
Public Types | |
typedef std::map< uint32_t, uint16_t > | Candidates |
Public Types inherited from CommissioningAnalysis | |
typedef std::vector< bool > | VBool |
typedef std::vector< float > | VFloat |
typedef std::vector< uint16_t > | VInt |
typedef std::vector< std::string > | VString |
typedef std::vector< VBool > | VVBool |
typedef std::vector< VFloat > | VVFloat |
typedef std::vector< VInt > | VVInt |
Public Member Functions | |
bool | badTrimDac () const |
const uint32_t & | dcuHardId () const |
FastFedCablingAnalysis (const uint32_t &key) | |
FastFedCablingAnalysis () | |
void | header (std::stringstream &) const override |
const float & | highLevel () const |
const float & | highRms () const |
bool | isDirty () const |
bool | isValid () const override |
const uint16_t & | lldCh () const |
const float & | lowLevel () const |
const float & | lowRms () const |
const float & | max () const |
const float & | min () const |
void | print (std::stringstream &, uint32_t not_used=0) override |
void | reset () override |
void | summary (std::stringstream &) const override |
~FastFedCablingAnalysis () override | |
Public Member Functions inherited from CommissioningAnalysis | |
virtual void | addErrorCode (const std::string &error) |
CommissioningAnalysis (const uint32_t &key, const std::string &my_name) | |
CommissioningAnalysis (const std::string &my_name) | |
const uint32_t & | dcuId () const |
void | dcuId (const uint32_t &) |
const uint32_t & | detId () const |
void | detId (const uint32_t &) |
const uint32_t & | fecKey () const |
void | fecKey (const uint32_t &) |
const uint32_t & | fedKey () const |
void | fedKey (const uint32_t &) |
const VString & | getErrorCodes () const |
const std::string & | myName () const |
void | setErrorCodes (const VString &errors) |
virtual | ~CommissioningAnalysis () |
Static Public Attributes | |
static const float | dirtyThreshold_ = 800 |
static const uint16_t | nBitsForDcuId_ = 32 |
static const uint16_t | nBitsForLldCh_ = 2 |
static const float | threshold_ = 100. |
static const float | trimDacThreshold_ = 10 |
Private Attributes | |
uint32_t | dcuHardId_ |
float | highMean_ |
float | highMedian_ |
float | highRms_ |
uint16_t | lldCh_ |
float | lowMean_ |
float | lowMedian_ |
float | lowRms_ |
float | max_ |
float | midRange_ |
float | min_ |
float | range_ |
Friends | |
class | FastFedCablingAlgorithm |
Histogram-based analysis for connection loop.
Definition at line 16 of file FastFedCablingAnalysis.h.
typedef std::map<uint32_t, uint16_t> FastFedCablingAnalysis::Candidates |
Definition at line 26 of file FastFedCablingAnalysis.h.
FastFedCablingAnalysis::FastFedCablingAnalysis | ( | const uint32_t & | key | ) |
Definition at line 34 of file FastFedCablingAnalysis.cc.
References CommissioningAnalysis::fecKey(), CommissioningAnalysis::fedKey(), sistrip::invalid_, and crabWrapper::key.
FastFedCablingAnalysis::FastFedCablingAnalysis | ( | ) |
Definition at line 61 of file FastFedCablingAnalysis.cc.
|
inlineoverride |
Definition at line 24 of file FastFedCablingAnalysis.h.
bool FastFedCablingAnalysis::badTrimDac | ( | ) | const |
Identifies if TrimDAQ setting is valid or not.
Definition at line 110 of file FastFedCablingAnalysis.cc.
References lowMean_, and trimDacThreshold_.
Referenced by FastFedCablingHistosUsingDb::connections(), print(), FastFedCablingHistograms::printAnalyses(), and FastFedCablingHistograms::printSummary().
|
inline |
DCU hardware id (32-bits).
Definition at line 139 of file FastFedCablingAnalysis.h.
References dcuHardId_.
Referenced by FastFedCablingHistosUsingDb::addDcuDetIds(), FastFedCablingHistosUsingDb::connections(), and FastFedCablingHistosUsingDb::update().
|
overridevirtual |
Header information for analysis print().
Reimplemented from CommissioningAnalysis.
Definition at line 114 of file FastFedCablingAnalysis.cc.
References SiStripFecKey::ccuAddr(), SiStripFecKey::ccuChan(), CommissioningAnalysis::dcuId(), TauDecayModes::dec, CommissioningAnalysis::detId(), SiStripFecKey::fecCrate(), SiStripFedKey::feChan(), CommissioningAnalysis::fecKey(), SiStripFecKey::fecRing(), SiStripFecKey::fecSlot(), SiStripFedKey::fedChannel(), SiStripFedKey::fedId(), CommissioningAnalysis::fedKey(), SiStripFedKey::feUnit(), SiStripFecKey::isValid(), SiStripFecKey::lldChan(), and CommissioningAnalysis::myName().
Referenced by print().
|
inline |
"High" light level [ADC].
Definition at line 141 of file FastFedCablingAnalysis.h.
References highMean_.
Referenced by FastFedCablingHistosUsingDb::create(), and FastFedCablingSummaryFactory::extract().
|
inline |
Spread in "high" ligh level [ADC].
Definition at line 142 of file FastFedCablingAnalysis.h.
References highRms_.
Referenced by FastFedCablingHistosUsingDb::create(), and FastFedCablingSummaryFactory::extract().
bool FastFedCablingAnalysis::isDirty | ( | ) | const |
Identifies if fibre is dirty or not.
Definition at line 106 of file FastFedCablingAnalysis.cc.
References dirtyThreshold_, and highMean_.
Referenced by FastFedCablingHistosUsingDb::connections(), FastFedCablingHistosUsingDb::create(), print(), FastFedCablingHistograms::printAnalyses(), and FastFedCablingHistograms::printSummary().
|
overridevirtual |
Identifies if analysis is valid or not.
Reimplemented from CommissioningAnalysis.
Definition at line 97 of file FastFedCablingAnalysis.cc.
References dcuHardId_, relativeConstraints::empty, CommissioningAnalysis::getErrorCodes(), highMean_, highMedian_, highRms_, sistrip::invalid32_, lldCh_, lowMean_, lowMedian_, lowRms_, max_, midRange_, min_, range_, and sistrip::valid_.
Referenced by ntupleDataFormat._Object::_checkIsValid(), FastFedCablingHistosUsingDb::connections(), FastFedCablingHistosUsingDb::create(), FastFedCablingSummaryFactory::extract(), FastFedCablingHistograms::histoAnalysis(), print(), FastFedCablingHistograms::printAnalyses(), FastFedCablingHistograms::printSummary(), core.AutoHandle.AutoHandle::ReallyLoad(), summary(), and FastFedCablingHistosUsingDb::update().
|
inline |
Linear Laser Driver channel.
Definition at line 140 of file FastFedCablingAnalysis.h.
References lldCh_.
Referenced by FastFedCablingHistosUsingDb::addDcuDetIds(), FastFedCablingHistosUsingDb::create(), and FastFedCablingHistosUsingDb::update().
|
inline |
"Low" light level [ADC].
Definition at line 143 of file FastFedCablingAnalysis.h.
References lowMean_.
Referenced by FastFedCablingHistosUsingDb::create(), and FastFedCablingSummaryFactory::extract().
|
inline |
Spread in "low" ligh level [ADC].
Definition at line 144 of file FastFedCablingAnalysis.h.
References lowRms_.
Referenced by FastFedCablingHistosUsingDb::create(), and FastFedCablingSummaryFactory::extract().
|
inline |
Maximum light level in data [ADC].
Definition at line 145 of file FastFedCablingAnalysis.h.
References max_.
Referenced by FastFedCablingHistosUsingDb::create(), and FastFedCablingSummaryFactory::extract().
|
inline |
Minimum light level in data [ADC].
Definition at line 146 of file FastFedCablingAnalysis.h.
References min_.
Referenced by FastFedCablingHistosUsingDb::create(), and FastFedCablingSummaryFactory::extract().
|
overridevirtual |
Prints analysis results.
Implements CommissioningAnalysis.
Definition at line 165 of file FastFedCablingAnalysis.cc.
References badTrimDac(), dcuHardId_, TauDecayModes::dec, relativeConstraints::empty, alignBH_cfg::fixed, CommissioningAnalysis::getErrorCodes(), header(), highMean_, highMedian_, highRms_, sistrip::invalid_, isDirty(), isValid(), lldCh_, lowMean_, lowMedian_, lowRms_, max_, midRange_, min_, and range_.
Referenced by FastFedCablingHistograms::printAnalyses().
|
overridevirtual |
Resets analysis member data.
Implements CommissioningAnalysis.
Definition at line 80 of file FastFedCablingAnalysis.cc.
References dcuHardId_, highMean_, highMedian_, highRms_, sistrip::invalid32_, sistrip::invalid_, lldCh_, lowMean_, lowMedian_, lowRms_, max_, midRange_, min_, and range_.
Referenced by MatrixReader.MatrixReader::__init__(), and MatrixReader.MatrixReader::showRaw().
|
overridevirtual |
Overrides base method.
Reimplemented from CommissioningAnalysis.
Definition at line 147 of file FastFedCablingAnalysis.cc.
References sistrip::dir_, sistrip::dqmRoot_, sistrip::EXPERT_HISTO, SiStripFedKey::feChan(), CommissioningAnalysis::fecKey(), sistrip::FED_KEY, SiStripFedKey::fedId(), CommissioningAnalysis::fedKey(), SiStripFedKey::feUnit(), isValid(), SiStripKey::key(), sistrip::LLD_CHAN, SiStripFecKey::lldChan(), CommissioningAnalysis::myName(), SiStripKey::path(), sistrip::readoutView_, SiStripEnumsAndStrings::runType(), AlCaHLTBitMon_QueryRunRegistry::string, and overlapproblemtsosanalyzer_cfi::title.
Referenced by FastFedCablingHistograms::printSummary().
|
friend |
Definition at line 28 of file FastFedCablingAnalysis.h.
|
private |
Extracted DCU id.
Definition at line 101 of file FastFedCablingAnalysis.h.
Referenced by FastFedCablingAlgorithm::analyse(), dcuHardId(), isValid(), print(), and reset().
|
static |
Level [ADC] below which fibre is defined as "dirty".
Definition at line 86 of file FastFedCablingAnalysis.h.
Referenced by FastFedCablingHistosUsingDb::create(), and isDirty().
|
private |
Definition at line 110 of file FastFedCablingAnalysis.h.
Referenced by FastFedCablingAlgorithm::analyse(), highLevel(), isDirty(), isValid(), print(), and reset().
|
private |
Definition at line 107 of file FastFedCablingAnalysis.h.
Referenced by FastFedCablingAlgorithm::analyse(), isValid(), print(), and reset().
|
private |
Definition at line 113 of file FastFedCablingAnalysis.h.
Referenced by FastFedCablingAlgorithm::analyse(), highRms(), isValid(), print(), and reset().
|
private |
Extracted LLD channel.
Definition at line 104 of file FastFedCablingAnalysis.h.
Referenced by FastFedCablingAlgorithm::analyse(), isValid(), lldCh(), print(), and reset().
|
private |
Definition at line 119 of file FastFedCablingAnalysis.h.
Referenced by FastFedCablingAlgorithm::analyse(), badTrimDac(), isValid(), lowLevel(), print(), and reset().
|
private |
Definition at line 116 of file FastFedCablingAnalysis.h.
Referenced by FastFedCablingAlgorithm::analyse(), isValid(), print(), and reset().
|
private |
Definition at line 122 of file FastFedCablingAnalysis.h.
Referenced by FastFedCablingAlgorithm::analyse(), isValid(), lowRms(), print(), and reset().
|
private |
Definition at line 131 of file FastFedCablingAnalysis.h.
Referenced by FastFedCablingAlgorithm::analyse(), isValid(), max(), print(), and reset().
|
private |
Definition at line 128 of file FastFedCablingAnalysis.h.
Referenced by FastFedCablingAlgorithm::analyse(), isValid(), print(), and reset().
|
private |
Definition at line 134 of file FastFedCablingAnalysis.h.
Referenced by FastFedCablingAlgorithm::analyse(), isValid(), min(), print(), and reset().
|
static |
Definition at line 92 of file FastFedCablingAnalysis.h.
Referenced by FastFedCablingAlgorithm::analyse().
|
static |
Definition at line 95 of file FastFedCablingAnalysis.h.
Referenced by FastFedCablingAlgorithm::analyse().
|
private |
Definition at line 125 of file FastFedCablingAnalysis.h.
Referenced by FastFedCablingAlgorithm::analyse(), isValid(), print(), and reset().
|
static |
Threshold to identify digital high from digital low.
Definition at line 83 of file FastFedCablingAnalysis.h.
Referenced by FastFedCablingAlgorithm::analyse(), and FastFedCablingHistosUsingDb::create().
|
static |
Level [ADC] below which TrimDAC setting is defined as "bad".
Definition at line 89 of file FastFedCablingAnalysis.h.
Referenced by badTrimDac().