]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/TPCLib/tracking-ca/AliHLTTPCCAHit.h
When Pt is bad defined (ex. no field), the multiple scattering effect is calculated...
[u/mrichter/AliRoot.git] / HLT / TPCLib / tracking-ca / AliHLTTPCCAHit.h
index f414bea564bdb1250e1ad111a152d97162d8c5e5..f010439c884579cb804e646ccdaa5ffe0bd774de 100644 (file)
@@ -1,14 +1,16 @@
 //-*- Mode: C++ -*-
 // @(#) $Id$
-
-//* This file is property of and copyright by the ALICE HLT Project        * 
-//* ALICE Experiment at CERN, All rights reserved.                         *
-//* See cxx source for full Copyright notice                               *
+// ************************************************************************
+// This file is property of and copyright by the ALICE HLT Project        *
+// ALICE Experiment at CERN, All rights reserved.                         *
+// See cxx source for full Copyright notice                               *
+//                                                                        *
+//*************************************************************************
 
 #ifndef ALIHLTTPCCAHIT_H
 #define ALIHLTTPCCAHIT_H
 
-#include "Rtypes.h"
+#include "AliHLTTPCCADef.h"
 
 /**
  * @class AliHLTTPCCAHit
  */
 class AliHLTTPCCAHit
 {
- public:
-  AliHLTTPCCAHit(): fY(0),fZ(0),fErrY(0),fErrZ(0),fID(0){;}
-  virtual ~AliHLTTPCCAHit(){}
-
-  Float_t &Y()   { return fY;    }
-  Float_t &Z()   { return fZ;    }
-  Float_t &ErrY(){ return fErrY; } 
-  Float_t &ErrZ(){ return fErrZ; }
-  
-  Int_t &ID(){ return fID; }
-  void Set( Int_t id, Float_t y, Float_t z, 
-           Float_t errY, Float_t errZ  );
-
- protected:
-
-  Float_t fY, fZ;       // Y and Z position of the TPC cluster
-  Float_t fErrY, fErrZ; // position errors
-  Int_t fID;            // external unique ID of this hit, 
-                        // used as cluster index in track->hit reference array
- private:
-
-  void Dummy(); // to make rulechecker happy by having something in .cxx file
-  
-};
+  public:
 
+    GPUhd() float Y() const   { return fY;    }
+    GPUhd() float Z() const  { return fZ;    }
 
+    GPUhd() void SetY( float v ) { fY = v;    }
+    GPUhd() void SetZ( float v ) { fZ = v;    }
 
-inline void AliHLTTPCCAHit::Set( Int_t id, Float_t y, Float_t z, 
-                                Float_t errY, Float_t errZ  )
-{
-  //* set parameters
-  fID = id;
-  fY = y;
-  fZ = z;
-  fErrY = errY;
-  fErrZ = errZ;
-}
+  protected:
+    float fY, fZ;       // Y and Z position of the TPC cluster
+
+};
 
 
 #endif