CMS 3D CMS Logo

Public Member Functions | Private Attributes | Friends

CalibrationAnalysis Class Reference

Analysis for calibration runs. More...

#include <CalibrationAnalysis.h>

Inheritance diagram for CalibrationAnalysis:
CommissioningAnalysis

List of all members.

Public Member Functions

const VVFloatamplitude () const
const VFloatamplitudeMax () const
const VFloatamplitudeMean () const
const VFloatamplitudeMin () const
const VFloatamplitudeSpread () const
int calchan () const
 CalibrationAnalysis (const bool &deconv, int calchan)
 CalibrationAnalysis (const uint32_t &key, const bool &deconv, int calchan)
const VVFloatchi2 () const
const VFloatchi2Max () const
const VFloatchi2Mean () const
const VFloatchi2Min () const
const VFloatchi2Spread () const
bool deconvMode () const
void print (std::stringstream &, uint32_t not_used=0)
void reset ()
const VVFloatriseTime () const
const VFloatriseTimeMax () const
const VFloatriseTimeMean () const
const VFloatriseTimeMin () const
const VFloatriseTimeSpread () const
const VVFloatsmearing () const
const VFloatsmearingMax () const
const VFloatsmearingMean () const
const VFloatsmearingMin () const
const VFloatsmearingSpread () const
const VVFloattail () const
const VFloattailMax () const
const VFloattailMean () const
const VFloattailMin () const
const VFloattailSpread () const
const VVFloattimeConstant () const
const VFloattimeConstantMax () const
const VFloattimeConstantMean () const
const VFloattimeConstantMin () const
const VFloattimeConstantSpread () const
virtual ~CalibrationAnalysis ()

Private Attributes

VVFloat amplitude_
int calchan_
VVFloat chi2_
bool deconv_
bool isScan_
VFloat max_amplitude_
VFloat max_chi2_
VFloat max_riseTime_
VFloat max_smearing_
VFloat max_tail_
VFloat max_timeConstant_
VFloat mean_amplitude_
VFloat mean_chi2_
VFloat mean_riseTime_
VFloat mean_smearing_
VFloat mean_tail_
VFloat mean_timeConstant_
VFloat min_amplitude_
VFloat min_chi2_
VFloat min_riseTime_
VFloat min_smearing_
VFloat min_tail_
VFloat min_timeConstant_
VVFloat riseTime_
VVFloat smearing_
VFloat spread_amplitude_
VFloat spread_chi2_
VFloat spread_riseTime_
VFloat spread_smearing_
VFloat spread_tail_
VFloat spread_timeConstant_
VVFloat tail_
VVFloat timeConstant_

Friends

class CalibrationAlgorithm

Detailed Description

Analysis for calibration runs.

Author:
C. Delaere

Definition at line 16 of file CalibrationAnalysis.h.


Constructor & Destructor Documentation

CalibrationAnalysis::CalibrationAnalysis ( const uint32_t &  key,
const bool &  deconv,
int  calchan 
)
CalibrationAnalysis::CalibrationAnalysis ( const bool &  deconv,
int  calchan 
)
virtual CalibrationAnalysis::~CalibrationAnalysis ( ) [inline, virtual]

Definition at line 27 of file CalibrationAnalysis.h.

{;}

Member Function Documentation

const VVFloat& CalibrationAnalysis::amplitude ( ) const [inline]

Definition at line 32 of file CalibrationAnalysis.h.

References amplitude_.

Referenced by CalibrationSummaryFactory::extract().

{ return amplitude_; }
const VFloat& CalibrationAnalysis::amplitudeMax ( ) const [inline]

Definition at line 50 of file CalibrationAnalysis.h.

References max_amplitude_.

Referenced by CalibrationSummaryFactory::extract().

{ return max_amplitude_; }
const VFloat& CalibrationAnalysis::amplitudeMean ( ) const [inline]
const VFloat& CalibrationAnalysis::amplitudeMin ( ) const [inline]

Definition at line 49 of file CalibrationAnalysis.h.

References min_amplitude_.

Referenced by CalibrationSummaryFactory::extract().

{ return min_amplitude_; }
const VFloat& CalibrationAnalysis::amplitudeSpread ( ) const [inline]

Definition at line 48 of file CalibrationAnalysis.h.

References spread_amplitude_.

Referenced by CalibrationSummaryFactory::extract().

{ return spread_amplitude_; }
int CalibrationAnalysis::calchan ( ) const [inline]

Definition at line 73 of file CalibrationAnalysis.h.

