BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/MdcPatRec/TrkBase/include/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
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 _weightInverted = false;
57}
58
59#endif
TrkParams(int nParam)
TrkParams(const HepVector &, const HepSymMatrix &)
virtual ~TrkParams()
TrkParams(const TrkParams &)
virtual TrkParams * clone() const
HepSymMatrix & covariance()
void printAll(std::ostream &os) const
TrkParams & operator=(const TrkParams &)
const HepSymMatrix & weightMatrix() const