]> git.uio.no Git - u/mrichter/AliRoot.git/blob - FMD/AliFMDMultAlgorithm.h
Added new library libFMDutil. This library contains utility classes that
[u/mrichter/AliRoot.git] / FMD / AliFMDMultAlgorithm.h
1 #ifndef ALIFMDMULTALGORITHM_H
2 #define ALIFMDMULTALGORITHM_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights
4  * reserved. 
5  *
6  * Latest changes by Christian Holm Christensen <cholm@nbi.dk>
7  *
8  * See cxx source for full Copyright notice                               
9  */
10 /* $Id$ */
11 //____________________________________________________________________
12 // 
13 // Base class for FMD reconstruction algorithms. 
14 //
15 // Derived classes will implement various ways of reconstructing the
16 // charge particle multiplicity in the FMD.  
17 // 
18
19 #ifndef ROOT_TTask
20 # include <TTask.h>
21 #endif
22
23 //____________________________________________________________________
24 class AliFMDDigit;
25 class TTree;
26 class AliFMD;
27 class TClonesArray;
28
29 //____________________________________________________________________
30 class AliFMDMultAlgorithm : public TNamed
31 {
32 public:
33   AliFMDMultAlgorithm(const char* name, const char* title);
34   virtual ~AliFMDMultAlgorithm();
35   
36   virtual void PreRun(AliFMD* fmd) { fFMD = fmd; }
37   virtual void PreEvent(TTree* treeR, Float_t ipZ);
38   virtual void ProcessDigit(AliFMDDigit* digit, 
39                             Float_t eta, 
40                             Float_t phi, 
41                             UShort_t counts) = 0;
42   virtual void PostEvent() {}
43   virtual void PostRun() {}
44 protected:
45   TTree*        fTreeR;     //! Reconstruction tree  
46   TClonesArray* fMult;      //! Reconstructed multiplicities
47   Int_t         fNMult;     //! Number of reconstructed multiplicities
48   AliFMD*       fFMD;       //! Detector information 
49   
50   ClassDef(AliFMDMultAlgorithm, 0) // Base class for algorithms
51 };
52
53 #endif
54 //____________________________________________________________________
55 //
56 // Local Variables:
57 //   mode: C++
58 // End:
59 //
60 // EOF
61 //