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 */
5 // AliTOFClusterFinder Class
6 // Task: Transform digits/raw data to TOF Clusters, to fill TOF RecPoints
7 // and feed TOF tracking
9 #include "AliRawReader.h"
20 class AliTOFClusterFinder : public TObject
23 enum {kTofMaxCluster=77777}; //maximal number of the TOF clusters
27 AliTOFClusterFinder();
28 AliTOFClusterFinder(AliRunLoader* runLoader);
29 virtual ~AliTOFClusterFinder();
31 void Digits2RecPoints(Int_t ievt);
32 void Digits2RecPoints(AliRawReader *rawReader, TTree *clustersTree);
33 void Digits2RecPoints(Int_t ievt, AliRawReader *rawReader);
34 void Raw2Digits(Int_t ievt, AliRawReader *rawReader); // temporary solution
40 void UnLoadClusters();
43 AliRunLoader *fRunLoader; // Pointer to Run Loader
44 AliLoader *fTOFLoader; // Pointer to specific detector loader
46 TTree *fTreeD; // Digits tree
47 TTree *fTreeR; // Reconstructed points
49 AliTOFcluster *fTofClusters[kTofMaxCluster]; // pointers to the TOF clusters
51 AliTOFGeometry *fTOFGeometry; // Pointer to TOF geometry
52 TClonesArray *fDigits; // List of digits
53 TClonesArray *fRecPoints; // List of reconstructed points
55 Int_t fNumberOfTofClusters; // Number of TOF Clusters
59 //Int_t InsertCluster(Int_t *aa, Double_t *bb); // Fills TofClusters Array
60 //Int_t InsertCluster(Int_t *aa, Double_t *bb, Int_t *cc, Int_t d); // Fills TofClusters Array
61 Int_t InsertCluster(AliTOFcluster *tofCluster); // Fills TofClusters Array
62 Int_t FindClusterIndex(Double_t z) const; // Returns cluster index
63 void CalibrateRecPoint(); // Apply calibration pars to Clusters
66 ClassDef(AliTOFClusterFinder,1) // To run TOF clustering