]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/TPCLib/tracking-ca/AliHLTTPCCARow.h
- a patch to be able to load the CUDA library at runtime and only when available.
[u/mrichter/AliRoot.git] / HLT / TPCLib / tracking-ca / AliHLTTPCCARow.h
CommitLineData
326c2d4b 1//-*- Mode: C++ -*-
2// @(#) $Id$
ce565086 3// ************************************************************************
fbb9b71b 4// This file is property of and copyright by the ALICE HLT Project *
ce565086 5// ALICE Experiment at CERN, All rights reserved. *
6// See cxx source for full Copyright notice *
7// *
8//*************************************************************************
326c2d4b 9
10#ifndef ALIHLTTPCCAROW_H
11#define ALIHLTTPCCAROW_H
12
00d07bcd 13#include "AliHLTTPCCADef.h"
14#include "AliHLTTPCCAGrid.h"
326c2d4b 15
16/**
17 * @class ALIHLTTPCCARow
dc4788ec 18 *
19 * The ALIHLTTPCCARow class is a hit and cells container for one TPC row.
20 * It is the internal class of the AliHLTTPCCATracker algorithm.
21 *
326c2d4b 22 */
23class AliHLTTPCCARow
24{
4acc2401 25 friend class AliHLTTPCCASliceData;
fbb9b71b 26 public:
326c2d4b 27
00d07bcd 28#if !defined(HLTCA_GPUCODE)
fbb9b71b 29 AliHLTTPCCARow();
31649d4b 30#endif //!HLTCA_GPUCODE
326c2d4b 31
fbb9b71b 32 GPUhd() int NHits() const { return fNHits; }
33 GPUhd() float X() const { return fX; }
34 GPUhd() float MaxY() const { return fMaxY; }
35 GPUhd() const AliHLTTPCCAGrid &Grid() const { return fGrid; }
693d2443 36
4acc2401 37 GPUhd() float Hy0() const { return fHy0; }
38 GPUhd() float Hz0() const { return fHz0; }
39 GPUhd() float HstepY() const { return fHstepY; }
40 GPUhd() float HstepZ() const { return fHstepZ; }
41 GPUhd() float HstepYi() const { return fHstepYi; }
42 GPUhd() float HstepZi() const { return fHstepZi; }
43 GPUhd() int FullSize() const { return fFullSize; }
44 GPUhd() int HitNumberOffset() const { return fHitNumberOffset; }
45 GPUhd() unsigned int FirstHitInBinOffset() const { return fFirstHitInBinOffset; }
d54804bf 46
fbb9b71b 47 private:
fbb9b71b 48 int fNHits; // number of hits
49 float fX; // X coordinate of the row
50 float fMaxY; // maximal Y coordinate of the row
51 AliHLTTPCCAGrid fGrid; // grid of hits
00d07bcd 52
4acc2401 53 // hit packing:
54 float fHy0; // offset
55 float fHz0; // offset
56 float fHstepY; // step size
57 float fHstepZ; // step size
58 float fHstepYi; // inverse step size
59 float fHstepZi; // inverse step size
326c2d4b 60
4acc2401 61 int fFullSize; // size of this row in Tracker::fRowData
62 int fHitNumberOffset; // index of the first hit in the hit array, used as
63 // offset in AliHLTTPCCASliceData::LinkUp/DownData/HitDataY/...
64 unsigned int fFirstHitInBinOffset; // offset in Tracker::fRowData to find the FirstHitInBin
326c2d4b 65};
66
31649d4b 67#endif //ALIHLTTPCCAROW_H