]>
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 | |
26 | Float_t &Y(){ return fY; } | |
27 | Float_t &Z(){ return fZ; } | |
28 | Float_t &ErrY(){ return fErrY; } | |
29 | Float_t &ErrZ(){ return fErrZ; } | |
30 | ||
31 | Int_t &ID(){ return fID; } | |
32 | ||
33 | void Set( Int_t ID, Double_t Y, Double_t Z, | |
34 | Double_t ErrY, Double_t ErrZ ); | |
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 | |
326c2d4b | 45 | |
46 | ClassDef(AliHLTTPCCAHit,1); | |
47 | }; | |
48 | ||
49 | ||
dc4788ec | 50 | |
51 | inline void AliHLTTPCCAHit::Set( Int_t ID, Double_t Y, Double_t Z, | |
52 | Double_t ErrY, Double_t ErrZ ) | |
53 | { | |
54 | //* set parameters | |
55 | fID = ID; | |
56 | fY = Y; | |
57 | fZ = Z; | |
58 | fErrY = ErrY; | |
59 | fErrZ = ErrZ; | |
60 | } | |
61 | ||
62 | ||
326c2d4b | 63 | #endif |