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& operator = (const AliTRDqaGuiBlackSM& /*g*/) { return *this; };
39 ~AliTRDqaGuiBlackSM() {}
41 void SetQAFile(const char *filename);
42 void SetSM(Int_t idx);
44 void SetRangePed(Double_t min, Double_t max) {
50 void SetRangeNoise(Double_t min, Double_t max) {
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*
64 Int_t fIdx; // SuperModule Index
65 Int_t fIdxType; // data type index
66 const char *fNameList[5]; // list of possible data types
68 Int_t fSetRangePed; // flag if use range for pedestals
69 Double_t fRangePed[2]; // range for pedestals
71 Int_t fSetRangeNoise; // flag if use range for noise
72 Double_t fRangeNoise[2]; // range for noise
75 TString fFileName; // file with histograms
77 TRootEmbeddedCanvas *fCanvasList[30]; // list of canvases
78 TH1 *fHistList[30]; // and histograms
81 TGCompositeFrame *fGPanel; // panel with buttons
82 TGCompositeFrame *fGCanvas; // and with canvases
86 TGComboBox *fGSelect; // sm selection
87 TGTextButton *fGPrev; // previus button
88 TGTextButton *fGNext; // next button
89 //TGTextButton *fGPlay;
91 TGComboBox *fGSelectType; // data type selection
93 ClassDef(AliTRDqaGuiBlackSM,1) //