CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
SigmaPtDiff Class Reference

Returns ( sigmaPt/Pt(data)^2 - sigmaPt/Pt(MC)^2 ) More...

#include <SigmaPtDiff.h>

Public Member Functions

double etaByPoints (const double &eta)
 
 SigmaPtDiff ()
 
double squaredDiff (const double &eta)
 

Public Attributes

SigmaPt sigmaPt
 

Detailed Description

Returns ( sigmaPt/Pt(data)^2 - sigmaPt/Pt(MC)^2 )

Definition at line 71 of file SigmaPtDiff.h.

Constructor & Destructor Documentation

SigmaPtDiff::SigmaPtDiff ( )
inline

Definition at line 74 of file SigmaPtDiff.h.

References benchmark_cfg::errors.

75  {
76  std::vector<double> parameters;
77  std::vector<double> errors;
78  parameters.push_back(1.66);
79  parameters.push_back(0.021);
80  parameters.push_back(0.);
81  parameters.push_back(0.);
82  parameters.push_back(0.);
83  parameters.push_back(0.0058);
84  parameters.push_back(0.);
85  parameters.push_back(0.03);
86  parameters.push_back(1.8);
87  parameters.push_back(0.);
88  parameters.push_back(0.);
89  parameters.push_back(0.);
90  parameters.push_back(0.);
91  parameters.push_back(0.);
92  parameters.push_back(0.);
93  errors.push_back(0.09);
94  errors.push_back(0.002);
95  errors.push_back(0.);
96  errors.push_back(0.);
97  errors.push_back(0.);
98  errors.push_back(0.0009);
99  errors.push_back(0.);
100  errors.push_back(0.03);
101  errors.push_back(0.3);
102  errors.push_back(0.);
103  errors.push_back(0.);
104  errors.push_back(0.);
105  errors.push_back(0.);
106  errors.push_back(0.);
107  errors.push_back(0.);
108 
109  sigmaPt.setParErr( parameters, errors );
110  }
void setParErr(const std::vector< double > &parameters, const std::vector< double > &errors)
Definition: SigmaPtDiff.h:18
SigmaPt sigmaPt
Definition: SigmaPtDiff.h:148

Member Function Documentation

double SigmaPtDiff::etaByPoints ( const double &  eta)
inline

Definition at line 111 of file SigmaPtDiff.h.

112  {
113  if( eta <= -2.2 ) return 0.0233989;
114  else if( eta <= -2.0 ) return 0.0197057;
115  else if( eta <= -1.8 ) return 0.014693;
116  else if( eta <= -1.6 ) return 0.0146727;
117  else if( eta <= -1.4 ) return 0.0141323;
118  else if( eta <= -1.2 ) return 0.0159712;
119  else if( eta <= -1.0 ) return 0.0117224;
120  else if( eta <= -0.8 ) return 0.010726;
121  else if( eta <= -0.6 ) return 0.0104777;
122  else if( eta <= -0.4 ) return 0.00814458;
123  else if( eta <= -0.2 ) return 0.00632501;
124  else if( eta <= 0.0 ) return 0.00644172;
125  else if( eta <= 0.2 ) return 0.00772645;
126  else if( eta <= 0.4 ) return 0.010103;
127  else if( eta <= 0.6 ) return 0.0099275;
128  else if( eta <= 0.8 ) return 0.0100309;
129  else if( eta <= 1.0 ) return 0.0125116;
130  else if( eta <= 1.2 ) return 0.0147211;
131  else if( eta <= 1.4 ) return 0.0151623;
132  else if( eta <= 1.6 ) return 0.015259;
133  else if( eta <= 1.8 ) return 0.014499;
134  else if( eta <= 2.0 ) return 0.0165215;
135  else if( eta <= 2.2 ) return 0.0212348;
136  return 0.0227285;
137  }
double SigmaPtDiff::squaredDiff ( const double &  eta)
inline

Definition at line 139 of file SigmaPtDiff.h.

Referenced by ErrorsPropagationAnalyzer::fillHistograms().

140  {
141  double sigmaPtPlus = sigmaPt(eta) + sigmaPt.sigma(eta);
142  double sigmaPtMinus = sigmaPt(eta) - sigmaPt.sigma(eta);
143  if( fabs(sigmaPtPlus*sigmaPtPlus - etaByPoints(eta)*etaByPoints(eta)) > fabs(sigmaPtMinus*sigmaPtMinus - etaByPoints(eta)*etaByPoints(eta)) ) {
144  return( fabs(sigmaPtPlus*sigmaPtPlus - etaByPoints(eta)*etaByPoints(eta)) );
145  }
146  return( fabs(sigmaPtMinus*sigmaPtMinus - etaByPoints(eta)*etaByPoints(eta)) );
147  }
double etaByPoints(const double &eta)
Definition: SigmaPtDiff.h:111
double sigma(const double &eta)
Definition: SigmaPtDiff.h:41
SigmaPt sigmaPt
Definition: SigmaPtDiff.h:148

Member Data Documentation

SigmaPt SigmaPtDiff::sigmaPt

Definition at line 148 of file SigmaPtDiff.h.