#include <NeutParams.h>
Inheritance diagram for NeutParams:
Public Types | |
_d0 | |
_phi0 | |
_p | |
_z0 | |
_tanDip | |
_s0 | |
_nneutprm = 6 | |
enum | { _d0, _phi0, _p, _z0, _tanDip, _s0, _nneutprm = 6 } |
Public Member Functions | |
NeutParams (const HepVector &, const HepSymMatrix &) | |
NeutParams (double, double, double, double, double, double) | |
NeutParams (const NeutParams &old) | |
~NeutParams () | |
double & | d0 () |
double & | phi0 () |
double & | p () |
double & | z0 () |
double & | tanDip () |
double & | s0 () |
double | d0 () const |
double | phi0 () const |
double | p () const |
double | z0 () const |
double | tanDip () const |
double | s0 () const |
double | sinPhi0 () const |
double | cosPhi0 () const |
double | arcRatio () const |
virtual TrkParams * | clone () const |
void | printAll (std::ostream &os) const |
HepSymMatrix & | covariance () |
const HepSymMatrix & | covariance () const |
const HepSymMatrix & | weightMatrix () const |
DifArray | difParameters () const |
DifNumber | difPar (int i) const |
HepVector & | parameter () |
const HepVector & | parameter () const |
int | nPar () const |
void | print (std::ostream &os=std::cout) const |
Friends | |
class | NeutTraj |
Definition at line 19 of file NeutParams.h.
anonymous enum |
NeutParams::NeutParams | ( | const HepVector & | , | |
const HepSymMatrix & | ||||
) |
Definition at line 19 of file NeutParams.cxx.
References _nneutprm, TrkParams::covariance(), and DifIndepPar::parameter().
00019 : 00020 TrkParams(pvec,pcov){ 00021 //------------------------------------------------------------------------ 00022 00023 // Make sure the dimensions of the input matrix and vector are correct 00024 00025 if( pvec.num_row() != _nneutprm || 00026 pcov.num_row() != _nneutprm ){ 00027 cout<<"ErrMsg(error)" << 00028 "NeutParams: incorrect constructor vector/matrix dimension" << endl; 00029 parameter() = HepVector(_nneutprm,0); 00030 covariance() = HepSymMatrix(_nneutprm,0); 00031 } 00032 }
NeutParams::NeutParams | ( | double | , | |
double | , | |||
double | , | |||
double | , | |||
double | , | |||
double | ||||
) |
Definition at line 36 of file NeutParams.cxx.
References d0(), p(), phi0(), s0(), tanDip(), and z0().
00037 : 00038 //------------------------------------------------------------------------ 00039 TrkParams(_nneutprm) { 00040 d0() = n_d0; 00041 phi0() = n_phi0; 00042 p() = n_p; 00043 z0() = n_z0; 00044 s0() = n_s0; 00045 tanDip() = n_tanDip; 00046 }
NeutParams::NeutParams | ( | const NeutParams & | old | ) |
Definition at line 51 of file NeutParams.cxx.
00051 : 00052 //------------------------------------------------------------------------ 00053 TrkParams(old){ 00054 } //------------------------------------------------------------------------
NeutParams::~NeutParams | ( | ) |
double NeutParams::arcRatio | ( | ) | const |
Definition at line 71 of file NeutParams.cxx.
References _tanDip, and DifIndepPar::parameter().
00071 { 00072 //------------------------------------------------------------------------ 00073 return sqrt(1. + parameter()[_tanDip] * parameter()[_tanDip]); 00074 }
TrkParams * TrkParams::clone | ( | ) | const [virtual, inherited] |
Definition at line 45 of file TrkParams.cxx.
References TrkParams::TrkParams().
00045 { 00046 //-------------------------------------- 00047 return new TrkParams(*this); 00048 }
double NeutParams::cosPhi0 | ( | ) | const |
Definition at line 64 of file NeutParams.cxx.
References _phi0, cos(), and DifIndepPar::parameter().
00064 { 00065 //------------------------------------------------------------------------ 00066 return cos(parameter()[_phi0]); 00067 }
const HepSymMatrix& TrkParams::covariance | ( | ) | const [inline, inherited] |
Reimplemented from DifIndepPar.
Definition at line 45 of file TrkParams.h.
References DifIndepPar::covariance().
00045 { return DifIndepPar::covariance(); }
HepSymMatrix & TrkParams::covariance | ( | ) | [inline, inherited] |
Reimplemented from DifIndepPar.
Definition at line 54 of file TrkParams.h.
References TrkParams::_weightInverted, DifIndepPar::covariance(), and false.
Referenced by TrkMomCalculator::calcCurvAllCovs(), TrkSimpTraj::changePoint(), TrkHelixFitter::fit(), TrkLineRep::helix(), TrkHelixRep::helix(), TrkCircleRep::helix(), TrkSimpTraj::invert(), NeutParams(), TrkParams::operator=(), TrkHelixRep::resid(), and TrkParams::weightMatrix().
00055 { 00056 _weightInverted=false ; 00057 return DifIndepPar::covariance(); 00058 }
double NeutParams::d0 | ( | ) | const [inline] |
double& NeutParams::d0 | ( | ) | [inline] |
Definition at line 37 of file NeutParams.h.
References _d0, and DifIndepPar::parameter().
Referenced by NeutTraj::d0(), and NeutParams().
DifNumber DifIndepPar::difPar | ( | int | i | ) | const [inherited] |
Definition at line 63 of file DifIndepPar.cxx.
References DifIndepPar::parvec.
Referenced by TrkMomCalculator::calcNeutAllCovs(), TrkMomCalculator::calcNeutAllWeights(), TrkMomCalculator::calcNeutErrMom(), TrkMomCalculator::calcNeutPosmomCov(), and DifIndepPar::difParameters().
DifArray DifIndepPar::difParameters | ( | ) | const [inherited] |
Definition at line 44 of file DifIndepPar.cxx.
References DifIndepPar::difPar(), genRecEmupikp::i, and DifIndepPar::nPar().
00044 { 00045 DifArray pars(nPar(),nPar()); 00046 for(int i=1; i<=nPar(); i++){ 00047 pars(i)=difPar(i); 00048 } 00049 return pars; 00050 }
int DifIndepPar::nPar | ( | ) | const [inline, inherited] |
Definition at line 55 of file DifIndepPar.h.
References DifIndepPar::parvec.
Referenced by DifIndepPar::difParameters(), TrkSimpTraj::invert(), TrkSimpleRep::nDof(), TrkSimpTraj::nPar(), and NeutTraj::nPar().
00055 {return parvec.num_row();}
double NeutParams::p | ( | ) | const [inline] |
double& NeutParams::p | ( | ) | [inline] |
Definition at line 39 of file NeutParams.h.
References _p, and DifIndepPar::parameter().
Referenced by NeutParams(), and NeutTraj::p().
const HepVector& DifIndepPar::parameter | ( | ) | const [inline, inherited] |
HepVector& DifIndepPar::parameter | ( | ) | [inline, inherited] |
Definition at line 51 of file DifIndepPar.h.
References DifIndepPar::parvec.
Referenced by arcRatio(), TrkMomCalculator::calcCurvAllCovs(), TrkMomCalculator::calcCurvAllWeights(), TrkSimpTraj::changePoint(), TrkMomCalculator::charge(), cosPhi0(), TrkDifLineTraj::d0(), TrkCircleTraj::d0(), d0(), HelixTraj::d0(), TrkHelixFitter::fit(), HelixTraj::getInfo(), TrkHelixRep::helix(), HelixTraj::HelixTraj(), TrkDifLineTraj::invertParams(), TrkCircleTraj::invertParams(), HelixTraj::invertParams(), NeutParams(), TrkCircleTraj::omega(), HelixTraj::omega(), TrkParams::operator=(), TrkSimpTraj::operator==(), p(), phi0(), HelixTraj::position(), TrkMomCalculator::ptMom(), TrkHelixRep::resid(), s0(), sinPhi0(), TrkDifLineTraj::tanDip(), tanDip(), HelixTraj::tanDip(), TrkCircleTraj::TrkCircleTraj(), TrkHitOnTrk::TrkHitOnTrk(), TrkMomCalculator::vecMom(), TrkDifLineTraj::z0(), z0(), and HelixTraj::z0().
00051 { return parvec;}
double NeutParams::phi0 | ( | void | ) | const [inline] |
double& NeutParams::phi0 | ( | void | ) | [inline] |
Definition at line 38 of file NeutParams.h.
References _phi0, and DifIndepPar::parameter().
Referenced by NeutParams().
void DifIndepPar::print | ( | std::ostream & | os = std::cout |
) | const [inherited] |
void TrkParams::printAll | ( | std::ostream & | os | ) | const [inherited] |
Reimplemented from DifIndepPar.
double NeutParams::s0 | ( | ) | const [inline] |
double& NeutParams::s0 | ( | ) | [inline] |
Definition at line 42 of file NeutParams.h.
References _s0, and DifIndepPar::parameter().
Referenced by NeutParams(), and NeutTraj::s0().
double NeutParams::sinPhi0 | ( | ) | const |
Definition at line 57 of file NeutParams.cxx.
References _phi0, DifIndepPar::parameter(), and sin().
00057 { 00058 //------------------------------------------------------------------------ 00059 return sin(parameter()[_phi0]); 00060 }
double NeutParams::tanDip | ( | ) | const [inline] |
double& NeutParams::tanDip | ( | ) | [inline] |
Definition at line 41 of file NeutParams.h.
References _tanDip, and DifIndepPar::parameter().
Referenced by NeutParams(), and NeutTraj::tanDip().
const HepSymMatrix & TrkParams::weightMatrix | ( | ) | const [inherited] |
Definition at line 75 of file TrkParams.cxx.
References TrkParams::_weightInverted, TrkParams::_weightMatrix, and TrkParams::covariance().
Referenced by TrkMomCalculator::calcCurvAllWeights().
00075 { 00076 00077 if (!_weightInverted){ 00078 _weightMatrix = covariance(); 00079 int invStatus; 00080 _weightMatrix.invert(invStatus); 00081 _weightInverted = true; 00082 } 00083 return _weightMatrix; 00084 00085 }
double NeutParams::z0 | ( | ) | const [inline] |
double& NeutParams::z0 | ( | ) | [inline] |
Definition at line 40 of file NeutParams.h.
References _z0, and DifIndepPar::parameter().
Referenced by NeutParams(), and NeutTraj::z0().
friend class NeutTraj [friend] |
Definition at line 21 of file NeutParams.h.