]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFClusterFinder.h
Removing the fake copy constructors and assignment operator, moving their declaration...
[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 */
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
11class TClonesArray;
12class TFile;
13class TTree;
14
15class AliLoader;
16class AliRunLoader;
0e46b9ae 17class AliRawReader;
d08a92dd 18
19class AliTOFGeometry;
0e46b9ae 20class AliTOFcluster;
d08a92dd 21
22class AliTOFClusterFinder : public TObject
23{
24
25 enum {kTofMaxCluster=77777}; //maximal number of the TOF clusters
26
27 public:
28
29 AliTOFClusterFinder();
30 AliTOFClusterFinder(AliRunLoader* runLoader);
7aeeaf38 31 AliTOFClusterFinder(const AliTOFClusterFinder &source); // copy constructor
32 AliTOFClusterFinder& operator=(const AliTOFClusterFinder &source); // ass. op.
d08a92dd 33 virtual ~AliTOFClusterFinder();
34
35 void Digits2RecPoints(Int_t ievt);
36 void Digits2RecPoints(AliRawReader *rawReader, TTree *clustersTree);
37 void Digits2RecPoints(Int_t ievt, AliRawReader *rawReader);
38 void Raw2Digits(Int_t ievt, AliRawReader *rawReader); // temporary solution
39 void FillRecPoint();
40 void ResetRecpoint();
41 void Load();
42 void LoadClusters();
43 void UnLoad();
44 void UnLoadClusters();
45
46 protected:
47 AliRunLoader *fRunLoader; // Pointer to Run Loader
48 AliLoader *fTOFLoader; // Pointer to specific detector loader
49
50 TTree *fTreeD; // Digits tree
51 TTree *fTreeR; // Reconstructed points
52
53 AliTOFcluster *fTofClusters[kTofMaxCluster]; // pointers to the TOF clusters
54
55 AliTOFGeometry *fTOFGeometry; // Pointer to TOF geometry
56 TClonesArray *fDigits; // List of digits
57 TClonesArray *fRecPoints; // List of reconstructed points
58
59 Int_t fNumberOfTofClusters; // Number of TOF Clusters
60
61 private:
62
63 //Int_t InsertCluster(Int_t *aa, Double_t *bb); // Fills TofClusters Array
64 //Int_t InsertCluster(Int_t *aa, Double_t *bb, Int_t *cc, Int_t d); // Fills TofClusters Array
65 Int_t InsertCluster(AliTOFcluster *tofCluster); // Fills TofClusters Array
66 Int_t FindClusterIndex(Double_t z) const; // Returns cluster index
37879eed 67 void CalibrateRecPoint(); // Apply calibration pars to Clusters
d08a92dd 68
69
70 ClassDef(AliTOFClusterFinder,1) // To run TOF clustering
71};
72#endif
73