]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFClusterFinder.h
branches
[u/mrichter/AliRoot.git] / TOF / AliTOFClusterFinder.h
index 166bc7024ce4a100f17916162e03d739b5bbb2cd..30d9c2078a06d11730a1fc20ad39b1a85dab61e6 100644 (file)
@@ -18,6 +18,7 @@ class AliRawReader;
 
 class AliTOFGeometry;
 class AliTOFcluster;
+class AliTOFcalib;
 
 class AliTOFClusterFinder : public TObject
 {
@@ -26,16 +27,18 @@ class AliTOFClusterFinder : public TObject
 
  public:
 
-  AliTOFClusterFinder();
-  AliTOFClusterFinder(AliRunLoader* runLoader);
+  AliTOFClusterFinder(AliTOFcalib *calib);
+  AliTOFClusterFinder(AliRunLoader* runLoader, AliTOFcalib *calib);
   AliTOFClusterFinder(const AliTOFClusterFinder &source); // copy constructor
   AliTOFClusterFinder& operator=(const AliTOFClusterFinder &source); // ass. op.
   virtual ~AliTOFClusterFinder();
 
+  void Digits2RecPoints(TTree* digitsTree, TTree* clusterTree);
   void Digits2RecPoints(Int_t ievt);
   void Digits2RecPoints(AliRawReader *rawReader, TTree *clustersTree);
   void Digits2RecPoints(Int_t ievt, AliRawReader *rawReader);
   void Raw2Digits(Int_t ievt, AliRawReader *rawReader); // temporary solution
+  void Raw2Digits(AliRawReader *rawReader, TTree* digitsTree); 
   void FillRecPoint();
   void ResetRecpoint();
   void Load();
@@ -45,6 +48,8 @@ class AliTOFClusterFinder : public TObject
   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
+  void GetClusterPars(Int_t *ind, Double_t *pos, Double_t *cov) const; //cluster par getter
 
  protected:
   AliRunLoader *fRunLoader;      // Pointer to Run Loader
@@ -55,7 +60,6 @@ class AliTOFClusterFinder : public TObject
 
   AliTOFcluster *fTofClusters[kTofMaxCluster];  // pointers to the TOF clusters
 
-  AliTOFGeometry  *fTOFGeometry; // Pointer to TOF geometry
   TClonesArray *fDigits;         // List of digits
   TClonesArray *fRecPoints;      // List of reconstructed points
 
@@ -73,8 +77,9 @@ class AliTOFClusterFinder : public TObject
   Bool_t fDecoderVersion;   //setting whether to use the new decoder version 
                             // -true -> new version
                             // -false ->old version  (default value!!)
+  AliTOFcalib *fTOFcalib;       // pointer to the TOF calibration info
 
-  ClassDef(AliTOFClusterFinder,2) // To run TOF clustering
+  ClassDef(AliTOFClusterFinder,4) // To run TOF clustering
 };
 #endif