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 override |
const VFloat & | liftOff () const |
const VFloat & | linkNoise () const |
const VFloat & | measGain () const |
OptoScanAnalysis () | |
OptoScanAnalysis (const uint32_t &key) | |
void | print (std::stringstream &, uint32_t gain_setting=sistrip::invalid_) override |
void | reset () override |
void | summary (std::stringstream &) const override |
const VFloat & | threshold () const |
const VFloat & | tickHeight () const |
const VFloat & | zeroLight () const |
~OptoScanAnalysis () override | |
Public Member Functions inherited from CommissioningAnalysis | |
virtual void | addErrorCode (const std::string &error) |
CommissioningAnalysis (const std::string &my_name) | |
CommissioningAnalysis (const uint32_t &key, 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< 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 |
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 42 of file OptoScanAnalysis.cc.
|
inlineoverride |
Definition at line 23 of file OptoScanAnalysis.h.
|
inline |
|
inline |
LLD bias value for each gain setting
Definition at line 115 of file OptoScanAnalysis.h.
References bias_.
|
inline |
|
overridevirtual |
Identifies if analysis is valid or not.
Reimplemented from CommissioningAnalysis.
Definition at line 72 of file OptoScanAnalysis.cc.
References bias_, relativeConstraints::empty, gain_, CommissioningAnalysis::getErrorCodes(), and sistrip::maximum_.
Referenced by ntupleDataFormat._Object::_checkIsValid(), print(), core.AutoHandle.AutoHandle::ReallyLoad(), and summary().
|
inline |
Baseline "lift-off" values [mA]
Definition at line 119 of file OptoScanAnalysis.h.
References liftOff_.
|
inline |
Noise value at "zero light" levels [ADC]
Definition at line 118 of file OptoScanAnalysis.h.
References linkNoise_.
|
inline |
Measured gains for each setting [V/V].
Definition at line 116 of file OptoScanAnalysis.h.
References measGain_.
|
overridevirtual |
Prints analysis results.
Implements CommissioningAnalysis.
Definition at line 125 of file OptoScanAnalysis.cc.
References baseSlope_, bias_, relativeConstraints::empty, alignBH_cfg::fixed, gain(), gain_, CommissioningAnalysis::getErrorCodes(), CommissioningAnalysis::header(), isValid(), liftOff_, linkNoise_, measGain_, sistrip::mlCommissioning_, CommissioningAnalysis::myName(), contentValuesCheck::ss, threshold_, tickHeight_, and zeroLight_.
|
overridevirtual |
Resets analysis member data.
Implements CommissioningAnalysis.
Definition at line 58 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().
|
overridevirtual |
Overrides base method.
Reimplemented from CommissioningAnalysis.
Definition at line 78 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(), castor_dqm_sourceclient_file_cfg::path, SiStripEnumsAndStrings::runType(), contentValuesCheck::ss, AlCaHLTBitMon_QueryRunRegistry::string, and runGCPTkAlMap::title.
|
inline |
|
inline |
|
inline |
|
friend |
Definition at line 25 of file OptoScanAnalysis.h.
|
private |
Slope of baseline [ADC/I2C]
Definition at line 109 of file OptoScanAnalysis.h.
Referenced by baseSlope(), print(), and reset().
|
private |
|
static |
Default LLD bias setting if analysis fails.
Definition at line 76 of file OptoScanAnalysis.h.
Referenced by OptoScanAlgorithm::analyse().
|
static |
Default LLD gain setting if analysis fails.
Definition at line 73 of file OptoScanAnalysis.h.
Referenced by OptoScanAlgorithm::analyse().
|
static |
Peak-to-peak voltage for FED A/D converter [V/ADC].
Definition at line 79 of file OptoScanAnalysis.h.
Referenced by OptoScanAlgorithm::analyse().
|
private |
|
private |
Baseline "lift-off" values [mA]
Definition at line 100 of file OptoScanAnalysis.h.
|
private |
Noise value at "zero light" levels [ADC]
Definition at line 97 of file OptoScanAnalysis.h.
Referenced by linkNoise(), print(), and reset().
|
private |
Measured gains for each setting [V/V].
Definition at line 91 of file OptoScanAnalysis.h.
Referenced by measGain(), print(), and reset().
|
private |
Laser thresholds [mA]
Definition at line 103 of file OptoScanAnalysis.h.
Referenced by print(), reset(), and threshold().
|
private |
Tick mark heights [ADC]
Definition at line 106 of file OptoScanAnalysis.h.
Referenced by print(), reset(), and tickHeight().
|
private |
"Zero light" levels [ADC]
Definition at line 94 of file OptoScanAnalysis.h.
Referenced by print(), reset(), and zeroLight().