* provided "as is" without express or implied warranty. *
**************************************************************************/
-/*
-$Log$
-Revision 1.5 2001/11/24 16:10:22 kowal2
-Faster algorithms.
-
-Revision 1.4 2000/10/05 16:01:49 kowal2
-Corrected for memory leaks.
-
-Revision 1.3 2000/06/30 12:07:49 kowal2
-Updated from the TPC-PreRelease branch
-
-Revision 1.2.4.3 2000/06/26 07:39:42 kowal2
-Changes to obey the coding rules
-
-Revision 1.2.4.2 2000/06/25 08:38:41 kowal2
-Splitted from AliTPCtracking
-
-Revision 1.2.4.1 2000/06/14 16:45:13 kowal2
-Improved algorithms. Compiler warnings removed.
-
-Revision 1.2 2000/04/17 09:37:33 kowal2
-removed obsolete AliTPCDigitsDisplay.C
-
-Revision 1.1.4.2 2000/04/10 11:37:42 kowal2
-
-Digits handling in a new data structure
-
-*/
-
-//
+/* $Id$ */
///////////////////////////////////////////////////////////////////////////////
// //
// Alice segment manager object //
-//
-// AliSimDigits object (derived from AliDigits) //
+// AliSimDigits object (derived from AliDigits) //
// provide additional track information to digit //
-//
-// Origin: Marian Ivanov GSI Darmstadt //
-//
+// Origin: Marian Ivanov GSI Darmstadt //
+// //
// //
-// //
///////////////////////////////////////////////////////////////////////////////
#include "TClass.h"
-#include <iostream.h>
+#include <Riostream.h>
#include "TError.h"
#include "AliSegmentID.h"
#include "AliH2F.h"
#include "AliArrayS.h"
#include "AliDigits.h"
#include "AliSimDigits.h"
-#include "AliTPC.h"
+#include "AliTPCdigit.h"
#include <TClonesArray.h>
id = fTracks->At(i);
}
id-=2;
- if ( (row>=rowold) && (row<=rownew) ) return id;
+ if ( (row>=rowold) && (row<rownew) ) return id;
if (row < rownew ) return -2; //empty track
}
return -2;
Int_t num = fTracks->At(i);
if (num<0) row-=num; //negative number mean number of zeroes (no tracks of gibven level no need to write to array)
else {
+ num %= 10000000; //PH: take into account the case of underlying events
i++;
Int_t id = fTracks->At(i);
for (j = 0; j<num; j++,row++) (*buf)[level*all+col*fNrows+row]=id;
}
-Int_t AliSimDigits::GetTrackID2(Int_t row, Int_t column, Int_t level)
+Int_t AliSimDigits::GetTrackID2(Int_t /*row*/, Int_t /*column*/, Int_t /*level*/)
{
//returnb track id of digits - for buffer compresion 2
return -2;
dig.fSignal= amp;
dig.fPadRow =fSegmentID;
dig.fSector =fSegmentID;
- dig.fTracks[0]= GetTrackID(row,col,0);
- dig.fTracks[1]= GetTrackID(row,col,1);
- dig.fTracks[2]= GetTrackID(row,col,2);
+ dig.GetTracks()[0]= GetTrackID(row,col,0);
+ dig.GetTracks()[1]= GetTrackID(row,col,1);
+ dig.GetTracks()[2]= GetTrackID(row,col,2);
TClonesArray &ldigits = *digits;
new(ldigits[index++]) AliTPCdigit(dig);
}