]>
Commit | Line | Data |
---|---|---|
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 */ | |
340693af | 5 | // AliTOFClusterFinder Class |
6 | // Task: Transform digits/raw data to TOF Clusters, to fill TOF RecPoints | |
7 | // and feed TOF tracking | |
d08a92dd | 8 | |
0e46b9ae | 9 | #include "TObject.h" |
d08a92dd | 10 | |
11 | class TClonesArray; | |
12 | class TFile; | |
13 | class TTree; | |
14 | ||
15 | class AliLoader; | |
16 | class AliRunLoader; | |
0e46b9ae | 17 | class AliRawReader; |
d08a92dd | 18 | |
19 | class AliTOFGeometry; | |
0e46b9ae | 20 | class AliTOFcluster; |
94f5f8f2 | 21 | class AliTOFcalib; |
d08a92dd | 22 | |
23 | class AliTOFClusterFinder : public TObject | |
24 | { | |
25 | ||
26 | enum {kTofMaxCluster=77777}; //maximal number of the TOF clusters | |
27 | ||
28 | public: | |
29 | ||
94f5f8f2 | 30 | AliTOFClusterFinder(AliTOFcalib *calib); |
31 | AliTOFClusterFinder(AliRunLoader* runLoader, AliTOFcalib *calib); | |
7aeeaf38 | 32 | AliTOFClusterFinder(const AliTOFClusterFinder &source); // copy constructor |
33 | AliTOFClusterFinder& operator=(const AliTOFClusterFinder &source); // ass. op. | |
d08a92dd | 34 | virtual ~AliTOFClusterFinder(); |
35 | ||
94f5f8f2 | 36 | void Digits2RecPoints(TTree* digitsTree, TTree* clusterTree); |
d08a92dd | 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 | |
94f5f8f2 | 41 | void Raw2Digits(AliRawReader *rawReader, TTree* digitsTree); |
d08a92dd | 42 | void FillRecPoint(); |
43 | void ResetRecpoint(); | |
44 | void Load(); | |
45 | void LoadClusters(); | |
46 | void UnLoad(); | |
47 | void UnLoadClusters(); | |
15ec34b9 | 48 | void SetVerbose(Int_t Verbose){fVerbose=Verbose;} // To set the verbose level |
7813bb1a | 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 | |
d08a92dd | 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 | |
37879eed | 73 | void CalibrateRecPoint(); // Apply calibration pars to Clusters |
d08a92dd | 74 | |
15ec34b9 | 75 | Int_t fVerbose; //Verbose level (0:no msg, 1:msg, 2:digits in txt files) |
7813bb1a | 76 | Bool_t fDecoderVersion; //setting whether to use the new decoder version |
77 | // -true -> new version | |
78 | // -false ->old version (default value!!) | |
94f5f8f2 | 79 | AliTOFcalib *fTOFcalib; // pointer to the TOF calibration info |
d08a92dd | 80 | |
94f5f8f2 | 81 | ClassDef(AliTOFClusterFinder,3) // To run TOF clustering |
d08a92dd | 82 | }; |
83 | #endif | |
84 |