Added function UpdateRowPointer
authorvestbo <vestbo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 12 Oct 2001 15:16:21 +0000 (15:16 +0000)
committervestbo <vestbo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 12 Oct 2001 15:16:21 +0000 (15:16 +0000)
HLT/src/AliL3MemHandler.cxx
HLT/src/AliL3MemHandler.h

index 2b65935e2266c872e3a25335cb3cf6276fb137b9..e02bdda59dbef019454152796f59a81b973a37a2 100644 (file)
@@ -1098,3 +1098,12 @@ Bool_t AliL3MemHandler::Memory2TrackArray(UInt_t ntrack,AliL3TrackSegmentData *d
   return kTRUE;
 }
 
+void AliL3MemHandler::UpdateRowPointer(AliL3DigitRowData *&tempPt)
+{
+  //Update the data pointer to the next padrow
+  
+  Byte_t *tmp = (Byte_t*)tempPt;
+  Int_t size = sizeof(AliL3DigitRowData) + tempPt->fNDigit*sizeof(AliL3DigitData);
+  tmp += size;
+  tempPt = (AliL3DigitRowData*)tmp;
+}
index 4e21b78c66c242fac6615086ebcc9eeb128fef20..0656d11723bf6acc6a5694c6fb3e15a026eb23e5 100644 (file)
@@ -60,7 +60,7 @@ class AliL3MemHandler{
   
   void Reset(){CloseBinaryInput();CloseBinaryOutput();Free();}  
   void Init(AliL3Transform *t){fTransformer = t;}
-  void Init(Int_t s,Int_t p,Int_t* row){fSlice=s;fPatch=p;fRowMin=row[0];fRowMax=row[1]; ResetROI();}
+  void Init(Int_t s,Int_t p,const Int_t* row){fSlice=s;fPatch=p;fRowMin=row[0];fRowMax=row[1]; ResetROI();}
 
   Bool_t SetBinaryInput(char *name);
   Bool_t SetBinaryInput(FILE *file);
@@ -100,7 +100,8 @@ class AliL3MemHandler{
   Bool_t Binary2Memory(UInt_t & npoint,AliL3SpacePointData *data);
   Bool_t Transform(UInt_t npoint,AliL3SpacePointData *data,
                               Int_t slice, AliL3Transform* trans);
-
+  void UpdateRowPointer(AliL3DigitRowData *&tempPt);
+  
   //Track IO
   Bool_t Memory2Binary(UInt_t ntrack,AliL3TrackSegmentData *data);
   Bool_t Binary2Memory(UInt_t & ntrack,AliL3TrackSegmentData *data);
@@ -111,8 +112,9 @@ class AliL3MemHandler{
   Bool_t Memory2TrackArray(UInt_t ntrack,AliL3TrackSegmentData *data,
                                              AliL3TrackArray *array);
   Bool_t Memory2TrackArray(UInt_t ntrack,AliL3TrackSegmentData *data,
-                   AliL3TrackArray *array,Int_t slice, AliL3Transform* trans);
-
+                          AliL3TrackArray *array,Int_t slice, AliL3Transform* trans);
+  
+  
   //Memory Allocation
   UInt_t GetAllocatedSize(){return fSize;}  
   UInt_t GetFileSize();