BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
DifNumber Class Reference

#include <DifNumber.h>

Public Member Functions

 DifNumber ()
 
 DifNumber (double s, int npar=0)
 
 DifNumber (double s, const HepVector &d)
 
 DifNumber (double s, int i, double di, int npar)
 
 DifNumber (double s, int i, int npar)
 
 DifNumber (double s, const DifIndepPar *indeppar)
 
 DifNumber (double s, int i, const DifIndepPar *indepar)
 
 DifNumber (const DifNumber &s)
 
virtual ~DifNumber ()
 
void setNumber (double i)
 
void setNPar (int i)
 
void setDerivatives (const HepVector &d)
 
void setDerivative (int i, double value)
 
void zeroDerivatives ()
 
void setIndepPar (const DifIndepPar *par)
 
void extendPar (int nnew)
 
double number () const
 
double & gimeNumber ()
 
HepVector derivatives () const
 
double derivative (int i) const
 
int nMax ()
 
int nPar () const
 
const DifIndepParindepPar () const
 
double error (const HepSymMatrix &e) const
 
double error () const
 
void tickle () const
 
void print () const
 
DifNumberoperator+= (const DifNumber &a)
 
DifNumberoperator-= (const DifNumber &a)
 
DifNumberoperator*= (const DifNumber &a)
 
DifNumberoperator/= (const DifNumber &a)
 
DifNumberoperator= (const DifNumber &a)
 
DifNumber operator- () const
 
DifNumberoperator+= (const double &a)
 
DifNumberoperator-= (const double &a)
 
DifNumberoperator*= (const double &a)
 
DifNumberoperator/= (const double &a)
 
DifNumberoperator= (const double &a)
 
DifNumberinverse ()
 
DifNumberflipsign ()
 
DifNumberabsolute ()
 
void cosAndSin (DifNumber &c, DifNumber &s) const
 
DifNumbersquareRoot ()
 
DifNumbermod (double lo, double hi)
 
DifNumberarcTangent (const DifNumber &x)
 
DifNumberpower (double p)
 
DifNumberpower (const DifNumber &p)
 
double sign () const
 
double correlation (const DifNumber &b, const HepSymMatrix &e) const
 
double correlation (const DifNumber &b) const
 
void sumMatrix (HepMatrix &m) const
 
void fetchNumber (double &n) const
 
void fetchDerivatives (HepVector &v) const
 
 DifNumber ()
 
 DifNumber (double s, int npar=0)
 
 DifNumber (double s, const HepVector &d)
 
 DifNumber (double s, int i, double di, int npar)
 
 DifNumber (double s, int i, int npar)
 
 DifNumber (double s, const DifIndepPar *indeppar)
 
 DifNumber (double s, int i, const DifIndepPar *indepar)
 
 DifNumber (const DifNumber &s)
 
virtual ~DifNumber ()
 
void setNumber (double i)
 
void setNPar (int i)
 
void setDerivatives (const HepVector &d)
 
void setDerivative (int i, double value)
 
void zeroDerivatives ()
 
void setIndepPar (const DifIndepPar *par)
 
void extendPar (int nnew)
 
double number () const
 
double & gimeNumber ()
 
HepVector derivatives () const
 
double derivative (int i) const
 
int nMax ()
 
int nPar () const
 
const DifIndepParindepPar () const
 
double error (const HepSymMatrix &e) const
 
double error () const
 
void tickle () const
 
void print () const
 
DifNumberoperator+= (const DifNumber &a)
 
DifNumberoperator-= (const DifNumber &a)
 
DifNumberoperator*= (const DifNumber &a)
 
DifNumberoperator/= (const DifNumber &a)
 
DifNumberoperator= (const DifNumber &a)
 
DifNumber operator- () const
 
DifNumberoperator+= (const double &a)
 
DifNumberoperator-= (const double &a)
 
DifNumberoperator*= (const double &a)
 
DifNumberoperator/= (const double &a)
 
DifNumberoperator= (const double &a)
 
DifNumberinverse ()
 
DifNumberflipsign ()
 
DifNumberabsolute ()
 
void cosAndSin (DifNumber &c, DifNumber &s) const
 
DifNumbersquareRoot ()
 
DifNumbermod (double lo, double hi)
 
DifNumberarcTangent (const DifNumber &x)
 
DifNumberpower (double p)
 
DifNumberpower (const DifNumber &p)
 
double sign () const
 
double correlation (const DifNumber &b, const HepSymMatrix &e) const
 
double correlation (const DifNumber &b) const
 
void sumMatrix (HepMatrix &m) const
 
void fetchNumber (double &n) const
 
void fetchDerivatives (HepVector &v) const
 

Friends

DifNumber operator+ (const DifNumber &a, const DifNumber &b)
 
DifNumber operator- (const DifNumber &a, const DifNumber &b)
 
DifNumber operator* (const DifNumber &a, const DifNumber &b)
 
DifNumber operator/ (const DifNumber &a, const DifNumber &b)
 
DifNumber operator+ (const DifNumber &a, const double &b)
 
DifNumber operator- (const DifNumber &a, const double &b)
 
DifNumber operator* (const DifNumber &a, const double &b)
 
DifNumber operator/ (const DifNumber &a, const double &b)
 
DifNumber operator+ (const double &a, const DifNumber &b)
 
DifNumber operator- (const double &a, const DifNumber &b)
 
DifNumber operator* (const double &a, const DifNumber &b)
 
