CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes | Friends
CalibrationAnalysis Class Reference

Analysis for calibration runs. More...

#include <CalibrationAnalysis.h>

Inheritance diagram for CalibrationAnalysis:
CommissioningAnalysis

Public Member Functions

const VVFloatamplitude () const
 
const VFloatamplitudeMax () const
 
const VFloatamplitudeMean () const
 
const VFloatamplitudeMin () const
 
const VFloatamplitudeSpread () const
 
int calchan () const
 
 CalibrationAnalysis (const uint32_t &key, const bool &deconv, int calchan)
 
 CalibrationAnalysis (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 ()
 
- 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

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
 

Additional Inherited Members

- Public Types inherited from CommissioningAnalysis
typedef std::vector< float > VFloat
 
typedef std::vector< uint16_t > VInt
 
typedef std::vector< std::string > VString
 
typedef std::vector< VFloatVVFloat
 
typedef std::vector< VIntVVInt
 

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 
)

Definition at line 14 of file CalibrationAnalysis.cc.

15  : CommissioningAnalysis(key,"CalibrationAnalysis"),
46  deconv_(deconv),
48  isScan_(false)
49 {;}
std::vector< float > VFloat
static const uint16_t invalid_
Definition: Constants.h:16
list key
Definition: combine.py:13
CalibrationAnalysis::CalibrationAnalysis ( const bool &  deconv,
int  calchan 
)

Definition at line 53 of file CalibrationAnalysis.cc.

54  : CommissioningAnalysis("CalibrationAnalysis"),
85  deconv_(deconv),
87  isScan_(false)
88 {;}
std::vector< float > VFloat
static const uint16_t invalid_
Definition: Constants.h:16
virtual CalibrationAnalysis::~CalibrationAnalysis ( )
inlinevirtual

Definition at line 27 of file CalibrationAnalysis.h.

27 {;}

Member Function Documentation

const VVFloat& CalibrationAnalysis::amplitude ( ) const
inline

Definition at line 32 of file CalibrationAnalysis.h.

References amplitude_.

Referenced by CalibrationSummaryFactory::extract().

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

Definition at line 50 of file CalibrationAnalysis.h.

References max_amplitude_.

Referenced by CalibrationSummaryFactory::extract().

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

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

Definition at line 48 of file CalibrationAnalysis.h.

References spread_amplitude_.

Referenced by CalibrationSummaryFactory::extract().

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

Definition at line 73 of file CalibrationAnalysis.h.

References calchan_.

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

Definition at line 37 of file CalibrationAnalysis.h.

References chi2_.

Referenced by CalibrationSummaryFactory::extract().

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

Definition at line 70 of file CalibrationAnalysis.h.

References max_chi2_.

Referenced by CalibrationSummaryFactory::extract().

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

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

Definition at line 69 of file CalibrationAnalysis.h.

References min_chi2_.

Referenced by CalibrationSummaryFactory::extract().

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

Definition at line 68 of file CalibrationAnalysis.h.

References spread_chi2_.

Referenced by CalibrationSummaryFactory::extract().

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

Definition at line 72 of file CalibrationAnalysis.h.

References deconv_.

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

