]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDtimeBin.h
Provision for empty StepManager added
[u/mrichter/AliRoot.git] / TRD / AliTRDtimeBin.h
index b0ac827287b573001eff18919ab7a3b81a9fa259..3930e081a342f445326edb54d388ad8d3f0cace1 100644 (file)
@@ -6,12 +6,17 @@
 
 /* $Id: AliTRDtimeBin.h,v */
 
+//////////////////////////////////////////////////////////////////////
+//                                                                  //
+//  Hit compression class                                           //
+//  Adapted from AliTPCTimeBin by Marian                            //
+//                                                                  //
+//////////////////////////////////////////////////////////////////////
+
 #include <TObject.h>
 
 class AliTRDcluster;
 
-const unsigned kMAX_CLUSTER_PER_TIME_BIN=3500; 
-
 //----------------------------------------------------------------- 
 class AliTRDtimeBin : public TObject {
 
@@ -20,7 +25,8 @@ class AliTRDtimeBin : public TObject {
 public: 
 
   AliTRDtimeBin();
-  void InsertCluster(AliTRDcluster*,UInt_t);
+  virtual ~AliTRDtimeBin() { };
+  void InsertCluster(AliTRDcluster *c, UInt_t index);
  
   operator Int_t() const {return fN;}
   AliTRDcluster* operator[](Int_t i);
@@ -29,10 +35,12 @@ public:
   Int_t Find(Double_t y) const; 
 
 protected:
+
+  enum { kMaxClusterPerTimeBin=3500 };
  
-   unsigned fN;
-   AliTRDcluster *fClusters[kMAX_CLUSTER_PER_TIME_BIN];
-   UInt_t fIndex[kMAX_CLUSTER_PER_TIME_BIN]; 
+   UInt_t         fN;                                 // ????
+   AliTRDcluster *fClusters[kMaxClusterPerTimeBin];   // ????
+   UInt_t         fIndex[kMaxClusterPerTimeBin];      // ????
 
   ClassDef(AliTRDtimeBin,1) // Provides tools to address clusters which lay within one time bin