CMS 3D CMS Logo

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

List of all members.

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

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 ( )
virtual FedTimingAnalysis::~FedTimingAnalysis ( ) [inline, virtual]

Definition at line 24 of file FedTimingAnalysis.h.

{;}

Member Function Documentation

const float & FedTimingAnalysis::base ( ) const [inline]

Definition at line 80 of file FedTimingAnalysis.h.

References base_.

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

Definition at line 78 of file FedTimingAnalysis.h.

References delay_.

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

Definition at line 79 of file FedTimingAnalysis.h.

References error_.

{ return error_; }
const float & FedTimingAnalysis::height ( ) const [inline]

Definition at line 82 of file FedTimingAnalysis.h.

References height_.

{ return height_; }
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]

Definition at line 81 of file FedTimingAnalysis.h.

References peak_.

{ return peak_; }
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]
const float & FedTimingAnalysis::time ( ) const [inline]

Definition at line 76 of file FedTimingAnalysis.h.

References time_.

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

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