72 { 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_.

127  {
128  header( ss );
129  ss << " Monitorables for APV number : " << iapv;
130  if ( iapv == 0 ) { ss << " (first of pair)"; }
131  else if ( iapv == 1 ) { ss << " (second of pair)"; }
132  ss << std::endl;
133  ss << " Mean Amplitude of the pulse : " << mean_amplitude_[iapv] << std::endl
134  << " Mean Tail amplitude after 150ns : " << mean_tail_[iapv] << std::endl
135  << " Mean Rise time : " << mean_riseTime_[iapv] << std::endl
136  << " Mean Time constant : " << mean_timeConstant_[iapv] << std::endl
137  << " Mean Smearing parameter : " << mean_smearing_[iapv] << std::endl
138  << " Mean Chi2 of the fit : " << mean_chi2_[iapv] << std::endl;
139  if(deconvMode()) {
140  ss << "Data obtained in deconvolution mode." << std::endl;
141  } else {
142  ss << "Data obtained in peak mode." << std::endl;
143  }
144 }
virtual void header(std::stringstream &) const
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_.

Referenced by MatrixReader.MatrixReader::__init__(), and MatrixReader.MatrixReader::showRaw().

92  {
123 }
std::vector< float > VFloat
static const uint16_t invalid_
Definition: Constants.h:16
std::vector< VFloat > VVFloat
const VVFloat& CalibrationAnalysis::riseTime ( ) const
inline

Definition at line 34 of file CalibrationAnalysis.h.

References riseTime_.

Referenced by CalibrationSummaryFactory::extract().

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

Definition at line 58 of file CalibrationAnalysis.h.

References max_riseTime_.

Referenced by CalibrationSummaryFactory::extract().

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

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

Definition at line 56 of file CalibrationAnalysis.h.

References spread_riseTime_.

Referenced by CalibrationSummaryFactory::extract().

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

Definition at line 36 of file CalibrationAnalysis.h.

References smearing_.

Referenced by CalibrationSummaryFactory::extract().

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

Definition at line 66 of file CalibrationAnalysis.h.

References max_smearing_.

Referenced by CalibrationSummaryFactory::extract().

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

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

Definition at line 64 of file CalibrationAnalysis.h.

References spread_smearing_.

Referenced by CalibrationSummaryFactory::extract().

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

Definition at line 33 of file CalibrationAnalysis.h.

References tail_.

Referenced by CalibrationSummaryFactory::extract().

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

Definition at line 54 of file CalibrationAnalysis.h.

References max_tail_.

Referenced by CalibrationSummaryFactory::extract().

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

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

Definition at line 53 of file CalibrationAnalysis.h.

References min_tail_.

Referenced by CalibrationSummaryFactory::extract().

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

Definition at line 52 of file CalibrationAnalysis.h.

References spread_tail_.

Referenced by CalibrationSummaryFactory::extract().

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

Definition at line 35 of file CalibrationAnalysis.h.

References timeConstant_.

Referenced by CalibrationSummaryFactory::extract().

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

Definition at line 62 of file CalibrationAnalysis.h.

References max_timeConstant_.

Referenced by CalibrationSummaryFactory::extract().

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

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

Definition at line 60 of file CalibrationAnalysis.h.

References spread_timeConstant_.

Referenced by CalibrationSummaryFactory::extract().

60 { return spread_timeConstant_; }

Friends And Related Function Documentation

friend class CalibrationAlgorithm
friend

Definition at line 29 of file CalibrationAnalysis.h.

Member Data Documentation

VVFloat CalibrationAnalysis::amplitude_
private

Parameters extracted from the fit of pulse shape

Definition at line 82 of file CalibrationAnalysis.h.

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

int CalibrationAnalysis::calchan_
private

calchan value used in that dataset

Definition at line 96 of file CalibrationAnalysis.h.

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

VVFloat CalibrationAnalysis::chi2_
private

Definition at line 82 of file CalibrationAnalysis.h.

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

bool CalibrationAnalysis::deconv_
private

fit mode: deconv or not ?

Definition at line 93 of file CalibrationAnalysis.h.

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

bool CalibrationAnalysis::isScan_
private

internal mode: cal scan or standard run

Definition at line 99 of file CalibrationAnalysis.h.

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

VFloat CalibrationAnalysis::max_amplitude_
private

Definition at line 88 of file CalibrationAnalysis.h.

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

VFloat CalibrationAnalysis::max_chi2_
private

Definition at line 88 of file CalibrationAnalysis.h.

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

VFloat CalibrationAnalysis::max_riseTime_
private

Definition at line 88 of file CalibrationAnalysis.h.

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

VFloat CalibrationAnalysis::max_smearing_
private

Definition at line 88 of file CalibrationAnalysis.h.

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

VFloat CalibrationAnalysis::max_tail_
private

Definition at line 88 of file CalibrationAnalysis.h.

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

VFloat CalibrationAnalysis::max_timeConstant_
private

Definition at line 88 of file CalibrationAnalysis.h.

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

VFloat CalibrationAnalysis::mean_amplitude_
private

Definition at line 84 of file CalibrationAnalysis.h.

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

VFloat CalibrationAnalysis::mean_chi2_
private

Definition at line 84 of file CalibrationAnalysis.h.

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

VFloat CalibrationAnalysis::mean_riseTime_
private

Definition at line 84 of file CalibrationAnalysis.h.

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

VFloat CalibrationAnalysis::mean_smearing_
private

Definition at line 84 of file CalibrationAnalysis.h.

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

VFloat CalibrationAnalysis::mean_tail_
private

Definition at line 84 of file CalibrationAnalysis.h.

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

VFloat CalibrationAnalysis::mean_timeConstant_
private
VFloat CalibrationAnalysis::min_amplitude_
private

Definition at line 86 of file CalibrationAnalysis.h.

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

VFloat CalibrationAnalysis::min_chi2_
private

Definition at line 86 of file CalibrationAnalysis.h.

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

VFloat CalibrationAnalysis::min_riseTime_
private

Definition at line 86 of file CalibrationAnalysis.h.

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

VFloat CalibrationAnalysis::min_smearing_
private

Definition at line 86 of file CalibrationAnalysis.h.

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

VFloat CalibrationAnalysis::min_tail_
private

Definition at line 86 of file CalibrationAnalysis.h.

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

VFloat CalibrationAnalysis::min_timeConstant_
private

Definition at line 86 of file CalibrationAnalysis.h.

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

VVFloat CalibrationAnalysis::riseTime_
private

Definition at line 82 of file CalibrationAnalysis.h.

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

VVFloat CalibrationAnalysis::smearing_
private

Definition at line 82 of file CalibrationAnalysis.h.

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

VFloat CalibrationAnalysis::spread_amplitude_
private

Definition at line 90 of file CalibrationAnalysis.h.

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

VFloat CalibrationAnalysis::spread_chi2_
private

Definition at line 90 of file CalibrationAnalysis.h.

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

VFloat CalibrationAnalysis::spread_riseTime_
private

Definition at line 90 of file CalibrationAnalysis.h.

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

VFloat CalibrationAnalysis::spread_smearing_
private

Definition at line 90 of file CalibrationAnalysis.h.

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

VFloat CalibrationAnalysis::spread_tail_
private

Definition at line 90 of file CalibrationAnalysis.h.

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

VFloat CalibrationAnalysis::spread_timeConstant_
private

Definition at line 90 of file CalibrationAnalysis.h.

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

VVFloat CalibrationAnalysis::tail_
private

Definition at line 82 of file CalibrationAnalysis.h.

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

VVFloat CalibrationAnalysis::timeConstant_
private

Definition at line 82 of file CalibrationAnalysis.h.

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