DifNumber operator/ (const double &a, const DifNumber &b)
 
bool operator> (const DifNumber &a, const DifNumber &b)
 
bool operator> (const DifNumber &a, const double &b)
 
bool operator> (const double &a, const DifNumber &b)
 
bool operator< (const DifNumber &a, const DifNumber &b)
 
bool operator< (const DifNumber &a, const double &b)
 
bool operator< (const double &a, const DifNumber &b)
 
bool operator>= (const DifNumber &a, const DifNumber &b)
 
bool operator>= (const DifNumber &a, const double &b)
 
bool operator>= (const double &a, const DifNumber &b)
 
bool operator<= (const DifNumber &a, const DifNumber &b)
 
bool operator<= (const DifNumber &a, const double &b)
 
bool operator<= (const double &a, const DifNumber &b)
 
bool operator== (const DifNumber &a, const DifNumber &b)
 
bool operator== (const DifNumber &a, const double &b)
 
bool operator== (const double &a, const DifNumber &b)
 
bool operator!= (const DifNumber &a, const DifNumber &b)
 
bool operator!= (const DifNumber &a, const double &b)
 
bool operator!= (const double &a, const DifNumber &b)
 
DifNumber sin (const DifNumber &a)
 
DifNumber cos (const DifNumber &a)
 
DifNumber tan (const DifNumber &a)
 
DifNumber sec (const DifNumber &a)
 
DifNumber asin (const DifNumber &a)
 
DifNumber acos (const DifNumber &a)
 
DifNumber atan (const DifNumber &a)
 
DifNumber atan2 (const DifNumber &y, const DifNumber &x)
 
DifNumber atan2 (const DifNumber &y, const double &x)
 
DifNumber atan2 (const double &y, const DifNumber &x)
 
DifNumber exp (const DifNumber &a)
 
DifNumber cosh (const DifNumber &a)
 
DifNumber sinh (const DifNumber &a)
 
DifNumber tanh (const DifNumber &a)
 
DifNumber sqrt (const DifNumber &a)
 
DifNumber log (const DifNumber &a)
 
DifNumber fabs (const DifNumber &a)
 
DifNumber pow (const DifNumber &a, const DifNumber &b)
 
DifNumber pow (const DifNumber &a, int i)
 
DifNumber pow (const DifNumber &a, float i)
 
DifNumber pow (const DifNumber &a, double i)
 
double correlation (const DifNumber &a, const DifNumber &b, const HepSymMatrix &e)
 
double correlation (const DifNumber &a, const DifNumber &b)
 
DifNumber operator+ (const DifNumber &a, const DifNumber &b)
 
DifNumber operator- (const DifNumber &a, const DifNumber &b)
 
DifNumber operator* (const DifNumber &a, const DifNumber &b)
 
DifNumber operator/ (const DifNumber &a, const DifNumber &b)
 
DifNumber operator+ (const DifNumber &a, const double &b)
 
DifNumber operator- (const DifNumber &a, const double &b)
 
DifNumber operator* (const DifNumber &a, const double &b)
 
DifNumber operator/ (const DifNumber &a, const double &b)
 
DifNumber operator+ (const double &a, const DifNumber &b)
 
DifNumber operator- (const double &a, const DifNumber &b)
 
DifNumber operator* (const double &a, const DifNumber &b)
 
DifNumber operator/ (const double &a, const DifNumber &b)
 
bool operator> (const DifNumber &a, const DifNumber &b)
 
bool operator> (const DifNumber &a, const double &b)
 
bool operator> (const double &a, const DifNumber &b)
 
bool operator< (const DifNumber &a, const DifNumber &b)
 
bool operator< (const DifNumber &a, const double &b)
 
bool operator< (const double &a, const DifNumber &b)
 
bool operator>= (const DifNumber &a, const DifNumber &b)
 
bool operator>= (const DifNumber &a, const double &b)
 
bool operator>= (const double &a, const DifNumber &b)
 
bool operator<= (const DifNumber &a, const DifNumber &b)
 
bool operator<= (const DifNumber &a, const double &b)
 
bool operator<= (const double &a, const DifNumber &b)
 
bool operator== (const DifNumber &a, const DifNumber &b)
 
bool operator== (const DifNumber &a, const double &b)
 
bool operator== (const double &a, const DifNumber &b)
 
bool operator!= (const DifNumber &a, const DifNumber &b)
 
bool operator!= (const DifNumber &a, const double &b)
 
bool operator!= (const double &a, const DifNumber &b)
 
DifNumber sin (const DifNumber &a)
 
DifNumber cos (const DifNumber &a)
 
DifNumber tan (const DifNumber &a)
 
DifNumber sec (const DifNumber &a)
 
DifNumber asin (const DifNumber &a)
 
DifNumber acos (const DifNumber &a)
 
DifNumber atan (const DifNumber &a)
 
DifNumber atan2 (const DifNumber &y, const DifNumber &x)
 
DifNumber atan2 (const DifNumber &y, const double &x)
 
DifNumber atan2 (const double &y, const DifNumber &x)
 
DifNumber exp (const DifNumber &a)
 
DifNumber cosh (const DifNumber &a)
 
DifNumber sinh (const DifNumber &a)
 
DifNumber tanh (const DifNumber &a)
 
DifNumber sqrt (const DifNumber &a)
 
DifNumber log (const DifNumber &a)
 
