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