* provided "as is" without express or implied warranty. *
**************************************************************************/
-/*
-$Log$
-Revision 1.1.2.2 2000/10/04 16:34:58 cblume
-Replace include files by forward declarations
-
-Revision 1.1.2.1 2000/09/22 14:47:52 cblume
-Add the tracking code
-
-*/
-
+/* $Id$ */
+
+//////////////////////////////////////////////////////////////////////
+// //
+// Hit compression class //
+// Adapted from AliTPCTimeBin by Marian //
+// //
+//////////////////////////////////////////////////////////////////////
+
#include "AliTRDcluster.h"
-#include "AliTRDconst.h"
#include "AliTRDtimeBin.h"
ClassImp(AliTRDtimeBin)
+//______________________________________________________
+
+ AliTRDtimeBin::AliTRDtimeBin() {
+ //default constructor
+ fN=0;
+ for (UInt_t i=0; i<kMaxClusterPerTimeBin; i++)
+ fClusters[i]=0;
+ }
//______________________________________________________
void AliTRDtimeBin::InsertCluster(AliTRDcluster* c, UInt_t index) {
// Insert cluster in TimeBin cluster array.
// Clusters are sorted according to Y coordinate.
- if (fN==kMAX_CLUSTER_PER_TIME_BIN) {
+ if (fN==kMaxClusterPerTimeBin) {
printf("AliTRDtimeBin::InsertCluster(): Too many clusters !\n");
return;
}