CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes | Friends
FedTimingAnalysis Class Reference

Analysis for timing run using APV tick marks. More...

#include <FedTimingAnalysis.h>

Inheritance diagram for FedTimingAnalysis:
CommissioningAnalysis

Public Member Functions

const float & base () const
 
const float & delay () const
 
const float & error () const
 
 FedTimingAnalysis (const uint32_t &key)
 
 FedTimingAnalysis ()
 
const float & height () const
 
const float & max () const
 
void max (const float &)
 
const float & peak () const
 
void print (std::stringstream &, uint32_t not_used=0) override
 
void reset () override
 
const float & time () const
 
 ~FedTimingAnalysis () override
 
- 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 VStringgetErrorCodes () const
 
virtual void header (std::stringstream &) const
 
virtual bool isValid () const
 
const std::string & myName () const
 
void setErrorCodes (const VString &errors)
 
virtual void summary (std::stringstream &) const
 
virtual ~CommissioningAnalysis ()
 

Private Attributes

float base_
 
float delay_
 
float error_
 
float height_
 
float max_
 
float optimumSamplingPoint_
 
float peak_
 
float time_
 

Friends

class FedTimingAlgorithm
 

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< VBoolVVBool
 
typedef std::vector< VFloatVVFloat
 
typedef std::vector< VIntVVInt
 

Detailed Description

Analysis for timing run using APV tick marks.

Author
M. Wingham, R.Bainbridge

Definition at line 16 of file FedTimingAnalysis.h.

Constructor & Destructor Documentation

FedTimingAnalysis::FedTimingAnalysis ( const uint32_t &  key)
FedTimingAnalysis::FedTimingAnalysis ( )
FedTimingAnalysis::~FedTimingAnalysis ( )
inlineoverride

Definition at line 24 of file FedTimingAnalysis.h.

24 {;}

Member Function Documentation

const float & FedTimingAnalysis::base ( ) const
inline

Definition at line 80 of file FedTimingAnalysis.h.

References base_.

80 { return base_; }
const float & FedTimingAnalysis::delay ( ) const
inline

Definition at line 78 of file FedTimingAnalysis.h.

References delay_.

78 { return delay_; }
const float & FedTimingAnalysis::error ( ) const
inline

Definition at line 79 of file FedTimingAnalysis.h.

References error_.

Referenced by Page1Parser.Page1Parser::check_for_whole_start_tag().

79 { return error_; }
const float & FedTimingAnalysis::height ( ) const
inline
const float & FedTimingAnalysis::max ( ) const
inline

Definition at line 77 of file FedTimingAnalysis.h.

References max_.

Referenced by max().

77 { return max_; }
void FedTimingAnalysis::max ( const float &  max)

Definition at line 66 of file FedTimingAnalysis.cc.

References delay_, max(), max_, sistrip::maximum_, optimumSamplingPoint_, and time_.

66  {
67  max_ = max;
68  if ( time_ > sistrip::maximum_ ) { return; }
69  int32_t adjustment = 25 - static_cast<int32_t>( rint( max_ + optimumSamplingPoint_ ) ) % 25;
70  max_ += adjustment;
71  delay_ = max_ - time_;
72 }
static const uint16_t maximum_
Definition: Constants.h:20
const float & max() const
const float & FedTimingAnalysis::peak ( ) const
inline

Definition at line 81 of file FedTimingAnalysis.h.

References peak_.

81 { return peak_; }
void FedTimingAnalysis::print ( std::stringstream &  ,
uint32_t  not_used = 0 
)
overridevirtual

Prints analysis results.

Implements CommissioningAnalysis.

Definition at line 53 of file FedTimingAnalysis.cc.

References base_, delay_, error_, CommissioningAnalysis::header(), height_, max_, peak_, and time_.

53  {
54  header( ss );
55  ss << " Time of tick rising edge [ns] : " << time_ << "\n"
56  << " Maximum time (sampling point) [ns] : " << max_ << "\n"
57  << " Delay required wrt max time [ns] : " << delay_ << "\n"
58  << " Error on delay [ns] : " << error_ << "\n"
59  << " Baseline [adc] : " << base_ << "\n"
60  << " Tick peak [adc] : " << peak_ << "\n"
61  << " Tick height [adc] : " << height_ << "\n";
62 }
virtual void header(std::stringstream &) const
void FedTimingAnalysis::reset ( )
overridevirtual
const float & FedTimingAnalysis::time ( ) const
inline

Definition at line 76 of file FedTimingAnalysis.h.

References time_.

76 { return time_; }

Friends And Related Function Documentation

friend class FedTimingAlgorithm
friend

Definition at line 26 of file FedTimingAnalysis.h.

Member Data Documentation

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

Delay required, relative to maximum time [ns]

Definition at line 57 of file FedTimingAnalysis.h.

Referenced by delay(), max(), print(), and reset().

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.

Referenced by max(), print(), and reset().

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().