CMS 3D CMS Logo

Public Member Functions | Private Attributes | Friends

SamplingAnalysis Class Reference

Analysis for latency run. More...

#include <SamplingAnalysis.h>

Inheritance diagram for SamplingAnalysis:
CommissioningAnalysis

List of all members.

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

Detailed Description

Analysis for latency run.

Author:
C. Delaere

Definition at line 17 of file SamplingAnalysis.h.


Constructor & Destructor Documentation

SamplingAnalysis::SamplingAnalysis ( const uint32_t &  key)

Definition at line 14 of file SamplingAnalysis.cc.

SamplingAnalysis::SamplingAnalysis ( )

Definition at line 23 of file SamplingAnalysis.cc.

virtual SamplingAnalysis::~SamplingAnalysis ( ) [inline, virtual]

Definition at line 25 of file SamplingAnalysis.h.

{;}

Member Function Documentation

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

{
  if(mean>limit(SoNcut))
    return -8.124872e+00+9.860108e-01*mean-3.618158e-03*pow(mean,2)+2.037263e-05*pow(mean,3);
  else return 0.;
}
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]

Definition at line 35 of file SamplingAnalysis.h.

References sOnCut_.

{ return sOnCut_; }
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]
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_.

void SamplingAnalysis::setSoNcut ( const float  sOnCut) [inline]

Definition at line 33 of file SamplingAnalysis.h.

References sOnCut_.

Referenced by SamplingHistograms::histoAnalysis().

{ sOnCut_ = sOnCut; }

Friends And Related Function Documentation

friend class SamplingAlgorithm [friend]

Definition at line 27 of file SamplingAnalysis.h.


Member Data Documentation

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

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