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