Analysis for timing run using APV tick marks. More...
#include <FedTimingAnalysis.h>
Public Member Functions | |
const float & | base () const |
const float & | delay () const |
const float & | error () const |
FedTimingAnalysis () | |
FedTimingAnalysis (const uint32_t &key) | |
const float & | height () const |
void | max (const float &) |
const float & | max () const |
const float & | peak () const |
void | print (std::stringstream &, uint32_t not_used=0) |
void | reset () |
const float & | time () const |
virtual | ~FedTimingAnalysis () |
Private Attributes | |
float | base_ |
float | delay_ |
float | error_ |
float | height_ |
float | max_ |
float | optimumSamplingPoint_ |
float | peak_ |
float | time_ |
Friends | |
class | FedTimingAlgorithm |
Analysis for timing run using APV tick marks.
Definition at line 16 of file FedTimingAnalysis.h.
FedTimingAnalysis::FedTimingAnalysis | ( | const uint32_t & | key | ) |
Definition at line 13 of file FedTimingAnalysis.cc.
: CommissioningAnalysis(key,"FedTimingAnalysis"), time_(sistrip::invalid_), max_(sistrip::invalid_), delay_(sistrip::invalid_), error_(sistrip::invalid_), base_(sistrip::invalid_), peak_(sistrip::invalid_), height_(sistrip::invalid_), optimumSamplingPoint_(15.) {;}
FedTimingAnalysis::FedTimingAnalysis | ( | ) |
Definition at line 27 of file FedTimingAnalysis.cc.
: CommissioningAnalysis("FedTimingAnalysis"), time_(sistrip::invalid_), max_(sistrip::invalid_), delay_(sistrip::invalid_), error_(sistrip::invalid_), base_(sistrip::invalid_), peak_(sistrip::invalid_), height_(sistrip::invalid_), optimumSamplingPoint_(15.) {;}
virtual FedTimingAnalysis::~FedTimingAnalysis | ( | ) | [inline, virtual] |
Definition at line 24 of file FedTimingAnalysis.h.
{;}
const float & FedTimingAnalysis::base | ( | ) | const [inline] |
const float & FedTimingAnalysis::delay | ( | ) | const [inline] |
const float & FedTimingAnalysis::error | ( | ) | const [inline] |
const float & FedTimingAnalysis::height | ( | ) | const [inline] |
void FedTimingAnalysis::max | ( | const float & | max | ) |
Definition at line 66 of file FedTimingAnalysis.cc.
References delay_, max(), max_, sistrip::maximum_, optimumSamplingPoint_, and time_.
{ max_ = max; if ( time_ > sistrip::maximum_ ) { return; } int32_t adjustment = 25 - static_cast<int32_t>( rint( max_ + optimumSamplingPoint_ ) ) % 25; max_ += adjustment; delay_ = max_ - time_; }
const float & FedTimingAnalysis::max | ( | ) | const [inline] |
Definition at line 77 of file FedTimingAnalysis.h.
References max_.
Referenced by max().
{ return max_; }
const float & FedTimingAnalysis::peak | ( | ) | const [inline] |
void FedTimingAnalysis::print | ( | std::stringstream & | , |
uint32_t | not_used = 0 |
||
) | [virtual] |
Prints analysis results.
Implements CommissioningAnalysis.
Definition at line 53 of file FedTimingAnalysis.cc.
References base_, delay_, error_, CommissioningAnalysis::header(), height_, max_, peak_, and time_.
{ header( ss ); ss << " Time of tick rising edge [ns] : " << time_ << "\n" << " Maximum time (sampling point) [ns] : " << max_ << "\n" << " Delay required wrt max time [ns] : " << delay_ << "\n" << " Error on delay [ns] : " << error_ << "\n" << " Baseline [adc] : " << base_ << "\n" << " Tick peak [adc] : " << peak_ << "\n" << " Tick height [adc] : " << height_ << "\n"; }
void FedTimingAnalysis::reset | ( | ) | [virtual] |
Resets analysis member data.
Implements CommissioningAnalysis.
Definition at line 41 of file FedTimingAnalysis.cc.
References base_, delay_, error_, height_, sistrip::invalid_, max_, peak_, and time_.
const float & FedTimingAnalysis::time | ( | ) | const [inline] |
friend class FedTimingAlgorithm [friend] |
Definition at line 26 of file FedTimingAnalysis.h.
float FedTimingAnalysis::base_ [private] |
Level of tick mark "base" [adc]
Definition at line 63 of file FedTimingAnalysis.h.
Referenced by FedTimingAlgorithm::analyse(), base(), print(), and reset().
float FedTimingAnalysis::delay_ [private] |
float FedTimingAnalysis::error_ [private] |
Error on time delay [ns]
Definition at line 60 of file FedTimingAnalysis.h.
Referenced by FedTimingAlgorithm::analyse(), error(), print(), and reset().
float FedTimingAnalysis::height_ [private] |
Tick mark height [adc]
Definition at line 69 of file FedTimingAnalysis.h.
Referenced by FedTimingAlgorithm::analyse(), height(), print(), and reset().
float FedTimingAnalysis::max_ [private] |
Maximum time set [ns]
Definition at line 54 of file FedTimingAnalysis.h.
float FedTimingAnalysis::optimumSamplingPoint_ [private] |
Definition at line 72 of file FedTimingAnalysis.h.
Referenced by max().
float FedTimingAnalysis::peak_ [private] |
Level of tick mark "peak" [adc]
Definition at line 66 of file FedTimingAnalysis.h.
Referenced by FedTimingAlgorithm::analyse(), peak(), print(), and reset().
float FedTimingAnalysis::time_ [private] |
Time of tick mark rising edge [ns]
Definition at line 51 of file FedTimingAnalysis.h.
Referenced by FedTimingAlgorithm::analyse(), max(), print(), reset(), and time().