DifNumber fabs (const DifNumber &a)
 
DifNumber pow (const DifNumber &a, const DifNumber &b)
 
DifNumber pow (const DifNumber &a, int i)
 
DifNumber pow (const DifNumber &a, float i)
 
DifNumber pow (const DifNumber &a, double i)
 
double correlation (const DifNumber &a, const DifNumber &b, const HepSymMatrix &e)
 
double correlation (const DifNumber &a, const DifNumber &b)
 

Detailed Description

Constructor & Destructor Documentation

◆ DifNumber() [1/16]

DifNumber::DifNumber ( )
inline

Referenced by operator-().

◆ DifNumber() [2/16]

DifNumber::DifNumber ( double  s,
int  npar = 0 
)
inlineexplicit

◆ DifNumber() [3/16]

DifNumber::DifNumber ( double  s,
const HepVector &  d 
)
inline

◆ DifNumber() [4/16]

DifNumber::DifNumber ( double  s,
int  i,
double  di,
int  npar 
)
inline

◆ DifNumber() [5/16]

DifNumber::DifNumber ( double  s,
int  i,
int  npar 
)
inline

◆ DifNumber() [6/16]

DifNumber::DifNumber ( double  s,
const DifIndepPar indeppar 
)
inline

◆ DifNumber() [7/16]

DifNumber::DifNumber ( double  s,
int  i,
const DifIndepPar indepar 
)
inline

◆ DifNumber() [8/16]

DifNumber::DifNumber ( const DifNumber s)
inline

◆ ~DifNumber() [1/2]

virtual DifNumber::~DifNumber ( )
inlinevirtual

◆ DifNumber() [9/16]

DifNumber::DifNumber ( )
inline

◆ DifNumber() [10/16]

DifNumber::DifNumber ( double  s,
int  npar = 0 
)
inlineexplicit

◆ DifNumber() [11/16]

DifNumber::DifNumber ( double  s,
const HepVector &  d 
)
inline

◆ DifNumber() [12/16]

DifNumber::DifNumber ( double  s,
int  i,
double  di,
int  npar 
)
inline

◆ DifNumber() [13/16]

DifNumber::DifNumber ( double  s,
int  i,
int  npar 
)
inline

◆ DifNumber() [14/16]

DifNumber::DifNumber ( double  s,
const DifIndepPar indeppar 
)
inline

◆ DifNumber() [15/16]

DifNumber::DifNumber ( double  s,
int  i,
const DifIndepPar indepar 
)
inline

◆ DifNumber() [16/16]

DifNumber::DifNumber ( const DifNumber s)
inline

◆ ~DifNumber() [2/2]

virtual DifNumber::~DifNumber ( )
inlinevirtual

Member Function Documentation

◆ absolute() [1/2]

DifNumber & DifNumber::absolute ( )
inline

Definition at line 122 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

122{ if (_number<0) flipsign(); return *this; }
DifNumber & flipsign()

◆ absolute() [2/2]

DifNumber & DifNumber::absolute ( )
inline

Definition at line 122 of file Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/MdcRecoUtil/DifNumber.h.

122{ if (_number<0) flipsign(); return *this; }

◆ arcTangent() [1/2]

DifNumber & DifNumber::arcTangent ( const DifNumber x)
inline

◆ arcTangent() [2/2]

DifNumber & DifNumber::arcTangent ( const DifNumber x)
inline

◆ correlation() [1/4]

double DifNumber::correlation ( const DifNumber b) const

Definition at line 66 of file DifNumber.cxx.

66 {
67 if(indepPar()==0) return 0.0;
68 if(b.indepPar()!=indepPar()) return 0.0;
69 return correlation(b,indepPar()->covariance());
70}
friend double correlation(const DifNumber &a, const DifNumber &b, const HepSymMatrix &e)
Definition: DifNumber.cxx:78

◆ correlation() [2/4]

double DifNumber::correlation ( const DifNumber b) const

◆ correlation() [3/4]

double DifNumber::correlation ( const DifNumber b,
const HepSymMatrix &  e 
) const

Definition at line 53 of file DifNumber.cxx.

53 {
54 assert(e.num_col()==nPar());
55 assert(e.num_row()==b.nPar());
56 double error = 0.;
57 for(int i=1; i<=nPar(); i++) {
58 for(int j=1; j<=b.nPar(); j++) {
59 error+=derivative(i)*e(i,j)*b.derivative(j);
60 }
61 }
62 return error;
63}
double error() const
Definition: DifNumber.cxx:36

◆ correlation() [4/4]

double DifNumber::correlation ( const DifNumber b,
const HepSymMatrix &  e 
) const

◆ cosAndSin() [1/2]

◆ cosAndSin() [2/2]

void DifNumber::cosAndSin ( DifNumber c,
DifNumber s 
) const
inline

◆ derivative() [1/2]

double DifNumber::derivative ( int  i) const
inline

◆ derivative() [2/2]

double DifNumber::derivative ( int  i) const
inline

Definition at line 90 of file Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/MdcRecoUtil/DifNumber.h.

90{return _derivatives[i-1];}

◆ derivatives() [1/2]

HepVector DifNumber::derivatives ( ) const

Definition at line 46 of file DifNumber.cxx.

46 {
47 HepVector temp(nPar());
48 fetchDerivatives(temp);
49 return temp;
50}
void fetchDerivatives(HepVector &v) const
Definition: DifNumber.cxx:41

