BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
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
24
25template <class T> class ComPackBase;
26class ComPackExpFloat;
29
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_
43 TrkExchangePar* exchange() const;
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
unsigned short d_UShort
Definition: BesODMGTypes.h:95
friend class TrkExchangeDataK
TrkExchangeData & operator=(const TrkExchangeData &)
TrkExchangePar * exchange() const
const d_UShort & parameters(int index) const