make AliVVevent abstract (=0)
[u/mrichter/AliRoot.git] / HLT / global / AliFlatExternalTrackParam.h
CommitLineData
251a2c81 1#ifndef ALIFLATEXTERNALTRACKPARAM_H
2#define ALIFLATEXTERNALTRACKPARAM_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice *
6 * Primary Authors : Sergey Gorbunov, Jochen Thaeder, Chiara Zampolli */
7
8/**
9 * >> Flat structure representing parameters of an external track <<
10 */
11
12#include "Rtypes.h"
f009a562 13#include "AliFlatESDMisc.h"
14
251a2c81 15
488be202 16class AliFlatExternalTrackParam
251a2c81 17{
f009a562 18 public:
6a225ffa 19 AliFlatExternalTrackParam() {}
8fcd8556 20 virtual ~AliFlatExternalTrackParam() {}
251a2c81 21 Float_t fAlpha; // azimuthal angle of reference frame
22 Float_t fX; // x: radial distance
23 Float_t fY; // local Y-coordinate of a track (cm)
24 Float_t fZ; // local Z-coordinate of a track (cm)
25 Float_t fSnp; // local sine of the track momentum azimuthal angle
26 Float_t fTgl; // tangent of the track momentum dip angle
27 Float_t fSigned1Pt; // 1/pt (1/(GeV/c))
28 Float_t fC[15]; // covariance matrix
29
30 void SetAlpha(Float_t alpha) {fAlpha = alpha;}
31 void SetX(Float_t x) {fX = x;}
32 void SetY(Float_t y) {fY = y;}
33 void SetZ(Float_t z) {fZ = z;}
34 void SetSnp(Float_t snp) {fSnp = snp;}
35 void SetTgl(Float_t tgl) {fTgl = tgl;}
36 void SetSigned1Pt(Float_t signed1Pt) {fSigned1Pt = signed1Pt;}
37 void SetCovEntry(Int_t idx, Float_t cov) {(idx >= 0 && idx < 15) ? fC[idx] = cov : 0.;}
ec9af14e 38
39 void Reinitialize(){
40 new (this) AliFlatExternalTrackParam(AliFlatESDReinitialize);
41 }
251a2c81 42
43 Float_t GetAlpha() const {return fAlpha;}
44 Float_t GetX() const {return fX;}
45 Float_t GetY() const {return fY;}
46 Float_t GetZ() const {return fZ;}
47 Float_t GetSnp() const {return fSnp;}
48 Float_t GetTgl() const {return fTgl;}
49 Float_t GetSigned1Pt() const {return fSigned1Pt;}
50 Float_t* GetCov() const {return const_cast<Float_t*>(fC);}
51 Float_t GetCovEntry(Int_t idx) const {return (idx >= 0 && idx < 15) ? fC[idx] : 0.;}
f009a562 52
53 private:
ec9af14e 54 AliFlatExternalTrackParam(AliFlatESDSpecialConstructorFlag){}
251a2c81 55};
56
8fcd8556 57//typedef struct AliFlatExternalTrackParam AliFlatExternalTrackParam;
251a2c81 58
59#endif