]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFClusterFinder.h
Adding a reminder for coders
[u/mrichter/AliRoot.git] / TOF / AliTOFClusterFinder.h
index e46c1beca7d9888ec4c30e426efe26510d7c37d0..3be1b715d66e4df7613e63e50081463232dbe595 100644 (file)
@@ -6,7 +6,7 @@
 // Task: Transform digits/raw data to TOF Clusters, to fill TOF RecPoints
 // and feed TOF tracking 
 
-#include "TObject.h"
+#include "TTask.h"
 
 #include "AliTOFRawStream.h"
 
@@ -22,7 +22,7 @@ class AliTOFGeometry;
 class AliTOFcluster;
 class AliTOFcalib;
 
-class AliTOFClusterFinder : public TObject
+class AliTOFClusterFinder : public TTask
 {
 
   enum {kTofMaxCluster=77777}; //maximal number of the TOF clusters
@@ -49,8 +49,8 @@ class AliTOFClusterFinder : public TObject
   void UnLoadClusters();
   void SetVerbose(Int_t Verbose){fVerbose=Verbose;} // To set the verbose level
   void SetDecoderVersion(Int_t version){fDecoderVersion=version;} // To set the decoder version
-  Bool_t GetDecoderVersion() const {return fDecoderVersion;} // To get the decoder version
-  UShort_t  GetClusterVolIndex(Int_t *ind) const; //Volume Id getter
+  Int_t GetDecoderVersion() const {return fDecoderVersion;} // To get the decoder version
+  UShort_t  GetClusterVolIndex(const Int_t * const ind) const; //Volume Id getter
   void GetClusterPars(Int_t *ind, Double_t *pos, Double_t *cov) const; //cluster par getter
 
  protected:
@@ -73,17 +73,15 @@ class AliTOFClusterFinder : public TObject
   //Int_t InsertCluster(Int_t *aa, Double_t *bb, Int_t *cc, Int_t d); // Fills TofClusters Array
   Int_t InsertCluster(AliTOFcluster *tofCluster);    // Fills TofClusters Array
   Int_t FindClusterIndex(Double_t z) const; // Returns cluster index 
-  void  CalibrateRecPoint(); // Apply calibration pars to Clusters
+  void  CalibrateRecPoint(UInt_t timestamp = 0); // Apply calibration pars to Clusters
 
   Int_t fVerbose;           // Verbose level (0:no msg,
                             //  1:msg, 2:digits in txt files)
-  Bool_t fDecoderVersion;   //setting whether to use the new decoder version 
-                            // -true -> new version
-                            // -false ->old version  (default value!!)
+  Int_t fDecoderVersion;   //setting whether to use the new decoder version 
   AliTOFcalib *fTOFcalib;         // pointer to the TOF calibration info
   AliTOFRawStream fTOFRawStream; // AliTOFRawStream variable
 
-  ClassDef(AliTOFClusterFinder,5) // To run TOF clustering
+  ClassDef(AliTOFClusterFinder,6) // To run TOF clustering
 };
 #endif