References calchan_.

{ return calchan_; }
const VVFloat& CalibrationAnalysis::chi2 ( void  ) const [inline]

Definition at line 37 of file CalibrationAnalysis.h.

References chi2_.

Referenced by CalibrationSummaryFactory::extract().

{ return chi2_; }
const VFloat& CalibrationAnalysis::chi2Max ( ) const [inline]

Definition at line 70 of file CalibrationAnalysis.h.

References max_chi2_.

Referenced by CalibrationSummaryFactory::extract().

{ return max_chi2_; }
const VFloat& CalibrationAnalysis::chi2Mean ( ) const [inline]

Definition at line 45 of file CalibrationAnalysis.h.

References mean_chi2_.

Referenced by CalibrationHistosUsingDb::create(), and CalibrationSummaryFactory::extract().

{ return mean_chi2_; }
const VFloat& CalibrationAnalysis::chi2Min ( ) const [inline]

Definition at line 69 of file CalibrationAnalysis.h.

References min_chi2_.

Referenced by CalibrationSummaryFactory::extract().

{ return min_chi2_; }
const VFloat& CalibrationAnalysis::chi2Spread ( ) const [inline]

Definition at line 68 of file CalibrationAnalysis.h.

References spread_chi2_.

Referenced by CalibrationSummaryFactory::extract().

{ return spread_chi2_; }
bool CalibrationAnalysis::deconvMode ( ) const [inline]

Definition at line 72 of file CalibrationAnalysis.h.

References deconv_.

Referenced by CalibrationHistosUsingDb::create(), and print().

{ return deconv_; }
void CalibrationAnalysis::print ( std::stringstream &  ,
uint32_t  not_used = 0 
) [virtual]

Prints analysis results.

Implements CommissioningAnalysis.

Definition at line 127 of file CalibrationAnalysis.cc.

References deconvMode(), CommissioningAnalysis::header(), mean_amplitude_, mean_chi2_, mean_riseTime_, mean_smearing_, mean_tail_, and mean_timeConstant_.

                                                                    { 
  header( ss );
  ss << " Monitorables for APV number     : " << iapv;
  if ( iapv == 0 ) { ss << " (first of pair)"; }
  else if ( iapv == 1 ) { ss << " (second of pair)"; }
  ss << std::endl;
  ss << " Mean Amplitude of the pulse : " << mean_amplitude_[iapv] << std::endl
     << " Mean Tail amplitude after 150ns : " << mean_tail_[iapv] << std::endl
     << " Mean Rise time : " << mean_riseTime_[iapv] << std::endl
     << " Mean Time constant : " << mean_timeConstant_[iapv] << std::endl
     << " Mean Smearing parameter : " << mean_smearing_[iapv] << std::endl
     << " Mean Chi2 of the fit : " << mean_chi2_[iapv] << std::endl;
  if(deconvMode()) {
    ss << "Data obtained in deconvolution mode." << std::endl;
  } else {
    ss << "Data obtained in peak mode." << std::endl;
  }
}
void CalibrationAnalysis::reset ( ) [virtual]

Resets analysis member data.

Implements CommissioningAnalysis.

Definition at line 92 of file CalibrationAnalysis.cc.

References amplitude_, chi2_, sistrip::invalid_, max_amplitude_, max_chi2_, max_riseTime_, max_smearing_, max_tail_, max_timeConstant_, mean_amplitude_, mean_chi2_, mean_riseTime_, mean_smearing_, mean_tail_, mean_timeConstant_, min_amplitude_, min_chi2_, min_riseTime_, min_smearing_, min_tail_, min_timeConstant_, riseTime_, smearing_, spread_amplitude_, spread_chi2_, spread_riseTime_, spread_smearing_, spread_tail_, spread_timeConstant_, tail_, and timeConstant_.

const VVFloat& CalibrationAnalysis::riseTime ( ) const [inline]

Definition at line 34 of file CalibrationAnalysis.h.

References riseTime_.

Referenced by CalibrationSummaryFactory::extract().

{ return riseTime_; }
const VFloat& CalibrationAnalysis::riseTimeMax ( ) const [inline]

Definition at line 58 of file CalibrationAnalysis.h.

References max_riseTime_.

Referenced by CalibrationSummaryFactory::extract().

{ return max_riseTime_; }
const VFloat& CalibrationAnalysis::riseTimeMean ( ) const [inline]
const VFloat& CalibrationAnalysis::riseTimeMin ( ) const [inline]

