]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/qaGui/AliTRDqaGuiBlackSM.h
New QA gui by Sylwester
[u/mrichter/AliRoot.git] / TRD / qaGui / AliTRDqaGuiBlackSM.h
1 #ifndef ALITRDQAGUIBLACKSM_H 
2 #define ALITRDQAGUIBLACKSM_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6
7 /* $Id: AliTRDqaGuiBlackSM.h 23387 2008-01-17 17:25:16Z cblume $ */
8
9 //////////////////////////////////////////////////////////////////////////////////
10 //
11 // This class is a Graphical User Interface for the Quality Monitorig 
12 // of black (non zero zuppresed) events from TRD. 
13 // It lets display and browse throu histograms created by the class 
14 // AliTRDqaBlackEvents.
15 // The class works in cooperation with AliTRDqaGuiMainBlack.
16 //
17 // S. Radomski 
18 // Uni-Heidelberg
19 // Feb. 2008
20 // 
21 //////////////////////////////////////////////////////////////////////////////////
22
23 #include "TGFrame.h"  
24
25 class TH1;
26 class TString;
27 class TGLabel;
28 class TGComboBox;
29 class TGTextButton;
30 class TRootEmbeddedCanvas;
31
32 class AliTRDqaGuiBlackSM : public TGCompositeFrame {
33   
34  public:
35
36   AliTRDqaGuiBlackSM();
37   AliTRDqaGuiBlackSM(TGWindow *parent);
38   AliTRDqaGuiBlackSM& operator = (const AliTRDqaGuiBlackSM& /*g*/) { return *this; };
39   ~AliTRDqaGuiBlackSM() {}
40   
41   void SetQAFile(const char *filename);
42   void SetSM(Int_t idx);
43
44    void SetRangePed(Double_t min, Double_t max) {
45     fSetRangePed = 1;
46     fRangePed[0] = min;
47     fRangePed[1] = max;
48   }
49
50   void SetRangeNoise(Double_t min, Double_t max) {
51     fSetRangeNoise = 1;
52     fRangeNoise[0] = min;
53     fRangeNoise[1] = max;
54   }
55
56   //void Play();  // *SLOT*
57   void PreviusSM() {if (fIdx > 0) SetSM(fIdx-1);}   // *SLOT*
58   void NextSM()    {if (fIdx < 17) SetSM(fIdx+1);}  // *SLOT*
59   void SelectSM(Int_t idx) {SetSM(idx);} // *SLOT*
60   void SelectType(Int_t idx); // *SLOT*
61
62  protected:
63
64   Int_t fIdx;                   // SuperModule Index
65   Int_t fIdxType;               // data type index
66   const char *fNameList[5];     // list of possible data types
67
68   Int_t    fSetRangePed;        // flag if use range for pedestals
69   Double_t fRangePed[2];        // range for pedestals
70   
71   Int_t    fSetRangeNoise;      // flag if use range for noise 
72   Double_t fRangeNoise[2];      // range for noise
73
74
75   TString fFileName;            // file with histograms
76   
77   TRootEmbeddedCanvas *fCanvasList[30];  // list of canvases
78   TH1 *fHistList[30];                    // and histograms
79   
80   // 
81   TGCompositeFrame *fGPanel;     // panel with buttons
82   TGCompositeFrame *fGCanvas;    // and with canvases
83   
84   // steering panel
85   // TGLabel      *fGLabel;
86   TGComboBox   *fGSelect;       // sm selection
87   TGTextButton *fGPrev;         // previus button
88   TGTextButton *fGNext;         // next button
89   //TGTextButton *fGPlay;
90
91   TGComboBox *fGSelectType;     // data type selection
92
93   ClassDef(AliTRDqaGuiBlackSM,1) // 
94 };
95
96 #endif