Referenced by TrkDifPoca::derivs(), and TrkRep::positionErr().

◆ derivatives() [2/2]

HepVector DifNumber::derivatives ( ) const

◆ error() [1/4]

double DifNumber::error ( ) const

Definition at line 36 of file DifNumber.cxx.

36 {
37 if(indepPar()==0) {return 0.0;}
38 return error(indepPar()->covariance());
39}

Referenced by correlation(), and error().

◆ error() [2/4]

double DifNumber::error ( ) const

◆ error() [3/4]

double DifNumber::error ( const HepSymMatrix &  e) const

Definition at line 32 of file DifNumber.cxx.

32 {
33 return sqrt(correlation(*this,e));
34}
friend DifNumber sqrt(const DifNumber &a)

◆ error() [4/4]

double DifNumber::error ( const HepSymMatrix &  e) const

◆ extendPar() [1/2]

void DifNumber::extendPar ( int  nnew)
inline

◆ extendPar() [2/2]

void DifNumber::extendPar ( int  nnew)
inline

◆ fetchDerivatives() [1/2]

void DifNumber::fetchDerivatives ( HepVector &  v) const

Definition at line 41 of file DifNumber.cxx.

41 {
42 assert(v.num_row()==nPar());
43 for(int i=1; i<=nPar(); i++) {v(i)=derivative(i);}
44}
**********Class see also m_nmax DOUBLE PRECISION m_amel DOUBLE PRECISION m_x2 DOUBLE PRECISION m_alfinv DOUBLE PRECISION m_Xenph INTEGER m_KeyWtm INTEGER m_idyfs DOUBLE PRECISION m_zini DOUBLE PRECISION m_q2 DOUBLE PRECISION m_Wt_KF DOUBLE PRECISION m_WtCut INTEGER m_KFfin *COMMON c_KarLud $ !Input CMS energy[GeV] $ !CMS energy after beam spread beam strahlung[GeV] $ !Beam energy spread[GeV] $ !z boost due to beam spread $ !electron beam mass *ff pair spectrum $ !minimum v
Definition: KarLud.h:35

Referenced by derivatives(), and TrkDifPoca::fetchDerivs().

◆ fetchDerivatives() [2/2]

void DifNumber::fetchDerivatives ( HepVector &  v) const

◆ fetchNumber() [1/2]

void DifNumber::fetchNumber ( double &  n) const
inline

◆ fetchNumber() [2/2]

void DifNumber::fetchNumber ( double &  n) const
inline

◆ flipsign() [1/2]

DifNumber & DifNumber::flipsign ( )
inline

Referenced by absolute().

◆ flipsign() [2/2]

DifNumber & DifNumber::flipsign ( )
inline

◆ gimeNumber() [1/2]

double & DifNumber::gimeNumber ( )
inline

Definition at line 88 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

88{return _number;}

◆ gimeNumber() [2/2]

double & DifNumber::gimeNumber ( )
inline

◆ indepPar() [1/2]

const DifIndepPar * DifNumber::indepPar ( ) const
inline

◆ indepPar() [2/2]

const DifIndepPar * DifNumber::indepPar ( ) const
inline

◆ inverse() [1/2]

DifNumber & DifNumber::inverse ( )
inline

◆ inverse() [2/2]

DifNumber & DifNumber::inverse ( )
inline

◆ mod() [1/2]

DifNumber & DifNumber::mod ( double  lo,
double  hi 
)
inline

◆ mod() [2/2]

DifNumber & DifNumber::mod ( double  lo,
double  hi 
)
inline

◆ nMax() [1/2]

int DifNumber::nMax ( )
inline

Definition at line 91 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

91{return _nmax;}

◆ nMax() [2/2]

int DifNumber::nMax ( )
inline

◆ nPar() [1/2]

◆ nPar() [2/2]

int DifNumber::nPar ( ) const
inline

◆ number() [1/2]

◆ number() [2/2]

double DifNumber::number ( ) const
inline

◆ operator*=() [1/4]

DifNumber & DifNumber::operator*= ( const DifNumber a)
inline

◆ operator*=() [2/4]

DifNumber & DifNumber::operator*= ( const DifNumber a)
inline

◆ operator*=() [3/4]

DifNumber & DifNumber::operator*= ( const double &  a)
inline

◆ operator*=() [4/4]

DifNumber & DifNumber::operator*= ( const double &  a)
inline

◆ operator+=() [1/4]

DifNumber & DifNumber::operator+= ( const DifNumber a)
inline

◆ operator+=() [2/4]

DifNumber & DifNumber::operator+= ( const DifNumber a)
inline

◆ operator+=() [3/4]

DifNumber & DifNumber::operator+= ( const double &  a)
inline

◆ operator+=() [4/4]

DifNumber & DifNumber::operator+= ( const double &  a)
inline

◆ operator-() [1/2]

DifNumber DifNumber::operator- ( ) const
inline

Definition at line 109 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

110 { return DifNumber(*this).flipsign(); } // unary minus

◆ operator-() [2/2]

DifNumber DifNumber::operator- ( ) const
inline

Definition at line 109 of file Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/MdcRecoUtil/DifNumber.h.

110 { return DifNumber(*this).flipsign(); } // unary minus

◆ operator-=() [1/4]

DifNumber & DifNumber::operator-= ( const DifNumber a)
inline

◆ operator-=() [2/4]

DifNumber & DifNumber::operator-= ( const DifNumber a)
inline

