CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
pv::biases Struct Reference

Structure biases Contains characterization of a single run PV bias plot. More...

#include <PreparePVTrends.h>

Public Member Functions

 biases (double mean, double rms, double wmean, double wrms, double min, double max, double chi2, int ndf, double ks)
 
 biases ()
 
double getChi2 ()
 
double getChi2Prob ()
 
double getKSScore ()
 
double getMax ()
 
double getMean ()
 
double getMin ()
 
double getNDF ()
 
double getNormChi2 ()
 
double getRMS ()
 
double getWeightedMean ()
 
double getWeightedRMS ()
 
void init ()
 initialising all members one by one More...
 

Private Attributes

double m_chi2
 
double m_ks
 
double m_max
 
double m_mean
 
double m_min
 
int m_ndf
 
double m_rms
 
double m_w_mean
 
double m_w_rms
 

Detailed Description

Structure biases Contains characterization of a single run PV bias plot.

Parameters
m_meanmean value of the profile points
m_rmsRMS value of the profle points
m_w_meanmean weighted on the errors
m_w_rmsRMS weighted on the errors
m_minminimum of the profile
m_maxmaximum of the profile
m_chi2chi2 of a liner fit
m_ndfnumber of the dof of the linear fit
m_ksKolmogorov-Smirnov score of comparison with flat line

Definition at line 97 of file PreparePVTrends.h.

Constructor & Destructor Documentation

◆ biases() [1/2]

pv::biases::biases ( double  mean,
double  rms,
double  wmean,
double  wrms,
double  min,
double  max,
double  chi2,
int  ndf,
double  ks 
)
inline

◆ biases() [2/2]

pv::biases::biases ( )
inline

Definition at line 112 of file PreparePVTrends.h.

References init.

112 { init(); }
void init()
initialising all members one by one

Member Function Documentation

◆ getChi2()

double pv::biases::getChi2 ( )
inline

Definition at line 136 of file PreparePVTrends.h.

136 { return m_chi2; }

◆ getChi2Prob()

double pv::biases::getChi2Prob ( )
inline

Definition at line 139 of file PreparePVTrends.h.

139 { return TMath::Prob(m_chi2, m_ndf); }

◆ getKSScore()

double pv::biases::getKSScore ( )
inline

Definition at line 140 of file PreparePVTrends.h.

140 { return m_ks; }

◆ getMax()

double pv::biases::getMax ( )
inline

Definition at line 135 of file PreparePVTrends.h.

135 { return m_max; }

◆ getMean()

double pv::biases::getMean ( )
inline

Definition at line 130 of file PreparePVTrends.h.

130 { return m_mean; }

◆ getMin()

double pv::biases::getMin ( )
inline

Definition at line 134 of file PreparePVTrends.h.

134 { return m_min; }

◆ getNDF()

double pv::biases::getNDF ( )
inline

Definition at line 137 of file PreparePVTrends.h.

137 { return m_ndf; }

◆ getNormChi2()

double pv::biases::getNormChi2 ( )
inline

Definition at line 138 of file PreparePVTrends.h.

138 { return double(m_chi2) / double(m_ndf); }

◆ getRMS()

double pv::biases::getRMS ( )
inline

Definition at line 132 of file PreparePVTrends.h.

132 { return m_rms; }

◆ getWeightedMean()

double pv::biases::getWeightedMean ( )
inline

Definition at line 131 of file PreparePVTrends.h.

131 { return m_w_mean; }

◆ getWeightedRMS()

double pv::biases::getWeightedRMS ( )
inline

Definition at line 133 of file PreparePVTrends.h.

133 { return m_w_rms; }

◆ init()

pv::biases::init ( )
inline

initialising all members one by one

Definition at line 118 of file PreparePVTrends.h.

118  {
119  m_mean = 0;
120  m_rms = 0.;
121  m_min = +999.;
122  m_max = -999.;
123  m_w_mean = 0.;
124  m_w_rms = 0.;
125  m_chi2 = -1.;
126  m_ndf = 0.;
127  m_ks = 9999.;
128  }

Member Data Documentation

◆ m_chi2

double pv::biases::m_chi2
private

Definition at line 149 of file PreparePVTrends.h.

◆ m_ks

double pv::biases::m_ks
private

Definition at line 151 of file PreparePVTrends.h.

◆ m_max

double pv::biases::m_max
private

Definition at line 145 of file PreparePVTrends.h.

◆ m_mean

double pv::biases::m_mean
private

Definition at line 143 of file PreparePVTrends.h.

◆ m_min

double pv::biases::m_min
private

Definition at line 144 of file PreparePVTrends.h.

◆ m_ndf

int pv::biases::m_ndf
private

Definition at line 150 of file PreparePVTrends.h.

◆ m_rms

double pv::biases::m_rms
private

Definition at line 146 of file PreparePVTrends.h.

◆ m_w_mean

double pv::biases::m_w_mean
private

Definition at line 147 of file PreparePVTrends.h.

◆ m_w_rms

double pv::biases::m_w_rms
private

Definition at line 148 of file PreparePVTrends.h.