CGEM BOSS
6.6.5.g
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
22
#include "
MdcRecoUtil/BesODMGTypes.h
"
23
#include "
TrkBase/TrkExchangePar.h
"
24
25
template
<
class
T>
class
ComPackBase
;
26
class
ComPackExpFloat
;
27
class
ComPackSignedExpFloat
;
28
class
ComPackFlatFloat
;
29
30
class
TrkExchangeData
{
31
public
:
32
// default constructor for Objectivity
33
TrkExchangeData
();
34
// construct from a ExchangePar
35
TrkExchangeData
(
const
TrkExchangePar
*);
36
// copy and equivalence are OK
37
TrkExchangeData
(
const
TrkExchangeData
&);
38
TrkExchangeData
&
operator =
(
const
TrkExchangeData
&);
39
// NO VIRTUAL DESTRUCTOR. Yes, this is on purpose, to cut down on overhead
40
~TrkExchangeData
();
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]; }
47
private
:
48
friend
class
TrkExchangeDataK
;
49
// array of parameter and diagonal covariance terms.
50
// these are indexed by the same enum defined in TrkExchangePar.
51
d_UShort
_params[
TrkExchangePar::nParam
];
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
BesODMGTypes.h
d_UShort
unsigned short d_UShort
Definition:
BesODMGTypes.h:95
TrkExchangePar.h
ComPackBase
Definition:
ComPackBase.h:40
ComPackExpFloat
Definition:
ComPackExpFloat.h:35
ComPackFlatFloat
Definition:
ComPackFlatFloat.h:36
ComPackSignedExpFloat
Definition:
ComPackSignedExpFloat.h:29
TrkExchangeData
Definition:
TrkExchangeData.h:30
TrkExchangeData::TrkExchangeData
TrkExchangeData()
Definition:
TrkExchangeData.cxx:57
TrkExchangeData::TrkExchangeDataK
friend class TrkExchangeDataK
Definition:
TrkExchangeData.h:48
TrkExchangeData::operator=
TrkExchangeData & operator=(const TrkExchangeData &)
Definition:
TrkExchangeData.cxx:98
TrkExchangeData::~TrkExchangeData
~TrkExchangeData()
Definition:
TrkExchangeData.cxx:106
TrkExchangeData::exchange
TrkExchangePar * exchange() const
Definition:
TrkExchangeData.cxx:109
TrkExchangeData::parameters
const d_UShort & parameters(int index) const
Definition:
TrkExchangeData.h:45
TrkExchangePar
Definition:
TrkExchangePar.h:30
TrkExchangePar::nParam
@ nParam
Definition:
TrkExchangePar.h:32
source
Reconstruction
MdcPatRec
TrkBase
TrkBase-00-01-12
TrkBase
TrkExchangeData.h
Generated by
1.9.6