◆ operator-=() [3/4]

DifNumber & DifNumber::operator-= ( const double &  a)
inline

◆ operator-=() [4/4]

DifNumber & DifNumber::operator-= ( const double &  a)
inline

◆ operator/=() [1/4]

DifNumber & DifNumber::operator/= ( const DifNumber a)
inline

◆ operator/=() [2/4]

DifNumber & DifNumber::operator/= ( const DifNumber a)
inline

◆ operator/=() [3/4]

DifNumber & DifNumber::operator/= ( const double &  a)
inline

◆ operator/=() [4/4]

DifNumber & DifNumber::operator/= ( const double &  a)
inline

◆ operator=() [1/4]

DifNumber & DifNumber::operator= ( const DifNumber a)
inline

◆ operator=() [2/4]

DifNumber & DifNumber::operator= ( const DifNumber a)
inline

◆ operator=() [3/4]

DifNumber & DifNumber::operator= ( const double &  a)
inline

◆ operator=() [4/4]

DifNumber & DifNumber::operator= ( const double &  a)
inline

◆ power() [1/4]

DifNumber & DifNumber::power ( const DifNumber p)
inline

◆ power() [2/4]

DifNumber & DifNumber::power ( const DifNumber p)
inline

◆ power() [3/4]

DifNumber & DifNumber::power ( double  p)
inline

◆ power() [4/4]

DifNumber & DifNumber::power ( double  p)
inline

◆ print() [1/2]

void DifNumber::print ( ) const

Definition at line 81 of file DifNumber.cxx.

81 {
82 cout << "number:" << number() << endl;
83 cout << "npar:" << nPar() << endl;
84 for(int i=1; i<=nPar(); i++) {
85 cout << "derivative(" << i << "):" << derivative(i) << endl;
86 }
87}

◆ print() [2/2]

void DifNumber::print ( ) const

◆ setDerivative() [1/2]

void DifNumber::setDerivative ( int  i,
double  value 
)
inline

Definition at line 81 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

81{ _derivatives[i-1]=value;}

Referenced by zeroDerivatives().

◆ setDerivative() [2/2]

void DifNumber::setDerivative ( int  i,
double  value 
)
inline

Definition at line 81 of file Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/MdcRecoUtil/DifNumber.h.

81{ _derivatives[i-1]=value;}

◆ setDerivatives() [1/2]

void DifNumber::setDerivatives ( const HepVector &  d)
inline

Definition at line 80 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

80{ copyDerivs(d); }

◆ setDerivatives() [2/2]

void DifNumber::setDerivatives ( const HepVector &  d)
inline

◆ setIndepPar() [1/2]

◆ setIndepPar() [2/2]

void DifNumber::setIndepPar ( const DifIndepPar par)
inline

◆ setNPar() [1/2]

void DifNumber::setNPar ( int  i)
inline

Definition at line 79 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

79{ _npar=i;}

Referenced by DifArray::zero().

◆ setNPar() [2/2]

void DifNumber::setNPar ( int  i)
inline

◆ setNumber() [1/2]

void DifNumber::setNumber ( double  i)
inline

Definition at line 78 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

78{ _number=i;}

◆ setNumber() [2/2]

void DifNumber::setNumber ( double  i)
inline

◆ sign() [1/2]

double DifNumber::sign ( ) const
inline

Definition at line 130 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

130{ return _number>=0 ? 1 : -1; }

◆ sign() [2/2]

double DifNumber::sign ( ) const
inline

Definition at line 130 of file Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/MdcRecoUtil/DifNumber.h.

130{ return _number>=0 ? 1 : -1; }

◆ squareRoot() [1/2]

DifNumber & DifNumber::squareRoot ( )
inline

◆ squareRoot() [2/2]

DifNumber & DifNumber::squareRoot ( )
inline

◆ sumMatrix() [1/2]

void DifNumber::sumMatrix ( HepMatrix &  m) const

◆ sumMatrix() [2/2]

void DifNumber::sumMatrix ( HepMatrix &  m) const

◆ tickle() [1/2]

void DifNumber::tickle ( ) const
inline

Definition at line 96 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

96{return;} // tickle a number

◆ tickle() [2/2]

void DifNumber::tickle ( ) const
inline

Definition at line 96 of file Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/MdcRecoUtil/DifNumber.h.

96{return;} // tickle a number

◆ zeroDerivatives() [1/2]

void DifNumber::zeroDerivatives ( )
inline

Definition at line 82 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

82{ for(int i=1; i<=nPar(); i++) setDerivative(i,0.0); }

◆ zeroDerivatives() [2/2]

void DifNumber::zeroDerivatives ( )
inline

Definition at line 82 of file Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/MdcRecoUtil/DifNumber.h.

82{ for(int i=1; i<=nPar(); i++) setDerivative(i,0.0); }

Friends And Related Function Documentation

◆ acos [1/2]

DifNumber acos ( const DifNumber a)
friend

◆ acos [2/2]

DifNumber acos ( const DifNumber a)
friend

◆ asin [1/2]

DifNumber asin ( const DifNumber a)
friend

◆ asin [2/2]

DifNumber asin ( const DifNumber a)
friend

◆ atan [1/2]

DifNumber atan ( const DifNumber a)
friend

◆ atan [2/2]

DifNumber atan ( const DifNumber a)
friend

◆ atan2 [1/6]

