]>
Commit | Line | Data |
---|---|---|
36f55715 | 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); | |
36f55715 | 38 | ~AliTRDqaGuiBlackSM() {} |
39 | ||
40 | void SetQAFile(const char *filename); | |
41 | void SetSM(Int_t idx); | |
42 | ||
43 | void SetRangePed(Double_t min, Double_t max) { | |
44 | fSetRangePed = 1; | |
45 | fRangePed[0] = min; | |
46 | fRangePed[1] = max; | |
47 | } | |
48 | ||
49 | void SetRangeNoise(Double_t min, Double_t max) { | |
50 | fSetRangeNoise = 1; | |
51 | fRangeNoise[0] = min; | |
52 | fRangeNoise[1] = max; | |
53 | } | |
54 | ||
55 | //void Play(); // *SLOT* | |
56 | void PreviusSM() {if (fIdx > 0) SetSM(fIdx-1);} // *SLOT* | |
57 | void NextSM() {if (fIdx < 17) SetSM(fIdx+1);} // *SLOT* | |
58 | void SelectSM(Int_t idx) {SetSM(idx);} // *SLOT* | |
59 | void SelectType(Int_t idx); // *SLOT* | |
60 | ||
61 | protected: | |
62 | ||
63 | Int_t fIdx; // SuperModule Index | |
64 | Int_t fIdxType; // data type index | |
65 | const char *fNameList[5]; // list of possible data types | |
66 | ||
67 | Int_t fSetRangePed; // flag if use range for pedestals | |
68 | Double_t fRangePed[2]; // range for pedestals | |
69 | ||
70 | Int_t fSetRangeNoise; // flag if use range for noise | |
71 | Double_t fRangeNoise[2]; // range for noise | |
72 | ||
73 | ||
a73a87be | 74 | char fFileName[265]; // file with histograms |
36f55715 | 75 | |
76 | TRootEmbeddedCanvas *fCanvasList[30]; // list of canvases | |
77 | TH1 *fHistList[30]; // and histograms | |
78 | ||
79 | // | |
80 | TGCompositeFrame *fGPanel; // panel with buttons | |
81 | TGCompositeFrame *fGCanvas; // and with canvases | |
82 | ||
83 | // steering panel | |
84 | // TGLabel *fGLabel; | |
85 | TGComboBox *fGSelect; // sm selection | |
86 | TGTextButton *fGPrev; // previus button | |
87 | TGTextButton *fGNext; // next button | |
88 | //TGTextButton *fGPlay; | |
89 | ||
90 | TGComboBox *fGSelectType; // data type selection | |
91 | ||
8c8c004f | 92 | private: |
93 | AliTRDqaGuiBlackSM& operator = (const AliTRDqaGuiBlackSM& /*g*/) { return *this; }; | |
94 | AliTRDqaGuiBlackSM(const AliTRDqaGuiBlackSM&); | |
95 | ||
36f55715 | 96 | ClassDef(AliTRDqaGuiBlackSM,1) // |
97 | }; | |
98 | ||
99 | #endif |