#include <SigmaPtDiff.h>
Public Member Functions | |
double | operator() (const double &eta) |
void | setParErr (const std::vector< double > ¶meters, const std::vector< double > &errors) |
double | sigma (const double &eta) |
SigmaPt (const std::vector< double > ¶meters_, const std::vector< double > &errors_) | |
SigmaPt () | |
Protected Attributes | |
double | b_0 |
double | b_1 |
double | b_2 |
double | b_3 |
double | b_4 |
double | c |
double | sb_0 |
double | sb_1 |
double | sb_2 |
double | sb_3 |
double | sb_4 |
Definition at line 4 of file SigmaPtDiff.h.
SigmaPt::SigmaPt | ( | const std::vector< double > & | parameters_, |
const std::vector< double > & | errors_ | ||
) | [inline] |
Definition at line 7 of file SigmaPtDiff.h.
References setParErr().
{ setParErr(parameters_, errors_); }
SigmaPt::SigmaPt | ( | ) | [inline] |
Definition at line 13 of file SigmaPtDiff.h.
{};
double SigmaPt::operator() | ( | const double & | eta | ) | [inline] |
void SigmaPt::setParErr | ( | const std::vector< double > & | parameters, |
const std::vector< double > & | errors | ||
) | [inline] |
double SigmaPt::sigma | ( | const double & | eta | ) | [inline] |
Definition at line 38 of file SigmaPtDiff.h.
References b_0, b_1, b_3, b_4, funct::pow(), sb_0, sb_1, sb_2, sb_3, sb_4, and mathSSE::sqrt().
Referenced by SigmaPtDiff::squaredDiff().
{ if( fabs(eta) <= b_0 ) { return sqrt( (eta*eta - b_0*b_0)*(eta*eta - b_0*b_0)*sb_1*sb_1 + sb_2*sb_2 + pow(b_0 - b_4, 4)*sb_3*sb_3 + pow(-2*b_3*pow(b_0-b_4,2), 2)*sb_4*sb_4 + pow(2*b_3*(b_0 - b_4) - 2*b_1*b_0, 2)*sb_0*sb_0 ); } return sqrt( sb_2*sb_2 + pow(fabs(eta) - b_4, 4)*sb_3*sb_3 + pow(-2*b_3*pow(fabs(eta)-b_4,2), 2)*sb_4*sb_4 ); }
double SigmaPt::b_0 [protected] |
Definition at line 53 of file SigmaPtDiff.h.
Referenced by operator()(), setParErr(), and sigma().
double SigmaPt::b_1 [protected] |
Definition at line 54 of file SigmaPtDiff.h.
Referenced by operator()(), setParErr(), and sigma().
double SigmaPt::b_2 [protected] |
Definition at line 55 of file SigmaPtDiff.h.
Referenced by operator()(), and setParErr().
double SigmaPt::b_3 [protected] |
Definition at line 56 of file SigmaPtDiff.h.
Referenced by operator()(), setParErr(), and sigma().
double SigmaPt::b_4 [protected] |
Definition at line 57 of file SigmaPtDiff.h.
Referenced by operator()(), setParErr(), and sigma().
double SigmaPt::c [protected] |
Definition at line 58 of file SigmaPtDiff.h.
Referenced by operator()(), and setParErr().
double SigmaPt::sb_0 [protected] |
Definition at line 60 of file SigmaPtDiff.h.
Referenced by setParErr(), and sigma().
double SigmaPt::sb_1 [protected] |
Definition at line 61 of file SigmaPtDiff.h.
Referenced by setParErr(), and sigma().
double SigmaPt::sb_2 [protected] |
Definition at line 62 of file SigmaPtDiff.h.
Referenced by setParErr(), and sigma().
double SigmaPt::sb_3 [protected] |
Definition at line 63 of file SigmaPtDiff.h.
Referenced by setParErr(), and sigma().
double SigmaPt::sb_4 [protected] |
Definition at line 64 of file SigmaPtDiff.h.
Referenced by setParErr(), and sigma().