]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDcluster.h
The present commit corresponds to an important change in the way the
[u/mrichter/AliRoot.git] / TRD / AliTRDcluster.h
index 062e93fc1b59582f5caceba526026b931ce36775..389e7c125b03d15e5491786d498486824f364ff0 100644 (file)
@@ -17,13 +17,10 @@ class AliTRDcluster : public AliCluster {
 
  public:
 
-  enum { kInChamber = BIT(14)
-       , kUsed      = BIT(15)
-       , kShared    = BIT(16)
-  };
-  enum { kMaskedLeft = BIT(0)
-      , kMaskedCenter= BIT(1)
-      , kMaskedRight = BIT(2)
+  enum { kInChamber = BIT(16)};
+  enum { kMaskedLeft   = 0
+       , kMaskedCenter = 1
+       , kMaskedRight  = 2
   };
 
   AliTRDcluster();
@@ -41,8 +38,8 @@ class AliTRDcluster : public AliCluster {
   Bool_t   IsEqual(const TObject *otherCluster) const;
   Bool_t   IsInChamber() const             { return TestBit(kInChamber);       }
   Bool_t   IsMasked() const                { return fClusterMasking ? kTRUE : kFALSE; }
-  Bool_t   IsShared() const                { return TestBit(kShared);          }
-  Bool_t   IsUsed() const                  { return TestBit(kUsed); }
+  Bool_t   IsShared() const                { return IsClusterShared();}
+  Bool_t   IsUsed() const                  { return IsClusterUsed(); }
 
   UChar_t  GetPadMaskedPosition() const    { return fClusterMasking & 7; }
   UChar_t  GetPadMaskedStatus() const      { return fClusterMasking >> 3; }
@@ -63,8 +60,14 @@ class AliTRDcluster : public AliCluster {
   void     SetInChamber(Bool_t in = kTRUE) { SetBit(kInChamber,in); }
   void     SetPadMaskedPosition(UChar_t position);
   void     SetPadMaskedStatus(UChar_t status);
-  void     SetShared(Bool_t sh  = kTRUE)   { SetBit(kShared,sh);    }
-  void     Use(Int_t = 0)                  { SetBit(kUsed, kTRUE);              }
+  void     SetPadCol(UChar_t inPadCol){ fPadCol = inPadCol;}
+  void     SetPadRow(UChar_t inPadRow){ fPadRow = inPadRow;}
+  void     SetPadTime(UChar_t inPadTime){ fPadTime = inPadTime;}
+  void     SetDetector(Short_t inDetector){ fDetector = inDetector;}
+  void     SetQ(Float_t inQ){ fQ = inQ;}
+  void     SetClusterMasking(UChar_t inClusterMasking){ fClusterMasking = inClusterMasking;}
+  void     SetShared(Bool_t sh  = kTRUE)   { SetBit(AliCluster::kShared,sh);    }
+  void     Use(Int_t = 0)                  { SetBit(AliCluster::kUsed, kTRUE);              }
 
   protected:
     UChar_t fPadCol;         //  Central pad number in column direction