Analysis for scope mode data. More...
#include <DaqScopeModeAnalysis.h>
Public Member Functions | |
void | addErrorCode (const std::string &error) override |
const float & | base () const |
DaqScopeModeAnalysis (const uint32_t &key) | |
DaqScopeModeAnalysis () | |
const VVInt & | dead () const |
bool | foundTickMark () const |
uint16_t | frameFindingThreshold () const |
const float & | height () const |
bool | isValid () const override |
const VVFloat & | noise () const |
const VFloat & | noiseMax () const |
const VFloat & | noiseMean () const |
const VFloat & | noiseMin () const |
const VFloat & | noiseSpread () const |
const VVInt & | noisy () const |
const float & | peak () const |
const VVFloat & | peds () const |
const VFloat & | pedsMax () const |
const VFloat & | pedsMean () const |
const VFloat & | pedsMin () const |
const VFloat & | pedsSpread () const |
void | print (std::stringstream &, uint32_t apv_number=0) override |
const VVFloat & | raw () const |
const VFloat & | rawMax () const |
const VFloat & | rawMean () const |
const VFloat & | rawMin () const |
const VFloat & | rawSpread () const |
void | reset () override |
void | summary (std::stringstream &) const override |
~DaqScopeModeAnalysis () override | |
Public Member Functions inherited from CommissioningAnalysis | |
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 |
virtual void | header (std::stringstream &) const |
const std::string & | myName () const |
void | setErrorCodes (const VString &errors) |
virtual | ~CommissioningAnalysis () |
Static Public Attributes | |
static const float | frameFindingThreshold_ = (2./3.) |
static const float | tickMarkHeightThreshold_ = 50. |
Private Attributes | |
float | base_ |
VVInt | dead_ |
float | height_ |
bool | legacy_ |
VVFloat | noise_ |
VFloat | noiseMax_ |
VFloat | noiseMean_ |
VFloat | noiseMin_ |
VFloat | noiseSpread_ |
VVInt | noisy_ |
float | peak_ |
VVFloat | peds_ |
VFloat | pedsMax_ |
VFloat | pedsMean_ |
VFloat | pedsMin_ |
VFloat | pedsSpread_ |
VVFloat | raw_ |
VFloat | rawMax_ |
VFloat | rawMean_ |
VFloat | rawMin_ |
VFloat | rawSpread_ |
Friends | |
class | DaqScopeModeAlgorithm |
Additional Inherited Members | |
Public Types inherited from CommissioningAnalysis | |
typedef std::vector< float > | VFloat |
typedef std::vector< uint16_t > | VInt |
typedef std::vector< std::string > | VString |
typedef std::vector< VFloat > | VVFloat |
typedef std::vector< VInt > | VVInt |
Analysis for scope mode data.
Definition at line 16 of file DaqScopeModeAnalysis.h.
DaqScopeModeAnalysis::DaqScopeModeAnalysis | ( | const uint32_t & | key | ) |
Definition at line 16 of file DaqScopeModeAnalysis.cc.
DaqScopeModeAnalysis::DaqScopeModeAnalysis | ( | ) |
Definition at line 45 of file DaqScopeModeAnalysis.cc.
|
inlineoverride |
Definition at line 24 of file DaqScopeModeAnalysis.h.
|
inlineoverridevirtual |
Adds error codes for analysis (overrides private base).
Reimplemented from CommissioningAnalysis.
Definition at line 162 of file DaqScopeModeAnalysis.h.
References CommissioningAnalysis::addErrorCode().
Referenced by DaqScopeModeAlgorithm::analyse().
|
inline |
Baseline level of tick mark [ADC].
Definition at line 160 of file DaqScopeModeAnalysis.h.
References base_.
Referenced by DaqScopeModeHistosUsingDb::create(), DaqScopeModeSummaryFactory::extract(), and DaqScopeModeHistosUsingDb::update().
|
inline |
Definition at line 142 of file DaqScopeModeAnalysis.h.
References dead_.
Referenced by DaqScopeModeHistosUsingDb::create(), DaqScopeModeSummaryFactory::extract(), and DaqScopeModeHistosUsingDb::update().
bool DaqScopeModeAnalysis::foundTickMark | ( | ) | const |
Identifies if tick mark is found or not.
Definition at line 119 of file DaqScopeModeAnalysis.cc.
References base_, relativeConstraints::empty, frameFindingThreshold(), CommissioningAnalysis::getErrorCodes(), height_, peak_, and sistrip::valid_.
Referenced by print().
uint16_t DaqScopeModeAnalysis::frameFindingThreshold | ( | ) | const |
FED frame-finding threshold [ADC] (returns 65535 if invalid).
Definition at line 105 of file DaqScopeModeAnalysis.cc.
References base_, relativeConstraints::empty, frameFindingThreshold_, CommissioningAnalysis::getErrorCodes(), height_, sistrip::invalid_, peak_, tickMarkHeightThreshold_, and sistrip::valid_.
Referenced by DaqScopeModeHistosUsingDb::create(), foundTickMark(), isValid(), print(), and DaqScopeModeHistosUsingDb::update().
|
inline |
Height of tick mark [ADC].
Definition at line 159 of file DaqScopeModeAnalysis.h.
References height_.
Referenced by Vispa.Main.MainWindow.MainWindow::_saveIni(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), Vispa.Gui.ConnectableWidget.ConnectableWidget::centerSinglePortVertically(), Vispa.Gui.VispaWidget.VispaWidget::contentRect(), DaqScopeModeHistosUsingDb::create(), Vispa.Gui.VispaWidget.VispaWidget::defineArrowBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget::defineCircleBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget::defineRoundRectBackgroundShape(), DaqScopeModeSummaryFactory::extract(), Vispa.Gui.VispaWidget.VispaWidget::imageRectF(), Vispa.Gui.VispaWidget.VispaWidget::paint(), Vispa.Gui.VispaWidget.VispaWidget::setZoom(), DaqScopeModeHistosUsingDb::update(), and Vispa.Main.MainWindow.MainWindow::updateStartupScreenGeometry().
|
overridevirtual |
Identifies if analysis is valid or not.
Reimplemented from CommissioningAnalysis.
Definition at line 129 of file DaqScopeModeAnalysis.cc.
References base_, relativeConstraints::empty, frameFindingThreshold(), CommissioningAnalysis::getErrorCodes(), height_, sistrip::maximum_, noiseMax_, noiseMean_, noiseMin_, noiseSpread_, peak_, pedsMax_, pedsMean_, pedsMin_, pedsSpread_, rawMax_, rawMean_, rawMin_, rawSpread_, and sistrip::valid_.
Referenced by ntupleDataFormat._Object::_checkIsValid(), DaqScopeModeHistosUsingDb::create(), DaqScopeModeHistograms::histoAnalysis(), print(), core.AutoHandle.AutoHandle::ReallyLoad(), summary(), and DaqScopeModeHistosUsingDb::update().
|
inline |
Definition at line 139 of file DaqScopeModeAnalysis.h.
References noise_.
Referenced by DaqScopeModeSummaryFactory::extract(), and DaqScopeModeHistosUsingDb::update().
|
inline |
Definition at line 154 of file DaqScopeModeAnalysis.h.
References noiseMax_.
Referenced by DaqScopeModeHistosUsingDb::create(), and DaqScopeModeSummaryFactory::extract().
|
inline |
Definition at line 147 of file DaqScopeModeAnalysis.h.
References noiseMean_.
Referenced by DaqScopeModeHistosUsingDb::create(), and DaqScopeModeSummaryFactory::extract().
|
inline |
Definition at line 155 of file DaqScopeModeAnalysis.h.
References noiseMin_.
Referenced by DaqScopeModeHistosUsingDb::create(), and DaqScopeModeSummaryFactory::extract().
|
inline |
Definition at line 148 of file DaqScopeModeAnalysis.h.
References noiseSpread_.
Referenced by DaqScopeModeHistosUsingDb::create(), and DaqScopeModeSummaryFactory::extract().
|
inline |
Definition at line 143 of file DaqScopeModeAnalysis.h.
References noisy_.
Referenced by DaqScopeModeHistosUsingDb::create(), DaqScopeModeSummaryFactory::extract(), and DaqScopeModeHistosUsingDb::update().
|
inline |
Level of tick mark top [ADC].
Definition at line 161 of file DaqScopeModeAnalysis.h.
References peak_.
Referenced by DaqScopeModeHistosUsingDb::create(), DaqScopeModeSummaryFactory::extract(), and DaqScopeModeHistosUsingDb::update().
|
inline |
Definition at line 138 of file DaqScopeModeAnalysis.h.
References peds_.
Referenced by DaqScopeModeSummaryFactory::extract(), and DaqScopeModeHistosUsingDb::update().
|
inline |
Definition at line 152 of file DaqScopeModeAnalysis.h.
References pedsMax_.
Referenced by DaqScopeModeHistosUsingDb::create(), and DaqScopeModeSummaryFactory::extract().
|
inline |
Definition at line 145 of file DaqScopeModeAnalysis.h.
References pedsMean_.
Referenced by DaqScopeModeHistosUsingDb::create(), and DaqScopeModeSummaryFactory::extract().
|
inline |
Definition at line 153 of file DaqScopeModeAnalysis.h.
References pedsMin_.
Referenced by DaqScopeModeHistosUsingDb::create(), DaqScopeModeSummaryFactory::extract(), and DaqScopeModeHistosUsingDb::update().
|
inline |
Definition at line 146 of file DaqScopeModeAnalysis.h.
References pedsSpread_.
Referenced by DaqScopeModeHistosUsingDb::create(), and DaqScopeModeSummaryFactory::extract().
|
overridevirtual |
Prints analysis results.
Implements CommissioningAnalysis.
Definition at line 163 of file DaqScopeModeAnalysis.cc.
References base_, dead_, relativeConstraints::empty, alignBH_cfg::fixed, foundTickMark(), frameFindingThreshold(), CommissioningAnalysis::getErrorCodes(), CommissioningAnalysis::header(), height_, cuy::ii, isValid(), sistrip::mlCommissioning_, CommissioningAnalysis::myName(), noise_, noiseMax_, noiseMean_, noiseMin_, noiseSpread_, noisy_, peak_, peds_, pedsMax_, pedsMean_, pedsMin_, pedsSpread_, raw_, rawMax_, rawMean_, rawMin_, rawSpread_, and findQualityFiles::size.
Referenced by DaqScopeModeHistosUsingDb::update().
|
inline |
|
inline |
Definition at line 156 of file DaqScopeModeAnalysis.h.
References rawMax_.
Referenced by DaqScopeModeHistosUsingDb::create().
|
inline |
Definition at line 149 of file DaqScopeModeAnalysis.h.
References rawMean_.
Referenced by DaqScopeModeHistosUsingDb::create().
|
inline |
Definition at line 157 of file DaqScopeModeAnalysis.h.
References rawMin_.
Referenced by DaqScopeModeHistosUsingDb::create().
|
inline |
Definition at line 150 of file DaqScopeModeAnalysis.h.
References rawSpread_.
Referenced by DaqScopeModeHistosUsingDb::create().
|
overridevirtual |
Resets analysis member data.
Implements CommissioningAnalysis.
Definition at line 74 of file DaqScopeModeAnalysis.cc.
References base_, dead_, height_, sistrip::invalid_, noise_, noiseMax_, noiseMean_, noiseMin_, noiseSpread_, noisy_, peak_, peds_, pedsMax_, pedsMean_, pedsMin_, pedsSpread_, raw_, rawMax_, rawMean_, rawMin_, and rawSpread_.
Referenced by MatrixReader.MatrixReader::__init__(), and MatrixReader.MatrixReader::showRaw().
|
overridevirtual |
Overrides base method.
Reimplemented from CommissioningAnalysis.
Definition at line 250 of file DaqScopeModeAnalysis.cc.
References sistrip::APV, SiStripFecKey::ccuAddr(), SiStripFecKey::ccuChan(), sistrip::extrainfo::commonMode_, sistrip::controlView_, sistrip::dir_, sistrip::dqmRoot_, sistrip::EXPERT_HISTO, funct::false, SiStripFecKey::fecCrate(), CommissioningAnalysis::fecKey(), SiStripFecKey::fecRing(), SiStripFecKey::fecSlot(), sistrip::FED_KEY, CommissioningAnalysis::fedKey(), SiStripFecKey::i2cAddr(), isValid(), SiStripKey::key(), sistrip::LLD_CHAN, SiStripFecKey::lldChan(), CommissioningAnalysis::myName(), callgraph::path, sistrip::extrainfo::pedestals_, sistrip::extrainfo::rawNoise_, SiStripEnumsAndStrings::runType(), sistrip::extrainfo::scopeModeFrame_, AlCaHLTBitMon_QueryRunRegistry::string, fftjetcommon_cfi::title, and funct::true.
|
friend |
Definition at line 26 of file DaqScopeModeAnalysis.h.
|
private |
Baseline level of tick mark [ADC].
Definition at line 90 of file DaqScopeModeAnalysis.h.
Referenced by DaqScopeModeAlgorithm::analyse(), base(), foundTickMark(), frameFindingThreshold(), isValid(), print(), and reset().
|
private |
Dead strips.
Definition at line 102 of file DaqScopeModeAnalysis.h.
Referenced by DaqScopeModeAlgorithm::analyse(), DaqScopeModeAnalysis(), dead(), print(), and reset().
|
static |
Threshold for FED frame finding (fraction of tick height).
Definition at line 83 of file DaqScopeModeAnalysis.h.
Referenced by frameFindingThreshold().
|
private |
Height of tick mark [ADC].
Definition at line 88 of file DaqScopeModeAnalysis.h.
Referenced by DaqScopeModeAlgorithm::analyse(), foundTickMark(), frameFindingThreshold(), height(), isValid(), print(), and reset().
|
private |
Definition at line 133 of file DaqScopeModeAnalysis.h.
|
private |
Noise values.
Definition at line 97 of file DaqScopeModeAnalysis.h.
Referenced by DaqScopeModeAlgorithm::analyse(), noise(), print(), and reset().
|
private |
Max noise value.
Definition at line 125 of file DaqScopeModeAnalysis.h.
Referenced by DaqScopeModeAlgorithm::analyse(), isValid(), noiseMax(), print(), and reset().
|
private |
Mean noise value.
Definition at line 111 of file DaqScopeModeAnalysis.h.
Referenced by DaqScopeModeAlgorithm::analyse(), isValid(), noiseMean(), print(), and reset().
|
private |
Min noise value.
Definition at line 127 of file DaqScopeModeAnalysis.h.
Referenced by DaqScopeModeAlgorithm::analyse(), isValid(), noiseMin(), print(), and reset().
|
private |
Rms spread in noise.
Definition at line 113 of file DaqScopeModeAnalysis.h.
Referenced by DaqScopeModeAlgorithm::analyse(), isValid(), noiseSpread(), print(), and reset().
|
private |
Noisy strips.
Definition at line 104 of file DaqScopeModeAnalysis.h.
Referenced by DaqScopeModeAlgorithm::analyse(), DaqScopeModeAnalysis(), noisy(), print(), and reset().
|
private |
Level of tick mark top [ADC].
Definition at line 92 of file DaqScopeModeAnalysis.h.
Referenced by DaqScopeModeAlgorithm::analyse(), foundTickMark(), frameFindingThreshold(), isValid(), peak(), print(), and reset().
|
private |
Peds values.
Definition at line 95 of file DaqScopeModeAnalysis.h.
Referenced by DaqScopeModeAlgorithm::analyse(), peds(), print(), and reset().
|
private |
Max peds value.
Definition at line 120 of file DaqScopeModeAnalysis.h.
Referenced by DaqScopeModeAlgorithm::analyse(), isValid(), pedsMax(), print(), and reset().
|
private |
Mean peds value.
Definition at line 107 of file DaqScopeModeAnalysis.h.
Referenced by DaqScopeModeAlgorithm::analyse(), isValid(), pedsMean(), print(), and reset().
|
private |
Min peds value.
Definition at line 122 of file DaqScopeModeAnalysis.h.
Referenced by DaqScopeModeAlgorithm::analyse(), isValid(), pedsMin(), print(), and reset().
|
private |
Rms spread in peds.
Definition at line 109 of file DaqScopeModeAnalysis.h.
Referenced by DaqScopeModeAlgorithm::analyse(), isValid(), pedsSpread(), print(), and reset().
|
private |
Raw noise values.
Definition at line 99 of file DaqScopeModeAnalysis.h.
Referenced by DaqScopeModeAlgorithm::analyse(), print(), raw(), and reset().
|
private |
Max raw noise value.
Definition at line 129 of file DaqScopeModeAnalysis.h.
Referenced by DaqScopeModeAlgorithm::analyse(), isValid(), print(), rawMax(), and reset().
|
private |
Mean raw noise value.
Definition at line 115 of file DaqScopeModeAnalysis.h.
Referenced by DaqScopeModeAlgorithm::analyse(), isValid(), print(), rawMean(), and reset().
|
private |
Min raw noise value.
Definition at line 131 of file DaqScopeModeAnalysis.h.
Referenced by DaqScopeModeAlgorithm::analyse(), isValid(), print(), rawMin(), and reset().
|
private |
Rms spread in raw noise.
Definition at line 117 of file DaqScopeModeAnalysis.h.
Referenced by DaqScopeModeAlgorithm::analyse(), isValid(), print(), rawSpread(), and reset().
|
static |
Threshold defining minimum tick mark height [ADC].
Definition at line 80 of file DaqScopeModeAnalysis.h.
Referenced by DaqScopeModeAlgorithm::analyse(), DaqScopeModeHistosUsingDb::create(), and frameFindingThreshold().