Definition at line 57 of file CalibrationAnalysis.h.

References min_riseTime_.

Referenced by CalibrationSummaryFactory::extract().

{ return min_riseTime_; }
const VFloat& CalibrationAnalysis::riseTimeSpread ( ) const [inline]

Definition at line 56 of file CalibrationAnalysis.h.

References spread_riseTime_.

Referenced by CalibrationSummaryFactory::extract().

{ return spread_riseTime_; }
const VVFloat& CalibrationAnalysis::smearing ( ) const [inline]

Definition at line 36 of file CalibrationAnalysis.h.

References smearing_.

Referenced by CalibrationSummaryFactory::extract().

{ return smearing_; }
const VFloat& CalibrationAnalysis::smearingMax ( ) const [inline]

Definition at line 66 of file CalibrationAnalysis.h.

References max_smearing_.

Referenced by CalibrationSummaryFactory::extract().

{ return max_smearing_; }
const VFloat& CalibrationAnalysis::smearingMean ( ) const [inline]
const VFloat& CalibrationAnalysis::smearingMin ( ) const [inline]

Definition at line 65 of file CalibrationAnalysis.h.

References min_smearing_.

Referenced by CalibrationSummaryFactory::extract().

{ return min_smearing_; }
const VFloat& CalibrationAnalysis::smearingSpread ( ) const [inline]

Definition at line 64 of file CalibrationAnalysis.h.

References spread_smearing_.

Referenced by CalibrationSummaryFactory::extract().

{ return spread_smearing_; }
const VVFloat& CalibrationAnalysis::tail ( ) const [inline]

Definition at line 33 of file CalibrationAnalysis.h.

References tail_.

Referenced by CalibrationSummaryFactory::extract().

{ return tail_; }
const VFloat& CalibrationAnalysis::tailMax ( ) const [inline]

Definition at line 54 of file CalibrationAnalysis.h.

References max_tail_.

Referenced by CalibrationSummaryFactory::extract().

{ return max_tail_; }
const VFloat& CalibrationAnalysis::tailMean ( ) const [inline]

Definition at line 41 of file CalibrationAnalysis.h.

References mean_tail_.

Referenced by CalibrationHistosUsingDb::create(), and CalibrationSummaryFactory::extract().

{ return mean_tail_; }
const VFloat& CalibrationAnalysis::tailMin ( ) const [inline]

Definition at line 53 of file CalibrationAnalysis.h.

References min_tail_.

Referenced by CalibrationSummaryFactory::extract().

{ return min_tail_; }
const VFloat& CalibrationAnalysis::tailSpread ( ) const [inline]

Definition at line 52 of file CalibrationAnalysis.h.

References spread_tail_.

Referenced by CalibrationSummaryFactory::extract().

{ return spread_tail_; }
const VVFloat& CalibrationAnalysis::timeConstant ( ) const [inline]

Definition at line 35 of file CalibrationAnalysis.h.

References timeConstant_.

Referenced by CalibrationSummaryFactory::extract().

{ return timeConstant_; }
const VFloat& CalibrationAnalysis::timeConstantMax ( ) const [inline]

Definition at line 62 of file CalibrationAnalysis.h.

References max_timeConstant_.

Referenced by CalibrationSummaryFactory::extract().

{ return max_timeConstant_; }
const VFloat& CalibrationAnalysis::timeConstantMean ( ) const [inline]
const VFloat& CalibrationAnalysis::timeConstantMin ( ) const [inline]

Definition at line 61 of file CalibrationAnalysis.h.

References min_timeConstant_.

Referenced by CalibrationSummaryFactory::extract().

{ return min_timeConstant_; }
const VFloat& CalibrationAnalysis::timeConstantSpread ( ) const [inline]

Definition at line 60 of file CalibrationAnalysis.h.

References spread_timeConstant_.

Referenced by CalibrationSummaryFactory::extract().


Friends And Related Function Documentation

friend class CalibrationAlgorithm [friend]

Definition at line 29 of file CalibrationAnalysis.h.


Member Data Documentation

Parameters extracted from the fit of pulse shape

Definition at line 82 of file CalibrationAnalysis.h.

Referenced by amplitude(), CalibrationAlgorithm::analyse(), and reset().

calchan value used in that dataset

Definition at line 96 of file CalibrationAnalysis.h.

Referenced by CalibrationAlgorithm::analyse(), and calchan().

Definition at line 82 of file CalibrationAnalysis.h.

Referenced by CalibrationAlgorithm::analyse(), chi2(), and reset().

