]>
Commit | Line | Data |
---|---|---|
326c2d4b | 1 | //-*- Mode: C++ -*- |
2 | // @(#) $Id$ | |
3 | ||
4 | //* This file is property of and copyright by the ALICE HLT Project * | |
5 | //* ALICE Experiment at CERN, All rights reserved. * | |
6 | //* See cxx source for full Copyright notice * | |
7 | ||
8 | #ifndef ALIHLTTPCCAHIT_H | |
9 | #define ALIHLTTPCCAHIT_H | |
10 | ||
326c2d4b | 11 | #include "Rtypes.h" |
12 | ||
13 | /** | |
14 | * @class AliHLTTPCCAHit | |
dc4788ec | 15 | * |
16 | * The AliHLTTPCCAHit class is the internal representation | |
17 | * of the TPC clusters for the AliHLTTPCCATracker algorithm. | |
18 | * | |
326c2d4b | 19 | */ |
20 | class AliHLTTPCCAHit | |
21 | { | |
22 | public: | |
23 | AliHLTTPCCAHit(): fY(0),fZ(0),fErrY(0),fErrZ(0),fID(0){;} | |
dc4788ec | 24 | virtual ~AliHLTTPCCAHit(){} |
326c2d4b | 25 | |
d54804bf | 26 | Float_t &Y() { return fY; } |
27 | Float_t &Z() { return fZ; } | |
326c2d4b | 28 | Float_t &ErrY(){ return fErrY; } |
29 | Float_t &ErrZ(){ return fErrZ; } | |
30 | ||
31 | Int_t &ID(){ return fID; } | |
32 | ||
d54804bf | 33 | void Set( Int_t id, Float_t y, Float_t z, |
34 | Float_t errY, Float_t errZ ); | |
326c2d4b | 35 | |
326c2d4b | 36 | protected: |
dc4788ec | 37 | |
326c2d4b | 38 | Float_t fY, fZ; // Y and Z position of the TPC cluster |
39 | Float_t fErrY, fErrZ; // position errors | |
dc4788ec | 40 | Int_t fID; // external unique ID of this hit, |
326c2d4b | 41 | // used as cluster index in track->hit reference array |
dc4788ec | 42 | private: |
43 | ||
44 | void Dummy(); // to make rulechecker happy by having something in .cxx file | |
d54804bf | 45 | |
326c2d4b | 46 | }; |
47 | ||
48 | ||
dc4788ec | 49 | |
d54804bf | 50 | inline void AliHLTTPCCAHit::Set( Int_t id, Float_t y, Float_t z, |
51 | Float_t errY, Float_t errZ ) | |
dc4788ec | 52 | { |
53 | //* set parameters | |
d54804bf | 54 | fID = id; |
55 | fY = y; | |
56 | fZ = z; | |
57 | fErrY = errY; | |
58 | fErrZ = errZ; | |
dc4788ec | 59 | } |
60 | ||
61 | ||
326c2d4b | 62 | #endif |