1 #ifndef ALITOFCLUSTERFINDER_H
2 #define ALITOFCLUSTERFINDER_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
6 #include "AliRawReader.h"
17 class AliTOFClusterFinder : public TObject
20 enum {kTofMaxCluster=77777}; //maximal number of the TOF clusters
24 AliTOFClusterFinder();
25 AliTOFClusterFinder(AliRunLoader* runLoader);
26 virtual ~AliTOFClusterFinder();
28 void Digits2RecPoints(Int_t ievt);
29 void Digits2RecPoints(AliRawReader *rawReader, TTree *clustersTree);
30 void Digits2RecPoints(Int_t ievt, AliRawReader *rawReader);
31 void Raw2Digits(Int_t ievt, AliRawReader *rawReader); // temporary solution
37 void UnLoadClusters();
40 AliRunLoader *fRunLoader; // Pointer to Run Loader
41 AliLoader *fTOFLoader; // Pointer to specific detector loader
43 TTree *fTreeD; // Digits tree
44 TTree *fTreeR; // Reconstructed points
46 AliTOFcluster *fTofClusters[kTofMaxCluster]; // pointers to the TOF clusters
48 AliTOFGeometry *fTOFGeometry; // Pointer to TOF geometry
49 TClonesArray *fDigits; // List of digits
50 TClonesArray *fRecPoints; // List of reconstructed points
52 Int_t fNumberOfTofClusters; // Number of TOF Clusters
56 //Int_t InsertCluster(Int_t *aa, Double_t *bb); // Fills TofClusters Array
57 //Int_t InsertCluster(Int_t *aa, Double_t *bb, Int_t *cc, Int_t d); // Fills TofClusters Array
58 Int_t InsertCluster(AliTOFcluster *tofCluster); // Fills TofClusters Array
59 Int_t FindClusterIndex(Double_t z) const; // Returns cluster index
60 void CalibrateRecPoint(); // Apply calibration pars to Clusters
63 ClassDef(AliTOFClusterFinder,1) // To run TOF clustering