Histogram-based analysis for opto bias/gain scan. More...
#include <OptoScanAnalysis.h>
Public Member Functions | |
const VFloat & | baseSlope () const |
const VInt & | bias () const |
const uint16_t & | gain () const |
bool | isValid () const |
const VFloat & | liftOff () const |
const VFloat & | linkNoise () const |
const VFloat & | measGain () const |
OptoScanAnalysis (const uint32_t &key) | |
OptoScanAnalysis () | |
void | print (std::stringstream &, uint32_t gain_setting=sistrip::invalid_) |
void | reset () |
void | summary (std::stringstream &) const |
const VFloat & | threshold () const |
const VFloat & | tickHeight () const |
const VFloat & | zeroLight () const |
virtual | ~OptoScanAnalysis () |
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 |
virtual void | header (std::stringstream &) const |
const std::string & | myName () const |
void | setErrorCodes (const VString &errors) |
virtual | ~CommissioningAnalysis () |
Static Public Attributes | |
static const uint16_t | defaultBiasSetting_ = sistrip::invalid_ |
static const uint16_t | defaultGainSetting_ = sistrip::invalid_ |
static const float | fedAdcGain_ = 1.024 / 1024. |
Private Attributes | |
VFloat | baseSlope_ |
VInt | bias_ |
uint16_t | gain_ |
VFloat | liftOff_ |
VFloat | linkNoise_ |
VFloat | measGain_ |
VFloat | threshold_ |
VFloat | tickHeight_ |
VFloat | zeroLight_ |
Friends | |
class | OptoScanAlgorithm |
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 |
Histogram-based analysis for opto bias/gain scan.
Definition at line 15 of file OptoScanAnalysis.h.
OptoScanAnalysis::OptoScanAnalysis | ( | const uint32_t & | key | ) |
Definition at line 26 of file OptoScanAnalysis.cc.
OptoScanAnalysis::OptoScanAnalysis | ( | ) |
Definition at line 41 of file OptoScanAnalysis.cc.
|
inlinevirtual |
Definition at line 25 of file OptoScanAnalysis.h.
|
inline |
Baseline slope [ADC/I2C]
Definition at line 126 of file OptoScanAnalysis.h.
References baseSlope_.
Referenced by OptoScanHistosUsingDb::create().
|
inline |
LLD bias value for each gain setting
Definition at line 119 of file OptoScanAnalysis.h.
References bias_.
Referenced by OptoScanHistosUsingDb::create(), OptoScanSummaryFactory::extract(), and OptoScanHistosUsingDb::update().
|
inline |
Optimum LLD gain setting
Definition at line 118 of file OptoScanAnalysis.h.
References gain_.
Referenced by OptoScanHistosUsingDb::create(), OptoScanSummaryFactory::extract(), print(), summary(), and OptoScanHistosUsingDb::update().
|
virtual |
Identifies if analysis is valid or not.
Reimplemented from CommissioningAnalysis.
Definition at line 71 of file OptoScanAnalysis.cc.
References bias_, relativeConstraints::empty, gain_, CommissioningAnalysis::getErrorCodes(), and sistrip::maximum_.
Referenced by OptoScanHistosUsingDb::create(), OptoScanHistograms::histoAnalysis(), print(), and summary().
|
inline |
Baseline "lift-off" values [mA]
Definition at line 123 of file OptoScanAnalysis.h.
References liftOff_.
Referenced by OptoScanHistosUsingDb::create(), and OptoScanSummaryFactory::extract().
|
inline |
Noise value at "zero light" levels [ADC]
Definition at line 122 of file OptoScanAnalysis.h.
References linkNoise_.
Referenced by OptoScanHistosUsingDb::create(), and OptoScanSummaryFactory::extract().
|
inline |
Measured gains for each setting [V/V].
Definition at line 120 of file OptoScanAnalysis.h.
References measGain_.
Referenced by OptoScanHistosUsingDb::create(), and OptoScanSummaryFactory::extract().
|
virtual |
Prints analysis results.
Implements CommissioningAnalysis.
Definition at line 139 of file OptoScanAnalysis.cc.
References baseSlope_, bias_, relativeConstraints::empty, gain(), gain_, CommissioningAnalysis::getErrorCodes(), CommissioningAnalysis::header(), isValid(), liftOff_, linkNoise_, measGain_, sistrip::mlCommissioning_, CommissioningAnalysis::myName(), threshold_, tickHeight_, and zeroLight_.
|
virtual |
Resets analysis member data.
Implements CommissioningAnalysis.
Definition at line 56 of file OptoScanAnalysis.cc.
References baseSlope_, bias_, gain_, sistrip::invalid_, liftOff_, linkNoise_, measGain_, threshold_, tickHeight_, and zeroLight_.
Referenced by MatrixReader.MatrixReader::__init__(), and MatrixReader.MatrixReader::showRaw().
|
virtual |
Overrides base method.
Reimplemented from CommissioningAnalysis.
Definition at line 79 of file OptoScanAnalysis.cc.
References sistrip::extrainfo::baselineRms_, SiStripFecKey::ccuAddr(), SiStripFecKey::ccuChan(), sistrip::controlView_, sistrip::extrainfo::digital_, sistrip::dir_, sistrip::dqmRoot_, sistrip::EXPERT_HISTO, SiStripFecKey::fecCrate(), CommissioningAnalysis::fecKey(), SiStripFecKey::fecRing(), SiStripFecKey::fecSlot(), sistrip::FED_KEY, CommissioningAnalysis::fedKey(), gain(), sistrip::extrainfo::gain_, isValid(), SiStripKey::key(), sistrip::LLD_CHAN, SiStripFecKey::lldChan(), CommissioningAnalysis::myName(), cmsHarvester::path, SiStripEnumsAndStrings::runType(), AlCaHLTBitMon_QueryRunRegistry::string, and indexGen::title.
|
inline |
Laser thresholds [mA]
Definition at line 124 of file OptoScanAnalysis.h.
References threshold_.
Referenced by OptoScanHistosUsingDb::create(), and OptoScanSummaryFactory::extract().
|
inline |
Tick mark heights [ADC]
Definition at line 125 of file OptoScanAnalysis.h.
References tickHeight_.
Referenced by OptoScanHistosUsingDb::create(), and OptoScanSummaryFactory::extract().
|
inline |
"Zero light" levels [ADC]
Definition at line 121 of file OptoScanAnalysis.h.
References zeroLight_.
Referenced by OptoScanHistosUsingDb::create(), and OptoScanSummaryFactory::extract().
|
friend |
Definition at line 27 of file OptoScanAnalysis.h.
|
private |
Slope of baseline [ADC/I2C]
Definition at line 112 of file OptoScanAnalysis.h.
Referenced by OptoScanAlgorithm::analyse(), baseSlope(), print(), and reset().
|
private |
LLD bias value for each gain setting
Definition at line 91 of file OptoScanAnalysis.h.
Referenced by OptoScanAlgorithm::analyse(), bias(), isValid(), print(), and reset().
|
static |
Default LLD bias setting if analysis fails.
Definition at line 78 of file OptoScanAnalysis.h.
Referenced by OptoScanAlgorithm::analyse().
|
static |
Default LLD gain setting if analysis fails.
Definition at line 75 of file OptoScanAnalysis.h.
Referenced by OptoScanAlgorithm::analyse().
|
static |
Peak-to-peak voltage for FED A/D converter [V/ADC].
Definition at line 81 of file OptoScanAnalysis.h.
Referenced by OptoScanAlgorithm::analyse().
|
private |
Optimum LLD gain setting
Definition at line 88 of file OptoScanAnalysis.h.
Referenced by OptoScanAlgorithm::analyse(), gain(), isValid(), print(), and reset().
|
private |
Baseline "lift-off" values [mA]
Definition at line 103 of file OptoScanAnalysis.h.
Referenced by OptoScanAlgorithm::analyse(), liftOff(), print(), and reset().
|
private |
Noise value at "zero light" levels [ADC]
Definition at line 100 of file OptoScanAnalysis.h.
Referenced by OptoScanAlgorithm::analyse(), linkNoise(), print(), and reset().
|
private |
Measured gains for each setting [V/V].
Definition at line 94 of file OptoScanAnalysis.h.
Referenced by OptoScanAlgorithm::analyse(), measGain(), print(), and reset().
|
private |
Laser thresholds [mA]
Definition at line 106 of file OptoScanAnalysis.h.
Referenced by OptoScanAlgorithm::analyse(), print(), reset(), and threshold().
|
private |
Tick mark heights [ADC]
Definition at line 109 of file OptoScanAnalysis.h.
Referenced by OptoScanAlgorithm::analyse(), print(), reset(), and tickHeight().
|
private |
"Zero light" levels [ADC]
Definition at line 97 of file OptoScanAnalysis.h.
Referenced by OptoScanAlgorithm::analyse(), print(), reset(), and zeroLight().