]>
Commit | Line | Data |
---|---|---|
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 | |
8 | ||
9 | #include "TObject.h" | |
10 | ||
11 | class TClonesArray; | |
12 | class TFile; | |
13 | class TTree; | |
14 | ||
15 | class AliLoader; | |
16 | class AliRunLoader; | |
17 | class AliRawReader; | |
18 | ||
19 | class AliTOFGeometry; | |
20 | class AliTOFcluster; | |
21 | class AliTOFcalib; | |
22 | ||
23 | class AliTOFClusterFinder : public TObject | |
24 | { | |
25 | ||
26 | enum {kTofMaxCluster=77777}; //maximal number of the TOF clusters | |
27 | ||
28 | public: | |
29 | ||
30 | AliTOFClusterFinder(AliTOFcalib *calib); | |
31 | AliTOFClusterFinder(AliRunLoader* runLoader, AliTOFcalib *calib); | |
32 | AliTOFClusterFinder(const AliTOFClusterFinder &source); // copy constructor | |
33 | AliTOFClusterFinder& operator=(const AliTOFClusterFinder &source); // ass. op. | |
34 | virtual ~AliTOFClusterFinder(); | |
35 | ||
36 | void Digits2RecPoints(TTree* digitsTree, TTree* clusterTree); | |
37 | void Digits2RecPoints(Int_t ievt); | |
38 | void Digits2RecPoints(AliRawReader *rawReader, TTree *clustersTree); | |
39 | void Digits2RecPoints(Int_t ievt, AliRawReader *rawReader); | |
40 | void Raw2Digits(Int_t ievt, AliRawReader *rawReader); // temporary solution | |
41 | void Raw2Digits(AliRawReader *rawReader, TTree* digitsTree); | |
42 | void FillRecPoint(); | |
43 | void ResetRecpoint(); | |
44 | void Load(); | |
45 | void LoadClusters(); | |
46 | void UnLoad(); | |
47 | void UnLoadClusters(); | |
48 | void SetVerbose(Int_t Verbose){fVerbose=Verbose;} // To set the verbose level | |
49 | void SetDecoderVersion(Int_t version){fDecoderVersion=version;} // To set the decoder version | |
50 | Bool_t GetDecoderVersion() const {return fDecoderVersion;} // To get the decoder version | |
51 | ||
52 | protected: | |
53 | AliRunLoader *fRunLoader; // Pointer to Run Loader | |
54 | AliLoader *fTOFLoader; // Pointer to specific detector loader | |
55 | ||
56 | TTree *fTreeD; // Digits tree | |
57 | TTree *fTreeR; // Reconstructed points | |
58 | ||
59 | AliTOFcluster *fTofClusters[kTofMaxCluster]; // pointers to the TOF clusters | |
60 | ||
61 | AliTOFGeometry *fTOFGeometry; // Pointer to TOF geometry | |
62 | TClonesArray *fDigits; // List of digits | |
63 | TClonesArray *fRecPoints; // List of reconstructed points | |
64 | ||
65 | Int_t fNumberOfTofClusters; // Number of TOF Clusters | |
66 | ||
67 | private: | |
68 | ||
69 | //Int_t InsertCluster(Int_t *aa, Double_t *bb); // Fills TofClusters Array | |
70 | //Int_t InsertCluster(Int_t *aa, Double_t *bb, Int_t *cc, Int_t d); // Fills TofClusters Array | |
71 | Int_t InsertCluster(AliTOFcluster *tofCluster); // Fills TofClusters Array | |
72 | Int_t FindClusterIndex(Double_t z) const; // Returns cluster index | |
73 | void CalibrateRecPoint(); // Apply calibration pars to Clusters | |
74 | ||
75 | Int_t fVerbose; //Verbose level (0:no msg, 1:msg, 2:digits in txt files) | |
76 | Bool_t fDecoderVersion; //setting whether to use the new decoder version | |
77 | // -true -> new version | |
78 | // -false ->old version (default value!!) | |
79 | AliTOFcalib *fTOFcalib; // pointer to the TOF calibration info | |
80 | ||
81 | ClassDef(AliTOFClusterFinder,3) // To run TOF clustering | |
82 | }; | |
83 | #endif | |
84 |