BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/TrkBase/TrkBase/TrkParams.h
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// File and Version Information:
3// $Id: TrkParams.h,v 1.1.1.1 2005/04/21 06:01:42 zhangy Exp $
4//
5// Description:
6// Class to the parameters of a track. This class should be thought
7// of as a structure, storing the data objects which together form the
8// parameter set of a track. The
9// direct use of this class will be to describe 'simple' trajectories
10// (5-parameter helix, parabolic tracks, 6 parameter helix,
11// even 9 parameter helix).
12//
13// Environment:
14// Software developed for the BaBar Detector at the SLAC B-Factory.
15//
16//--------------------------------------------------------------------------
17#ifndef TRKPARAMS_H
18#define TRKPARAMS_H
19
20#include "MdcRecoUtil/DifIndepPar.h"
21
22#include <iosfwd>
23
24class TrkParams : public DifIndepPar {
25public:
26 //**************************
27 // Constructors and such
28 //**************************
29 TrkParams(int nParam);
30 // Construct from a vector and error matrix
31 TrkParams(const HepVector&,const HepSymMatrix&);
32 // Copy constructor
33 TrkParams(const TrkParams&);
35 virtual TrkParams* clone() const;
36 virtual ~TrkParams();
37
38 //**************************
39 // access
40 //**************************
41 void printAll(std::ostream& os) const;
42
43 // overloaded to invalidate caching. dangerous because non-virtual
44 inline HepSymMatrix& covariance() ;
45 inline const HepSymMatrix& covariance() const { return DifIndepPar::covariance(); }
46
47 const HepSymMatrix& weightMatrix() const ;
48
49private:
50 mutable bool _weightInverted; //is the weight matrix cached?
51 mutable HepSymMatrix _weightMatrix; //the inverse of the weight matrix
52};
53
54inline HepSymMatrix& TrkParams::covariance()
55{
56 _weightInverted=false ;
58}
59
60#endif
61
virtual ~TrkParams()
Definition: TrkParams.cxx:51
virtual TrkParams * clone() const
Definition: TrkParams.cxx:45
void printAll(std::ostream &os) const
TrkParams & operator=(const TrkParams &)
Definition: TrkParams.cxx:57
const HepSymMatrix & weightMatrix() const
Definition: TrkParams.cxx:75
const HepSymMatrix & covariance() const