1 #ifndef ALITRDQAGUIBLACKSM_H
2 #define ALITRDQAGUIBLACKSM_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
7 /* $Id: AliTRDqaGuiBlackSM.h 23387 2008-01-17 17:25:16Z cblume $ */
9 //////////////////////////////////////////////////////////////////////////////////
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.
21 //////////////////////////////////////////////////////////////////////////////////
30 class TRootEmbeddedCanvas;
32 class AliTRDqaGuiBlackSM : public TGCompositeFrame {
37 AliTRDqaGuiBlackSM(TGWindow *parent);
38 ~AliTRDqaGuiBlackSM() {}
40 void SetQAFile(const char *filename);
41 void SetSM(Int_t idx);
43 void SetRangePed(Double_t min, Double_t max) {
49 void SetRangeNoise(Double_t min, Double_t max) {
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*
63 Int_t fIdx; // SuperModule Index
64 Int_t fIdxType; // data type index
65 const char *fNameList[5]; // list of possible data types
67 Int_t fSetRangePed; // flag if use range for pedestals
68 Double_t fRangePed[2]; // range for pedestals
70 Int_t fSetRangeNoise; // flag if use range for noise
71 Double_t fRangeNoise[2]; // range for noise
74 char fFileName[265]; // file with histograms
76 TRootEmbeddedCanvas *fCanvasList[30]; // list of canvases
77 TH1 *fHistList[30]; // and histograms
80 TGCompositeFrame *fGPanel; // panel with buttons
81 TGCompositeFrame *fGCanvas; // and with canvases
85 TGComboBox *fGSelect; // sm selection
86 TGTextButton *fGPrev; // previus button
87 TGTextButton *fGNext; // next button
88 //TGTextButton *fGPlay;
90 TGComboBox *fGSelectType; // data type selection
93 AliTRDqaGuiBlackSM& operator = (const AliTRDqaGuiBlackSM& /*g*/) { return *this; };
94 AliTRDqaGuiBlackSM(const AliTRDqaGuiBlackSM&);
96 ClassDef(AliTRDqaGuiBlackSM,1) //