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< 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 |
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 46 of file DaqScopeModeAnalysis.cc.
|
inlineoverride |
Definition at line 22 of file DaqScopeModeAnalysis.h.
|
inlineoverridevirtual |
Adds error codes for analysis (overrides private base).
Reimplemented from CommissioningAnalysis.
Definition at line 157 of file DaqScopeModeAnalysis.h.
References CommissioningAnalysis::addErrorCode(), and relativeConstraints::error.
|
inline |
Baseline level of tick mark [ADC].
Definition at line 155 of file DaqScopeModeAnalysis.h.
References base_.
|
inline |
bool DaqScopeModeAnalysis::foundTickMark | ( | ) | const |
Identifies if tick mark is found or not.
Definition at line 117 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 106 of file DaqScopeModeAnalysis.cc.
References base_, relativeConstraints::empty, frameFindingThreshold_, CommissioningAnalysis::getErrorCodes(), height_, sistrip::invalid_, peak_, tickMarkHeightThreshold_, and sistrip::valid_.
Referenced by foundTickMark(), isValid(), and print().
|
inline |
Height of tick mark [ADC].
Definition at line 154 of file DaqScopeModeAnalysis.h.
References height_.
|
overridevirtual |
Identifies if analysis is valid or not.
Reimplemented from CommissioningAnalysis.
Definition at line 124 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(), print(), core.AutoHandle.AutoHandle::ReallyLoad(), and summary().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Level of tick mark top [ADC].
Definition at line 156 of file DaqScopeModeAnalysis.h.
References peak_.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
overridevirtual |
Prints analysis results.
Implements CommissioningAnalysis.
Definition at line 140 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_, findQualityFiles::size, and contentValuesCheck::ss.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
overridevirtual |
Resets analysis member data.
Implements CommissioningAnalysis.
Definition at line 76 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 216 of file DaqScopeModeAnalysis.cc.
References sistrip::APV, SiStripFecKey::ccuAddr(), SiStripFecKey::ccuChan(), sistrip::extrainfo::commonMode_, sistrip::controlView_, sistrip::dir_, sistrip::dqmRoot_, sistrip::EXPERT_HISTO, 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(), castor_dqm_sourceclient_file_cfg::path, sistrip::extrainfo::pedestals_, sistrip::extrainfo::rawNoise_, SiStripEnumsAndStrings::runType(), sistrip::extrainfo::scopeModeFrame_, sistrip::extrainfo::scopeModeHeaderHigh_, sistrip::extrainfo::scopeModeHeaderLow_, contentValuesCheck::ss, AlCaHLTBitMon_QueryRunRegistry::string, and runGCPTkAlMap::title.
|
friend |
Definition at line 24 of file DaqScopeModeAnalysis.h.
|
private |
Baseline level of tick mark [ADC].
Definition at line 87 of file DaqScopeModeAnalysis.h.
Referenced by base(), foundTickMark(), frameFindingThreshold(), isValid(), print(), and reset().
|
private |
Dead strips.
Definition at line 99 of file DaqScopeModeAnalysis.h.
Referenced by DaqScopeModeAnalysis(), dead(), print(), and reset().
|
static |
Threshold for FED frame finding (fraction of tick height).
Definition at line 81 of file DaqScopeModeAnalysis.h.
Referenced by frameFindingThreshold().
|
private |
Height of tick mark [ADC].
Definition at line 85 of file DaqScopeModeAnalysis.h.
Referenced by foundTickMark(), frameFindingThreshold(), height(), isValid(), print(), and reset().
|
private |
Definition at line 130 of file DaqScopeModeAnalysis.h.
|
private |
Noise values.
Definition at line 94 of file DaqScopeModeAnalysis.h.
|
private |
Max noise value.
Definition at line 122 of file DaqScopeModeAnalysis.h.
Referenced by isValid(), noiseMax(), print(), and reset().
|
private |
Mean noise value.
Definition at line 108 of file DaqScopeModeAnalysis.h.
Referenced by isValid(), noiseMean(), print(), and reset().
|
private |
Min noise value.
Definition at line 124 of file DaqScopeModeAnalysis.h.
Referenced by isValid(), noiseMin(), print(), and reset().
|
private |
Rms spread in noise.
Definition at line 110 of file DaqScopeModeAnalysis.h.
Referenced by isValid(), noiseSpread(), print(), and reset().
|
private |
Noisy strips.
Definition at line 101 of file DaqScopeModeAnalysis.h.
Referenced by DaqScopeModeAnalysis(), noisy(), print(), and reset().
|
private |
Level of tick mark top [ADC].
Definition at line 89 of file DaqScopeModeAnalysis.h.
Referenced by foundTickMark(), frameFindingThreshold(), isValid(), peak(), print(), and reset().
|
private |
Peds values.
Definition at line 92 of file DaqScopeModeAnalysis.h.
|
private |
|
private |
Mean peds value.
Definition at line 104 of file DaqScopeModeAnalysis.h.
Referenced by isValid(), pedsMean(), print(), and reset().
|
private |
|
private |
Rms spread in peds.
Definition at line 106 of file DaqScopeModeAnalysis.h.
Referenced by isValid(), pedsSpread(), print(), and reset().
|
private |
Raw noise values.
Definition at line 96 of file DaqScopeModeAnalysis.h.
|
private |
|
private |
|
private |
|
private |
Rms spread in raw noise.
Definition at line 114 of file DaqScopeModeAnalysis.h.
Referenced by isValid(), print(), rawSpread(), and reset().
|
static |
Threshold defining minimum tick mark height [ADC].
Definition at line 78 of file DaqScopeModeAnalysis.h.
Referenced by DaqScopeModeAlgorithm::analyse(), DaqScopeModeHistosUsingDb::create(), and frameFindingThreshold().