fit mode: deconv or not ?

Definition at line 93 of file CalibrationAnalysis.h.

Referenced by deconvMode(), and CalibrationAlgorithm::fitPulse().

internal mode: cal scan or standard run

Definition at line 99 of file CalibrationAnalysis.h.

Referenced by CalibrationAlgorithm::analyse(), CalibrationAlgorithm::correctDistribution(), and CalibrationAlgorithm::extract().

Definition at line 88 of file CalibrationAnalysis.h.

Referenced by amplitudeMax(), CalibrationAlgorithm::analyse(), and reset().

Definition at line 88 of file CalibrationAnalysis.h.

Referenced by CalibrationAlgorithm::analyse(), chi2Max(), and reset().

Definition at line 88 of file CalibrationAnalysis.h.

Referenced by CalibrationAlgorithm::analyse(), reset(), and riseTimeMax().

Definition at line 88 of file CalibrationAnalysis.h.

Referenced by CalibrationAlgorithm::analyse(), reset(), and smearingMax().

Definition at line 88 of file CalibrationAnalysis.h.

Referenced by CalibrationAlgorithm::analyse(), reset(), and tailMax().

Definition at line 88 of file CalibrationAnalysis.h.

Referenced by CalibrationAlgorithm::analyse(), reset(), and timeConstantMax().

Definition at line 84 of file CalibrationAnalysis.h.

Referenced by amplitudeMean(), CalibrationAlgorithm::analyse(), print(), and reset().

Definition at line 84 of file CalibrationAnalysis.h.

Referenced by CalibrationAlgorithm::analyse(), chi2Mean(), print(), and reset().

Definition at line 84 of file CalibrationAnalysis.h.

Referenced by CalibrationAlgorithm::analyse(), print(), reset(), and riseTimeMean().

Definition at line 84 of file CalibrationAnalysis.h.

Referenced by CalibrationAlgorithm::analyse(), print(), reset(), and smearingMean().

Definition at line 84 of file CalibrationAnalysis.h.

Referenced by CalibrationAlgorithm::analyse(), print(), reset(), and tailMean().

Definition at line 86 of file CalibrationAnalysis.h.

Referenced by amplitudeMin(), CalibrationAlgorithm::analyse(), and reset().

Definition at line 86 of file CalibrationAnalysis.h.

Referenced by CalibrationAlgorithm::analyse(), chi2Min(), and reset().

Definition at line 86 of file CalibrationAnalysis.h.

Referenced by CalibrationAlgorithm::analyse(), reset(), and riseTimeMin().

Definition at line 86 of file CalibrationAnalysis.h.

Referenced by CalibrationAlgorithm::analyse(), reset(), and smearingMin().

Definition at line 86 of file CalibrationAnalysis.h.

Referenced by CalibrationAlgorithm::analyse(), reset(), and tailMin().

Definition at line 86 of file CalibrationAnalysis.h.

Referenced by CalibrationAlgorithm::analyse(), reset(), and timeConstantMin().

Definition at line 82 of file CalibrationAnalysis.h.

Referenced by CalibrationAlgorithm::analyse(), reset(), and riseTime().

Definition at line 82 of file CalibrationAnalysis.h.

Referenced by CalibrationAlgorithm::analyse(), reset(), and smearing().

Definition at line 90 of file CalibrationAnalysis.h.

Referenced by amplitudeSpread(), CalibrationAlgorithm::analyse(), and reset().

Definition at line 90 of file CalibrationAnalysis.h.

Referenced by CalibrationAlgorithm::analyse(), chi2Spread(), and reset().

Definition at line 90 of file CalibrationAnalysis.h.

Referenced by CalibrationAlgorithm::analyse(), reset(), and riseTimeSpread().

Definition at line 90 of file CalibrationAnalysis.h.

Referenced by CalibrationAlgorithm::analyse(), reset(), and smearingSpread().

Definition at line 90 of file CalibrationAnalysis.h.

Referenced by CalibrationAlgorithm::analyse(), reset(), and tailSpread().

Definition at line 90 of file CalibrationAnalysis.h.

Referenced by CalibrationAlgorithm::analyse(), reset(), and timeConstantSpread().

Definition at line 82 of file CalibrationAnalysis.h.

Referenced by CalibrationAlgorithm::analyse(), reset(), and tail().

Definition at line 82 of file CalibrationAnalysis.h.

Referenced by CalibrationAlgorithm::analyse(), reset(), and timeConstant().