]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/src/AliL3ConfMapPoint.cxx
Forgot to check in this the last time. Some changes in AliL3MemHandler as
[u/mrichter/AliRoot.git] / HLT / src / AliL3ConfMapPoint.cxx
index e212b8b3f011011ec346767e58c8faedc364d649..a2a1ff3fa0718c7fbed940e765b4fa531bde00bf 100644 (file)
@@ -1,9 +1,5 @@
-//Author: Anders Strand Vestbo
-
-//________________________________
-// AliL3ConfMapPoint
-//
-// Hit class for conformal mapper
+// Author: Anders Vestbo <mailto:vestbo$fi.uib.no>
+//*-- Copyright &copy ASV
 
 #include <iostream.h>
 #include <math.h>
 #include "AliL3Vertex.h"
 #include "AliL3ConfMapTrack.h"
 
-//ClassImp(AliL3ConfMapPoint)
+//_____________________________________________________________
+// AliL3ConfMapPoint
+//
+// Hit class for conformal mapper
+
+ClassImp(AliL3ConfMapPoint)
 
 AliL3ConfMapPoint::AliL3ConfMapPoint()
 {
@@ -38,7 +39,7 @@ AliL3ConfMapPoint::AliL3ConfMapPoint()
   SetYprimeerr(0.);
   SetIntPoint(0., 0., 0., 0., 0., 0.);
   SetShiftedCoord();
-  SetMCTrackID(0.,0.,0.);
+  SetMCTrackID(0,0,0);
 }
 
 AliL3ConfMapPoint::~AliL3ConfMapPoint()
@@ -48,6 +49,7 @@ AliL3ConfMapPoint::~AliL3ConfMapPoint()
 }
 
 Bool_t AliL3ConfMapPoint::ReadHits(AliL3SpacePointData* hits ){
+  
   SetHitNumber(hits->fID);
   SetPadRow(hits->fPadRow);
   Int_t slice = (hits->fID>>25) & 0x7f;
@@ -61,6 +63,16 @@ Bool_t AliL3ConfMapPoint::ReadHits(AliL3SpacePointData* hits ){
   return kTRUE;
 }
 
+void AliL3ConfMapPoint::Reset()
+{
+  //Reset this point.
+  SetUsage(kFALSE);
+  SetS(0);
+  nextRowHit = 0;
+  nextVolumeHit=0;
+  nextTrackHit=0;
+}
+
 void AliL3ConfMapPoint::Setup(AliL3Vertex *vertex)
 {
   //Setup. Sets the vertex, conformal coordinates, and phi and eta of each hit.