Analysis for latency run. More...
#include <SamplingAnalysis.h>
Public Member Functions | |
float | correctMeasurement (float mean, float SoNcut=3.) const |
const float & | error () const |
float | getSoNcut () const |
sistrip::Granularity | granularity () const |
float | limit (float SoNcut) const |
const float & | maximum () const |
void | print (std::stringstream &, uint32_t not_used=0) |
void | reset () |
SamplingAnalysis () | |
SamplingAnalysis (const uint32_t &key) | |
void | setSoNcut (const float sOnCut) |
virtual | ~SamplingAnalysis () |
Private Attributes | |
float | error_ |
sistrip::Granularity | granularity_ |
float | max_ |
sistrip::RunType | runType_ |
float | sOnCut_ |
Friends | |
class | SamplingAlgorithm |
Analysis for latency run.
Definition at line 17 of file SamplingAnalysis.h.
SamplingAnalysis::SamplingAnalysis | ( | const uint32_t & | key | ) |
Definition at line 14 of file SamplingAnalysis.cc.
: CommissioningAnalysis(key,"SamplingAnalysis"), sOnCut_(3), max_(sistrip::invalid_), error_(sistrip::invalid_) {;}
SamplingAnalysis::SamplingAnalysis | ( | ) |
Definition at line 23 of file SamplingAnalysis.cc.
: CommissioningAnalysis("SamplingAnalysis"), sOnCut_(3), max_(sistrip::invalid_), error_(sistrip::invalid_) {;}
virtual SamplingAnalysis::~SamplingAnalysis | ( | ) | [inline, virtual] |
Definition at line 25 of file SamplingAnalysis.h.
{;}
float SamplingAnalysis::correctMeasurement | ( | float | mean, |
float | SoNcut = 3. |
||
) | const |
Definition at line 55 of file SamplingAnalysis.cc.
References limit(), and funct::pow().
Referenced by SamplingAlgorithm::correctProfile().
const float& SamplingAnalysis::error | ( | ) | const [inline] |
Definition at line 31 of file SamplingAnalysis.h.
References error_.
Referenced by FineDelayHistosUsingDb::create(), and SamplingSummaryFactory::extract().
{ return error_; }
float SamplingAnalysis::getSoNcut | ( | ) | const [inline] |
sistrip::Granularity SamplingAnalysis::granularity | ( | ) | const [inline] |
Definition at line 45 of file SamplingAnalysis.h.
References granularity_.
Referenced by print().
{ return granularity_; }
float SamplingAnalysis::limit | ( | float | SoNcut | ) | const |
Definition at line 48 of file SamplingAnalysis.cc.
References funct::pow().
Referenced by correctMeasurement(), and SamplingAlgorithm::correctProfile().
{ return 3.814567e+00+8.336601e+00*SoNcut-1.511334e-01*pow(SoNcut,2); }
const float& SamplingAnalysis::maximum | ( | ) | const [inline] |
Definition at line 29 of file SamplingAnalysis.h.
References max_.
Referenced by FineDelayHistosUsingDb::create(), LatencyHistosUsingDb::create(), SamplingSummaryFactory::extract(), and LatencyHistosUsingDb::update().
{ return max_; }
void SamplingAnalysis::print | ( | std::stringstream & | , |
uint32_t | not_used = 0 |
||
) | [virtual] |
Prints analysis results.
Implements CommissioningAnalysis.
Definition at line 39 of file SamplingAnalysis.cc.
References error_, granularity(), granularity_, CommissioningAnalysis::header(), and max_.
{ header( ss ); ss << " Granularity: " << SiStripEnumsAndStrings::granularity(granularity_) << std::endl; ss << " Delay corresponding to the maximum of the pulse : " << max_ << std::endl << " Error on the position (from the fit) : " << error_ << std::endl; }
void SamplingAnalysis::reset | ( | ) | [virtual] |
Resets analysis member data.
Implements CommissioningAnalysis.
Definition at line 32 of file SamplingAnalysis.cc.
References error_, sistrip::invalid_, and max_.
{ error_ = sistrip::invalid_; max_ = sistrip::invalid_; }
void SamplingAnalysis::setSoNcut | ( | const float | sOnCut | ) | [inline] |
Definition at line 33 of file SamplingAnalysis.h.
References sOnCut_.
Referenced by SamplingHistograms::histoAnalysis().
{ sOnCut_ = sOnCut; }
friend class SamplingAlgorithm [friend] |
Definition at line 27 of file SamplingAnalysis.h.
float SamplingAnalysis::error_ [private] |
Error on the position ( from the fit)
Definition at line 56 of file SamplingAnalysis.h.
Referenced by SamplingAlgorithm::analyse(), error(), print(), and reset().
granularity
Definition at line 62 of file SamplingAnalysis.h.
Referenced by SamplingAlgorithm::extract(), granularity(), and print().
float SamplingAnalysis::max_ [private] |
Delay corresponding to the maximum of the pulse shape
Definition at line 53 of file SamplingAnalysis.h.
Referenced by SamplingAlgorithm::analyse(), maximum(), print(), and reset().
sistrip::RunType SamplingAnalysis::runType_ [private] |
reconstruction mode
Definition at line 59 of file SamplingAnalysis.h.
Referenced by SamplingAlgorithm::analyse(), and SamplingAlgorithm::extract().
float SamplingAnalysis::sOnCut_ [private] |
s/n cut to be used
Definition at line 50 of file SamplingAnalysis.h.
Referenced by SamplingAlgorithm::analyse(), getSoNcut(), and setSoNcut().