DifNumber atan2 ( const DifNumber y,
const DifNumber x 
)
friend

Definition at line 195 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

195{ return DifNumber(y).arcTangent(x); }

◆ atan2 [2/6]

DifNumber atan2 ( const DifNumber y,
const DifNumber x 
)
friend

Definition at line 195 of file Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/MdcRecoUtil/DifNumber.h.

195{ return DifNumber(y).arcTangent(x); }

◆ atan2 [3/6]

DifNumber atan2 ( const DifNumber y,
const double &  x 
)
friend

Definition at line 196 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

196{ return DifNumber(y).arcTangent(DifNumber(x)); }

◆ atan2 [4/6]

DifNumber atan2 ( const DifNumber y,
const double &  x 
)
friend

◆ atan2 [5/6]

DifNumber atan2 ( const double &  y,
const DifNumber x 
)
friend

Definition at line 197 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

197{ return DifNumber(y).arcTangent(x); }

◆ atan2 [6/6]

DifNumber atan2 ( const double &  y,
const DifNumber x 
)
friend

Definition at line 197 of file Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/MdcRecoUtil/DifNumber.h.

197{ return DifNumber(y).arcTangent(x); }

◆ correlation [1/4]

double correlation ( const DifNumber a,
const DifNumber b 
)
friend

Definition at line 72 of file DifNumber.cxx.

73{
74 return (a.indepPar()==0||b.indepPar()==0||a.indepPar()!=b.indepPar())?0:a.correlation(b,a.indepPar()->covariance());
75}
double correlation(const DifNumber &b, const HepSymMatrix &e) const
Definition: DifNumber.cxx:53

◆ correlation [2/4]

double correlation ( const DifNumber a,
const DifNumber b 
)
friend

Definition at line 72 of file DifNumber.cxx.

73{
74 return (a.indepPar()==0||b.indepPar()==0||a.indepPar()!=b.indepPar())?0:a.correlation(b,a.indepPar()->covariance());
75}

◆ correlation [3/4]

double correlation ( const DifNumber a,
const DifNumber b,
const HepSymMatrix &  e 
)
friend

Definition at line 78 of file DifNumber.cxx.

79{ return a.correlation(b,e); }

Referenced by correlation(), and error().

◆ correlation [4/4]

double correlation ( const DifNumber a,
const DifNumber b,
const HepSymMatrix &  e 
)
friend

Definition at line 78 of file DifNumber.cxx.

79{ return a.correlation(b,e); }

◆ cos [1/2]

DifNumber cos ( const DifNumber a)
friend

Definition at line 185 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

186 { return DifNumber(cos(a.number()),a,-sin(a.number())); }
friend DifNumber sin(const DifNumber &a)
friend DifNumber cos(const DifNumber &a)

◆ cos [2/2]

DifNumber cos ( const DifNumber a)
friend

◆ cosh [1/2]

DifNumber cosh ( const DifNumber a)
friend

Definition at line 201 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

202 { return 0.5*(DifNumber(exp(a))+=exp(-a)); }
friend DifNumber exp(const DifNumber &a)

◆ cosh [2/2]

DifNumber cosh ( const DifNumber a)
friend

◆ exp [1/2]

DifNumber exp ( const DifNumber a)
friend

Definition at line 199 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

200 { double e=exp(a.number()); return DifNumber(e,a,e); }

◆ exp [2/2]

DifNumber exp ( const DifNumber a)
friend

Definition at line 199 of file Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/MdcRecoUtil/DifNumber.h.

200 { double e=exp(a.number()); return DifNumber(e,a,e); }

◆ fabs [1/2]

DifNumber fabs ( const DifNumber a)
friend

◆ fabs [2/2]

DifNumber fabs ( const DifNumber a)
friend

◆ log [1/2]

DifNumber log ( const DifNumber a)
friend

Definition at line 211 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

212 { return DifNumber(log(a.number()),a,1.0/a.number()); }
friend DifNumber log(const DifNumber &a)

◆ log [2/2]

DifNumber log ( const DifNumber a)
friend

◆ operator!= [1/6]

bool operator!= ( const DifNumber a,
const DifNumber b 
)
friend

Definition at line 179 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

179{ return !(a==b); }

◆ operator!= [2/6]

bool operator!= ( const DifNumber a,
const DifNumber b 
)
friend

◆ operator!= [3/6]

bool operator!= ( const DifNumber a,
const double &  b 
)
friend

Definition at line 180 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

180{ return true; }

◆ operator!= [4/6]

bool operator!= ( const DifNumber a,
const double &  b 
)
friend

◆ operator!= [5/6]

bool operator!= ( const double &  a,
const DifNumber b 
)
friend

Definition at line 181 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

181{ return true; }

◆ operator!= [6/6]

bool operator!= ( const double &  a,
const DifNumber b 
)
friend

◆ operator* [1/6]

DifNumber operator* ( const DifNumber a,
const DifNumber b 
)
friend

Definition at line 144 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

144{ return DifNumber(a)*=b; }

◆ operator* [2/6]

DifNumber operator* ( const DifNumber a,
const DifNumber b 
)
friend

◆ operator* [3/6]

DifNumber operator* ( const DifNumber a,
const double &  b 
)
friend

Definition at line 149 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

149{ return DifNumber(a)*=b; }

◆ operator* [4/6]

DifNumber operator* ( const DifNumber a,
const double &  b 
)
friend

◆ operator* [5/6]

