TrkParams Class Reference

#include <TrkParams.h>

Inheritance diagram for TrkParams:

DifIndepPar NeutParams List of all members.

Public Member Functions

 TrkParams (int nParam)
 TrkParams (const HepVector &, const HepSymMatrix &)
 TrkParams (const TrkParams &)
TrkParamsoperator= (const TrkParams &)
virtual TrkParamsclone () const
virtual ~TrkParams ()
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

Private Attributes

bool _weightInverted
HepSymMatrix _weightMatrix

Detailed Description

Definition at line 24 of file TrkParams.h.


Constructor & Destructor Documentation

TrkParams::TrkParams ( int  nParam  ) 

Definition at line 21 of file TrkParams.cxx.

Referenced by clone().

00021                              :   DifIndepPar(ndim), _weightInverted(false)
00022 //--------------------------------------
00023 {
00024 }

TrkParams::TrkParams ( const HepVector &  ,
const HepSymMatrix &   
)

Definition at line 28 of file TrkParams.cxx.

00028                                                                    :
00029   DifIndepPar(pvec, pcov), _weightInverted(false)
00030 //--------------------------------------
00031 {
00032         
00033 }

TrkParams::TrkParams ( const TrkParams  ) 

Definition at line 37 of file TrkParams.cxx.

00037                                          :
00038   DifIndepPar(old), _weightInverted(old._weightInverted), _weightMatrix(old._weightMatrix)
00039 //--------------------------------------
00040 {}

TrkParams::~TrkParams (  )  [virtual]

Definition at line 51 of file TrkParams.cxx.

00051 {}


Member Function Documentation

TrkParams * TrkParams::clone (  )  const [virtual]

Definition at line 45 of file TrkParams.cxx.

References TrkParams().

00045                        {
00046 //--------------------------------------
00047   return new TrkParams(*this);
00048 }

const HepSymMatrix& TrkParams::covariance (  )  const [inline]

Reimplemented from DifIndepPar.

Definition at line 45 of file TrkParams.h.

References DifIndepPar::covariance().

00045 { return DifIndepPar::covariance(); }

HepSymMatrix & TrkParams::covariance (  )  [inline]

Reimplemented from DifIndepPar.

Definition at line 54 of file TrkParams.h.

References _weightInverted, DifIndepPar::covariance(), and false.

Referenced by TrkMomCalculator::calcCurvAllCovs(), TrkSimpTraj::changePoint(), TrkHelixFitter::fit(), TrkLineRep::helix(), TrkHelixRep::helix(), TrkCircleRep::helix(), TrkSimpTraj::invert(), NeutParams::NeutParams(), operator=(), TrkHelixRep::resid(), and weightMatrix().

00055 {
00056   _weightInverted=false ; 
00057   return DifIndepPar::covariance();
00058 }

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().

00063                                        {
00064   return DifNumber(parvec(i),i,this);
00065 }

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();}

TrkParams & TrkParams::operator= ( const TrkParams  ) 

Definition at line 57 of file TrkParams.cxx.

References _weightInverted, _weightMatrix, covariance(), EvtCyclic3::other(), and DifIndepPar::parameter().

00057                                             {
00058 //--------------------------------------
00059   if (this == &other) return *this;
00060   parameter() = other.parameter();
00061   covariance() = other.covariance();
00062   _weightInverted =  other._weightInverted ;
00063   _weightMatrix = other._weightMatrix ;
00064   return *this;
00065 }

const HepVector& DifIndepPar::parameter (  )  const [inline, inherited]

Definition at line 52 of file DifIndepPar.h.

References DifIndepPar::parvec.

00052 { return parvec;}

HepVector& DifIndepPar::parameter (  )  [inline, inherited]

Definition at line 51 of file DifIndepPar.h.

References DifIndepPar::parvec.

Referenced by NeutParams::arcRatio(), TrkMomCalculator::calcCurvAllCovs(), TrkMomCalculator::calcCurvAllWeights(), TrkSimpTraj::changePoint(), TrkMomCalculator::charge(), NeutParams::cosPhi0(), TrkDifLineTraj::d0(), TrkCircleTraj::d0(), NeutParams::d0(), HelixTraj::d0(), TrkHelixFitter::fit(), HelixTraj::getInfo(), TrkHelixRep::helix(), HelixTraj::HelixTraj(), TrkDifLineTraj::invertParams(), TrkCircleTraj::invertParams(), HelixTraj::invertParams(), NeutParams::NeutParams(), TrkCircleTraj::omega(), HelixTraj::omega(), operator=(), TrkSimpTraj::operator==(), NeutParams::p(), NeutParams::phi0(), HelixTraj::position(), TrkMomCalculator::ptMom(), TrkHelixRep::resid(), NeutParams::s0(), NeutParams::sinPhi0(), TrkDifLineTraj::tanDip(), NeutParams::tanDip(), HelixTraj::tanDip(), TrkCircleTraj::TrkCircleTraj(), TrkHitOnTrk::TrkHitOnTrk(), TrkMomCalculator::vecMom(), TrkDifLineTraj::z0(), NeutParams::z0(), and HelixTraj::z0().

00051 { return parvec;}

void DifIndepPar::print ( std::ostream os = std::cout  )  const [inherited]

void TrkParams::printAll ( std::ostream os  )  const

Reimplemented from DifIndepPar.

const HepSymMatrix & TrkParams::weightMatrix (  )  const

Definition at line 75 of file TrkParams.cxx.

References _weightInverted, _weightMatrix, and 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 }


Member Data Documentation

bool TrkParams::_weightInverted [mutable, private]

Definition at line 50 of file TrkParams.h.

Referenced by covariance(), operator=(), and weightMatrix().

HepSymMatrix TrkParams::_weightMatrix [mutable, private]

Definition at line 51 of file TrkParams.h.

Referenced by operator=(), and weightMatrix().


Generated on Tue Nov 29 23:36:15 2016 for BOSS_7.0.2 by  doxygen 1.4.7