]>
Commit | Line | Data |
---|---|---|
93ce7d1b | 1 | //-*- Mode: C++ -*- |
2 | // $Id$ | |
3 | ||
d679dd6c | 4 | #ifndef ALIHLTTRDCLUSTER_H |
5 | #define ALIHLTTRDCLUSTER_H | |
93ce7d1b | 6 | //* This file is property of and copyright by the ALICE HLT Project * |
7 | //* ALICE Experiment at CERN, All rights reserved. * | |
8 | //* See cxx source for full Copyright notice * | |
d679dd6c | 9 | |
196a8c4f | 10 | /** @file AliHLTTRDCluster.h |
11 | @author Thedoor Rascanu | |
12 | @date | |
13 | @brief A datacontainer for clusters fitting component for the HLT. | |
14 | */ | |
15 | ||
d679dd6c | 16 | #include "AliTRDcluster.h" |
17 | #include "AliHLTDataTypes.h" | |
18 | ||
19 | class AliHLTTRDCluster | |
20 | { | |
196a8c4f | 21 | public: |
d679dd6c | 22 | AliHLTTRDCluster(); |
93ce7d1b | 23 | AliHLTTRDCluster(const AliTRDcluster* const inCluster); |
24 | void ExportTRDCluster(AliTRDcluster* const outCluster) const; | |
196a8c4f | 25 | static AliHLTUInt32_t SaveAt(AliHLTUInt8_t *const block, const AliTRDcluster* const inClust); |
26 | static AliHLTUInt32_t LoadFrom(AliTRDcluster *const outClust, const AliHLTUInt8_t *const block); | |
d679dd6c | 27 | |
196a8c4f | 28 | private: |
d679dd6c | 29 | // From AliTRDcluster |
196a8c4f | 30 | UInt_t fSignals; // Signals in the cluster |
0fae33c8 | 31 | |
32 | UChar_t fPadCol; // Central pad number in column direction | |
33 | UChar_t fPadRow; // Central pad number in row direction | |
34 | UChar_t fPadTime; // Uncalibrated time bin number | |
0fae33c8 | 35 | UChar_t fBits; // Bits of the cluster |
196a8c4f | 36 | }; |
37 | ||
38 | class AliHLTTRDExtCluster: public AliHLTTRDCluster | |
39 | { | |
40 | public: | |
41 | AliHLTTRDExtCluster(); | |
42 | AliHLTTRDExtCluster(const AliTRDcluster* const inCluster); | |
43 | void ExportTRDCluster(AliTRDcluster* const outCluster) const; | |
44 | void Print() const; | |
93ce7d1b | 45 | |
196a8c4f | 46 | private: |
47 | // From AliCluster | |
48 | Float_t fX; // X of the cluster in the tracking c.s. | |
49 | Float_t fY; // Y of the cluster in the tracking c.s. | |
50 | Float_t fZ; // Z of the cluster in the tracking c.s. | |
51 | ||
52 | // UChar_t fClusterMasking; // Bit field containing cluster status information | |
53 | // Char_t fLocalTimeBin; // T0-calibrated time bin number | |
0fae33c8 | 54 | // UChar_t fNPads; // Number of pads in cluster |
55 | // Float_t fCenter; // Center of the cluster relative to the pad | |
93ce7d1b | 56 | |
d679dd6c | 57 | }; |
58 | ||
196a8c4f | 59 | struct AliHLTTRDClustersArray { |
60 | #ifdef HAVE_NOT_ALITRD_RECOPARAM_r41621 | |
61 | typedef AliHLTTRDExtCluster cluster_type; | |
62 | #else | |
63 | typedef AliHLTTRDCluster cluster_type; | |
64 | #endif | |
65 | AliHLTTRDClustersArray(Int_t det):fDetector(det),fCount(0){} | |
66 | Short_t fDetector; | |
67 | UShort_t fCount; | |
68 | #if defined(__HP_aCC) || defined(__DECCXX) || defined(__SUNPRO_CC) | |
69 | cluster_type fCluster[1]; | |
70 | #else | |
71 | cluster_type fCluster[]; | |
72 | #endif | |
73 | }; | |
74 | ||
d679dd6c | 75 | #endif |