DifNumber operator* ( const double &  a,
const DifNumber b 
)
friend

Definition at line 154 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

154{ return DifNumber(a)*=b; }

◆ operator* [6/6]

DifNumber operator* ( const double &  a,
const DifNumber b 
)
friend

◆ operator+ [1/6]

DifNumber operator+ ( const DifNumber a,
const DifNumber b 
)
friend

Definition at line 142 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

142{ return DifNumber(a)+=b; }

◆ operator+ [2/6]

DifNumber operator+ ( const DifNumber a,
const DifNumber b 
)
friend

◆ operator+ [3/6]

DifNumber operator+ ( const DifNumber a,
const double &  b 
)
friend

Definition at line 147 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

147{ return DifNumber(a)+=b; }

◆ operator+ [4/6]

DifNumber operator+ ( const DifNumber a,
const double &  b 
)
friend

◆ operator+ [5/6]

DifNumber operator+ ( const double &  a,
const DifNumber b 
)
friend

Definition at line 152 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

152{ return DifNumber(a)+=b; }

◆ operator+ [6/6]

DifNumber operator+ ( const double &  a,
const DifNumber b 
)
friend

◆ operator- [1/6]

DifNumber operator- ( const DifNumber a,
const DifNumber b 
)
friend

Definition at line 143 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

143{ return DifNumber(a)-=b; }

◆ operator- [2/6]

DifNumber operator- ( const DifNumber a,
const DifNumber b 
)
friend

◆ operator- [3/6]

DifNumber operator- ( const DifNumber a,
const double &  b 
)
friend

Definition at line 148 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

148{ return DifNumber(a)-=b; }

◆ operator- [4/6]

DifNumber operator- ( const DifNumber a,
const double &  b 
)
friend

◆ operator- [5/6]

DifNumber operator- ( const double &  a,
const DifNumber b 
)
friend

Definition at line 153 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

153{ return DifNumber(a)-=b; }

◆ operator- [6/6]

DifNumber operator- ( const double &  a,
const DifNumber b 
)
friend

◆ operator/ [1/6]

DifNumber operator/ ( const DifNumber a,
const DifNumber b 
)
friend

Definition at line 145 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

145{ return DifNumber(a)/=b; }

◆ operator/ [2/6]

DifNumber operator/ ( const DifNumber a,
const DifNumber b 
)
friend

◆ operator/ [3/6]

DifNumber operator/ ( const DifNumber a,
const double &  b 
)
friend

Definition at line 150 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

150{ return DifNumber(a)/=b; }

◆ operator/ [4/6]

DifNumber operator/ ( const DifNumber a,
const double &  b 
)
friend

◆ operator/ [5/6]

DifNumber operator/ ( const double &  a,
const DifNumber b 
)
friend

Definition at line 155 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

155{ return DifNumber(a)/=b; }

◆ operator/ [6/6]

DifNumber operator/ ( const double &  a,
const DifNumber b 
)
friend

◆ operator< [1/6]

bool operator< ( const DifNumber a,
const DifNumber b 
)
friend

Definition at line 162 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

162{ return b>a; }

◆ operator< [2/6]

bool operator< ( const DifNumber a,
const DifNumber b 
)
friend

◆ operator< [3/6]

bool operator< ( const DifNumber a,
const double &  b 
)
friend

Definition at line 163 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

163{ return b>a; }

◆ operator< [4/6]

bool operator< ( const DifNumber a,
const double &  b 
)
friend

◆ operator< [5/6]

bool operator< ( const double &  a,
const DifNumber b 
)
friend

Definition at line 164 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

164{ return b>a; }

◆ operator< [6/6]

bool operator< ( const double &  a,
const DifNumber b 
)
friend

◆ operator<= [1/6]

bool operator<= ( const DifNumber a,
const DifNumber b 
)
friend

Definition at line 171 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

171{ return b>=a; }

◆ operator<= [2/6]

bool operator<= ( const DifNumber a,
const DifNumber b 
)
friend

◆ operator<= [3/6]

bool operator<= ( const DifNumber a,
const double &  b 
)
friend

Definition at line 172 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

172{ return b>=a; }

◆ operator<= [4/6]

bool operator<= ( const DifNumber a,
const double &  b 
)
friend

◆ operator<= [5/6]

bool operator<= ( const double &  a,
const DifNumber b 
)
friend

Definition at line 173 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

173{ return b>=a; }

◆ operator<= [6/6]

bool operator<= ( const double &  a,
const DifNumber b 
)
friend

◆ operator== [1/6]

bool operator== ( const DifNumber a,
const DifNumber b 
)
friend

◆ operator== [2/6]

bool operator== ( const DifNumber a,
const DifNumber b 
)
friend

◆ operator== [3/6]

bool operator== ( const DifNumber a,
const double &  b 
)
friend

Definition at line 176 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

176{return false;}

◆ operator== [4/6]

bool operator== ( const DifNumber a,
const double &  b 
)
friend

◆ operator== [5/6]

bool operator== ( const double &  a,
const DifNumber b 
)
friend

Definition at line 177 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

177{return false;}

◆ operator== [6/6]

bool operator== ( const double &  a,
const DifNumber b 
)
friend

◆ operator> [1/6]

bool operator> ( const DifNumber a,
const DifNumber b 
)
friend

Definition at line 158 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

158{ return a.number()>b.number(); }

◆ operator> [2/6]

bool operator> ( const DifNumber a,
const DifNumber b 
)
friend

