write ToT in the Raw Data
[u/mrichter/AliRoot.git] / TOF / AliTOFClusterFinder.h
CommitLineData
d08a92dd 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
6#include "AliRawReader.h"
7
8class TClonesArray;
9class TFile;
10class TTree;
11
12class AliLoader;
13class AliRunLoader;
14
15class AliTOFGeometry;
16
17class AliTOFClusterFinder : public TObject
18{
19
20 enum {kTofMaxCluster=77777}; //maximal number of the TOF clusters
21
22 public:
23
24 AliTOFClusterFinder();
25 AliTOFClusterFinder(AliRunLoader* runLoader);
26 virtual ~AliTOFClusterFinder();
27
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
32 void FillRecPoint();
33 void ResetRecpoint();
34 void Load();
35 void LoadClusters();
36 void UnLoad();
37 void UnLoadClusters();
38
39 protected:
40 AliRunLoader *fRunLoader; // Pointer to Run Loader
41 AliLoader *fTOFLoader; // Pointer to specific detector loader
42
43 TTree *fTreeD; // Digits tree
44 TTree *fTreeR; // Reconstructed points
45
46 AliTOFcluster *fTofClusters[kTofMaxCluster]; // pointers to the TOF clusters
47
48 AliTOFGeometry *fTOFGeometry; // Pointer to TOF geometry
49 TClonesArray *fDigits; // List of digits
50 TClonesArray *fRecPoints; // List of reconstructed points
51
52 Int_t fNumberOfTofClusters; // Number of TOF Clusters
53
54 private:
55
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
37879eed 60 void CalibrateRecPoint(); // Apply calibration pars to Clusters
d08a92dd 61
62
63 ClassDef(AliTOFClusterFinder,1) // To run TOF clustering
64};
65#endif
66