]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MONITOR/AliMonitor.h
Restoring EMCAL digitization and reconstruction
[u/mrichter/AliRoot.git] / MONITOR / AliMonitor.h
1 #ifndef ALIMONITOR_H
2 #define ALIMONITOR_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7
8 #include <TObject.h>
9 #include "AliMonitorHisto.h"
10
11 class TFolder;
12 class TTree;
13 class AliRunLoader;
14 class AliRawReader;
15 class AliESD;
16 class AliMonitorTrend;
17
18
19 class AliMonitor : public TObject {
20 public:
21   AliMonitor();
22   AliMonitor(const AliMonitor& monitor);
23   AliMonitor& operator = (const AliMonitor& monitor);
24   virtual ~AliMonitor() {};
25
26   virtual void     CreateHistos(TFolder* folder) = 0;
27   virtual void     CreateBranches(TTree* tree);
28   virtual void     FillHistos(AliRunLoader* runLoader, 
29                               AliRawReader* rawReader,
30                               AliESD* esd) = 0;
31
32 protected:
33   TFolder*         fFolder;    // sub folder for monitor histograms
34
35   AliMonitorHisto* CreateHisto1(const char* name, const char* title,
36                                 Int_t xBins, Double_t xMin, Double_t xMax,
37                                 const char* xTitle, const char* yTitle,
38                                 AliMonitorHisto::ENorm norm);
39   AliMonitorHisto* CreateHisto2(const char* name, const char* title,
40                                 Int_t xBins, Double_t xMin, Double_t xMax,
41                                 Int_t yBins, Double_t yMin, Double_t yMax,
42                                 const char* xTitle, const char* yTitle,
43                                 const char* zTitle,
44                                 AliMonitorHisto::ENorm norm);
45   AliMonitorTrend* CreateTrend(const char* name, const char* title,
46                                const char* label, 
47                                Double_t min = 0, Double_t max = 0);
48
49   ClassDef(AliMonitor, 0)   // base class for the creation and filling of monitor histograms
50 };
51  
52
53 #endif
54
55
56
57
58
59
60
61
62