◆ operator> [3/6]

bool operator> ( const DifNumber a,
const double &  b 
)
friend

Definition at line 159 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

159{ return a.number()>b; }

◆ operator> [4/6]

bool operator> ( const DifNumber a,
const double &  b 
)
friend

◆ operator> [5/6]

bool operator> ( const double &  a,
const DifNumber b 
)
friend

Definition at line 160 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

160{ return a>b.number(); }

◆ operator> [6/6]

bool operator> ( const double &  a,
const DifNumber b 
)
friend

◆ operator>= [1/6]

bool operator>= ( const DifNumber a,
const DifNumber b 
)
friend

Definition at line 167 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

167{ return a.number()>=b.number(); }

◆ operator>= [2/6]

bool operator>= ( const DifNumber a,
const DifNumber b 
)
friend

◆ operator>= [3/6]

bool operator>= ( const DifNumber a,
const double &  b 
)
friend

Definition at line 168 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

168{ return a.number()>=b; }

◆ operator>= [4/6]

bool operator>= ( const DifNumber a,
const double &  b 
)
friend

◆ operator>= [5/6]

bool operator>= ( const double &  a,
const DifNumber b 
)
friend

Definition at line 169 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

169{ return a>=b.number(); }

◆ operator>= [6/6]

bool operator>= ( const double &  a,
const DifNumber b 
)
friend

◆ pow [1/8]

DifNumber pow ( const DifNumber a,
const DifNumber b 
)
friend

Definition at line 215 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

215{ return DifNumber(a).power(b); }

◆ pow [2/8]

DifNumber pow ( const DifNumber a,
const DifNumber b 
)
friend

◆ pow [3/8]

DifNumber pow ( const DifNumber a,
double  i 
)
friend

Definition at line 218 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

218 {
219 return i==0?DifNumber(1.0,a,0.0)
220 :DifNumber(pow(a.number(),i),a,i*pow(a.number(),i-1)); }
friend DifNumber pow(const DifNumber &a, const DifNumber &b)

◆ pow [4/8]

DifNumber pow ( const DifNumber a,
double  i 
)
friend

Definition at line 218 of file Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/MdcRecoUtil/DifNumber.h.

218 {
219 return i==0?DifNumber(1.0,a,0.0)
220 :DifNumber(pow(a.number(),i),a,i*pow(a.number(),i-1)); }

◆ pow [5/8]

DifNumber pow ( const DifNumber a,
float  i 
)
friend

Definition at line 217 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

217{ return pow(a,(double)i);}

◆ pow [6/8]

DifNumber pow ( const DifNumber a,
float  i 
)
friend

Definition at line 217 of file Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/MdcRecoUtil/DifNumber.h.

217{ return pow(a,(double)i);}

◆ pow [7/8]

DifNumber pow ( const DifNumber a,
int  i 
)
friend

Definition at line 216 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

216{ return pow(a,(double)i);}

◆ pow [8/8]

DifNumber pow ( const DifNumber a,
int  i 
)
friend

Definition at line 216 of file Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/MdcRecoUtil/DifNumber.h.

216{ return pow(a,(double)i);}

◆ sec [1/2]

DifNumber sec ( const DifNumber a)
friend

Definition at line 189 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

190 { return DifNumber(cos(a)).inverse(); }

◆ sec [2/2]

DifNumber sec ( const DifNumber a)
friend

◆ sin [1/2]

DifNumber sin ( const DifNumber a)
friend

Definition at line 183 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

184 { return DifNumber(sin(a.number()),a,cos(a.number())); }

◆ sin [2/2]

DifNumber sin ( const DifNumber a)
friend

◆ sinh [1/2]

DifNumber sinh ( const DifNumber a)
friend

Definition at line 203 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

204 { return 0.5*(DifNumber(exp(a))-=exp(-a)); }

◆ sinh [2/2]

DifNumber sinh ( const DifNumber a)
friend

◆ sqrt [1/2]

DifNumber sqrt ( const DifNumber a)
friend

Definition at line 209 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

210 { return DifNumber(a).squareRoot(); }

Referenced by error().

◆ sqrt [2/2]

DifNumber sqrt ( const DifNumber a)
friend

Definition at line 209 of file Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/MdcRecoUtil/DifNumber.h.

210 { return DifNumber(a).squareRoot(); }

◆ tan [1/2]

DifNumber tan ( const DifNumber a)
friend

Definition at line 187 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

188 { double t=tan(a.number()); return DifNumber(t,a,1.0+t*t); }
friend DifNumber tan(const DifNumber &a)
int t()
Definition: t.c:1

◆ tan [2/2]

DifNumber tan ( const DifNumber a)
friend

Definition at line 187 of file Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/MdcRecoUtil/DifNumber.h.

188 { double t=tan(a.number()); return DifNumber(t,a,1.0+t*t); }

◆ tanh [1/2]

DifNumber tanh ( const DifNumber a)
friend

Definition at line 205 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifNumber.h.

206 { double t=tanh(a.number()); return DifNumber(t,a,1.0-t*t); }
friend DifNumber tanh(const DifNumber &a)

◆ tanh [2/2]

DifNumber tanh ( const DifNumber a)
friend

Definition at line 205 of file Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/MdcRecoUtil/DifNumber.h.

206 { double t=tanh(a.number()); return DifNumber(t,a,1.0-t*t); }

The documentation for this class was generated from the following files: