BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/TrkBase/TrkExchangeData.h
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// File and Version Information:
3// $Id: TrkExchangeData.h,v 1.1.1.1 2005/04/21 06:01:42 zhangy Exp $
4//
5// Description:
6// Class TrkExchangeData; a compact representation of a helix. This
7// describes only the helix parameters, not the errors
8//
9// Environment:
10// Software developed for the BaBar Detector at the SLAC B-Factory.
11//
12// Copyright Infomation;
13// Copyright (C) 2003 Lawrence Berkeley Laboratory
14//
15// Author(s): Dave Brown 07/17/03
16//
17//------------------------------------------------------------------------
18
19#ifndef TRKEXCHANGEDATA_HH
20#define TRKEXCHANGEDATA_HH
21
22#include "MdcRecoUtil/BesODMGTypes.h"
23#include "TrkBase/TrkExchangePar.h"
24
25template <class T> class ComPackBase;
26class ComPackExpFloat;
29
30class TrkExchangeData {
31public:
32// default constructor for Objectivity
34// construct from a ExchangePar
36// copy and equivalence are OK
39// NO VIRTUAL DESTRUCTOR. Yes, this is on purpose, to cut down on overhead
41// allow separate unpacking of all parameters;
42// the helix function _RETURNS OWNERSHIP_
44// access to raw data
45 const d_UShort& parameters(int index ) const {
46 return _params[index]; }
47private:
48 friend class TrkExchangeDataK;
49// array of parameter and diagonal covariance terms.
50// these are indexed by the same enum defined in TrkExchangePar.
52 static const ComPackBase<double>& paramPacker(int);
53// statics used for packing
54 static const ComPackSignedExpFloat _packd0;
55 static const ComPackSignedExpFloat _packz0;
56 static const ComPackFlatFloat _packphi0;
57 static const ComPackSignedExpFloat _packomega;
58 static const ComPackFlatFloat _packlambda;
59};
60
61#endif
TrkExchangeData(const TrkExchangePar *)
TrkExchangeData & operator=(const TrkExchangeData &)
TrkExchangeData(const TrkExchangeData &)
TrkExchangePar * exchange() const