]> git.uio.no Git - u/mrichter/AliRoot.git/blob - FMD/AliFMDQADataMakerRec.h
Add coloured boxes on DQM plots for easy reading.
[u/mrichter/AliRoot.git] / FMD / AliFMDQADataMakerRec.h
1 #ifndef ALIFMDQADATAMAKERREC_H
2 #define ALIFMDQADATAMAKERREC_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights
4  * reserved. 
5  *
6  * See cxx source for full Copyright notice                               
7  */
8 #include "AliQADataMakerRec.h"
9 #include "TClonesArray.h"
10 class TH1F; 
11 class TH1I; 
12 class TList; 
13 class AliFMDReconstructor;
14
15 //_____________________________________________________________________
16 // This class implements the AliQADataMakerRec for the FMD. Some
17 // functions are not implemented yet. 
18 // Author : Hans Hjersing Dalsgaard, hans.dalsgaard@cern.ch
19 //_____________________________________________________________________
20
21 class AliFMDQADataMakerRec: public AliQADataMakerRec 
22 {
23 public:
24   /** 
25    * Constructor
26    */
27   AliFMDQADataMakerRec();
28   /** 
29    * Copy constructor 
30    * 
31    * @param qadm What to copy from
32    */
33   AliFMDQADataMakerRec(const AliFMDQADataMakerRec& qadm);
34   /** 
35    * Assignment operator 
36    * 
37    * @param qadm What to assign from 
38    * 
39    * @return Reference to this
40    */
41   AliFMDQADataMakerRec& operator = (const AliFMDQADataMakerRec& qadm) ;
42   /** 
43    * Destrcutor 
44    */
45   virtual ~AliFMDQADataMakerRec();
46   /** 
47    * Get the half-ring index
48    * 
49    * @param det      Detector
50    * @param ring     Ring
51    * @param board    Board number
52    * @param monitor  Monitor 
53    * 
54    * @return Half ring index
55    */
56   static Int_t GetHalfringIndex(UShort_t det, Char_t ring, 
57                                 UShort_t board, UShort_t monitor = 0);
58   static void GetHalfringFromIndex(Int_t     idx, 
59                                    UShort_t& det, 
60                                    Char_t&   ring, 
61                                    UShort_t& board, 
62                                    UShort_t& monitor);
63 private:
64   static TH1* MakeADCHist(UShort_t d=0, Char_t r='\0', Short_t b=-1);
65   static TH1* MakeELossHist(UShort_t d=0, Char_t r='\0', Short_t b=-1);
66   
67   /** 
68    * Called at end of monitor cycle 
69    * 
70    * @param TASKINDEX_t Task
71    * @param list        Output list
72    */
73   virtual void   EndOfDetectorCycle(AliQAv1::TASKINDEX_t, TObjArray ** list);
74   /** 
75    * Intialize for ESD
76    */
77   virtual void   InitESDs(); 
78   /** 
79    * Intialize for Digits
80    */
81   virtual void   InitDigits(); 
82   /** 
83    * Intialize for RecPoints
84    */
85   virtual void   InitRecPoints(); 
86   /** 
87    * Initialise for raw 
88    */
89   virtual void   InitRaws(); 
90   /** 
91    * Analyse ESD event
92    * 
93    * @param esd ESD event
94    */
95   virtual void   MakeESDs(AliESDEvent * esd);
96   /** 
97    * Analyse digits 
98    */
99   virtual void   MakeDigits(); 
100   /** 
101    * Analyse digits
102    * 
103    * @param digitTree Tree of digits
104    */
105   virtual void   MakeDigits(TTree * digitTree); 
106   /** 
107    * Analyse rec points
108    * 
109    * @param recpoTree Tree of RecPoints
110    */
111   virtual void   MakeRecPoints(TTree * recpoTree); 
112   /** 
113    * Analyse raw 
114    * 
115    * @param rawReader Raw reader
116    */
117   virtual void   MakeRaws(AliRawReader* rawReader); 
118   /** 
119    * Called at start of a cycle 
120    * 
121    */
122   virtual void   StartOfDetectorCycle(); 
123   TClonesArray fRecPointsArray; // Rec points
124   AliFMDReconstructor* fReconstructor;
125   Bool_t               fUseReconstructor;
126
127   ClassDef(AliFMDQADataMakerRec,0)  // description 
128 };
129
130 #endif // AliFMDQADataMakerRec_H
131 //____________________________________________________________________
132 //
133 // Local Variables: 
134 //  mode: c++
135 // End:
136 //
137