]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDtimeBin.h
set magnetic field for tracks
[u/mrichter/AliRoot.git] / TRD / AliTRDtimeBin.h
index 01ff9e5f54bccf79f7b5bae157cbecac88a4a748..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 {
 
@@ -21,7 +26,7 @@ public:
 
   AliTRDtimeBin();
   virtual ~AliTRDtimeBin() { };
-  void InsertCluster(AliTRDcluster*,UInt_t);
+  void InsertCluster(AliTRDcluster *c, UInt_t index);
  
   operator Int_t() const {return fN;}
   AliTRDcluster* operator[](Int_t i);
@@ -30,10 +35,12 @@ public:
   Int_t Find(Double_t y) const; 
 
 protected:
+
+  enum { kMaxClusterPerTimeBin=3500 };
  
-   UInt_t 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