]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDtimeBin.h
Added a prototection to prevent deleting the run loader in case the getter is inoked...
[u/mrichter/AliRoot.git] / TRD / AliTRDtimeBin.h
index a02c3d82b1d7daa45ce68f32b2a91013bcf3633c..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 {
 
@@ -19,8 +24,9 @@ class AliTRDtimeBin : public TObject {
  
 public: 
 
-  AliTRDtimeBin() {fN=0;}
-  void InsertCluster(AliTRDcluster*,UInt_t);
+  AliTRDtimeBin();
+  virtual ~AliTRDtimeBin() { };
+  void InsertCluster(AliTRDcluster *c, UInt_t index);
  
   operator Int_t() const {return fN;}
   AliTRDcluster* operator[](Int_t i);
@@ -28,11 +34,13 @@ public:
 
   Int_t Find(Double_t y) const; 
 
- protected:
+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