]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Bug fix - It should compile also on 64bit systems, however this code must be revised...
authormasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 14 Feb 2006 16:00:46 +0000 (16:00 +0000)
committermasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 14 Feb 2006 16:00:46 +0000 (16:00 +0000)
ITS/AliITSspdTestBeam.cxx
ITS/AliITSspdTestBeam.h

index 2e2b76e8a2963653817cd8dab5af36e157968905..911ef9ffd219eac4230ae8e866fe1051e0ffbb74 100644 (file)
@@ -285,13 +285,15 @@ Int_t AliITSspdTestBeam::Decode(){
     fNEvents  = fRH->GetNumberOfEvents();
     fNBrst    = fNEvents/fRH->GetBurstSize();
     fBrst     = new AliITSspdTestBeamBurst*[fNBrst];
-    fBrstSize = new Int_t*[np];
+    //orig    fBrstSize = new Int_t*[np];
+    fBrstSize = new UInt_t**[np];
     fNData    = new Int_t*[np];
     fData     = new AliITSspdTestBeamData**[np];
     fHData    = new AliITSspdTestBeamData**[np];
     fTData    = new AliITSspdTestBeamData**[np];
     for(i=0;i<np;i++){
-        fBrstSize[i] = new Int_t[fNBrst];
+      //orig        fBrstSize[i] = new Int_t[fNBrst];
+        fBrstSize[i] = new UInt_t*[fNBrst];
         fNData[i]    = new Int_t[fNEvents];
         fData[i]     = new AliITSspdTestBeamData*[fNEvents];
         fHData[i]    = new AliITSspdTestBeamData*[fNEvents];
@@ -313,9 +315,11 @@ Int_t AliITSspdTestBeam::Decode(){
         u.bt += b->SizeOf(); // increment wd byte wise
         for(ip=0;ip<np;ip++){  // loop over pilots
             // Get size of data stored for this pilot.
-            fBrstSize[ip][iburst] = (UInt_t) u.wd;
+         //orig            fBrstSize[ip][iburst] = (UInt_t) u.wd;
+           fBrstSize[ip][iburst] =  u.wd;
             u.bt += sizeof(UInt_t); // increment wd byte wise
-            for(i=0;i<fBrstSize[ip][iburst];i++){ // loop over data
+           //orig            for(i=0;i<fBrstSize[ip][iburst];i++){ // loop over data
+            for(i=0;i<(Int_t)(*fBrstSize[ip][iburst]);i++){ // loop over data
                 d = (AliITSspdTestBeamData *) u.wd;
                 switch (d->Mode()){
                 case AliITSTestBeamData::kData :
index bbbd992c62456c1dbbc1e52de13d8b538eed4377..fa9e33bf9d0d4c88fce25731b96e5c7bbb7c7503 100644 (file)
@@ -43,7 +43,8 @@ private:
     AliITSspdTestBeamHeader  *fRH;    //! Run Header
     AliITSspdTestBeamTail    *fRT;    //! Run Trailer
     Int_t                     fNBrst; //! Number of burts (size of array).
-    Int_t                   **fBrstSize; //! Size of each burst for each pilot
+    //orig    Int_t                   **fBrstSize; //! Size of each burst for each pilot
+    UInt_t                 ***fBrstSize; //! Size of each burst for each pilot
     AliITSspdTestBeamBurst  **fBrst;  //! Array of bursts.
     Int_t                   **fNData; //! array of the number of data points
     AliITSspdTestBeamData  ***fData;  //! Data