1 #ifndef ALITRDQAGUIBLACKCHAMBER_H
2 #define ALITRDQAGUIBLACKCHAMBER_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
7 /* $Id: AliTRDqaGuiBlackChamber.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 AliTRDqaGuiBlackChamber : public TGCompositeFrame {
36 AliTRDqaGuiBlackChamber();
37 AliTRDqaGuiBlackChamber(TGWindow *parent);
38 ~AliTRDqaGuiBlackChamber() {};
40 void SetQAFile(const char *filename);
41 void SetSM(Int_t idxSM);
42 void SetChamber(Int_t idxChamber);
43 void SetView(Int_t idxView);
45 void SetRangePed(Double_t min, Double_t max) {
51 void SetRangeNoise(Double_t min, Double_t max) {
58 // void Play(); // *SLOT*
59 void PreviusChamber() {if (fIdxChamber > 0) SetChamber(fIdxChamber-1);} // *SLOT*
60 void NextChamber() {if (fIdxChamber < fgknChamber-1) SetChamber(fIdxChamber+1);} // *SLOT*
62 void PreviusSM() {if (fIdxSM > 0) SetSM(fIdxSM-1);} // *SLOT*
63 void NextSM() {if (fIdxSM < fgknSM-1) SetSM(fIdxSM+1);} // *SLOT*
65 void SelectChamber(Int_t idx) {SetChamber(idx);} // *SLOT*
66 void SelectSM(Int_t idx) {SetSM(idx);} // *SLOT*
67 void SelectView(Int_t idx) {SetView(idx);} // *SLOT*
74 static const Int_t fgknSM; // number of supermodules
75 static const Int_t fgknChamber; // number of chamberd (30)
77 Int_t fSetRangePed; // flag for range in pedestals
78 Double_t fRangePed[2]; // range for pedelstals
80 Int_t fSetRangeNoise; // flag for range in noise
81 Double_t fRangeNoise[2]; // range in noise
83 Int_t fIdxSM; // active super module
84 Int_t fIdxChamber; // active chamber
87 //char fFileName[256]; // file with histograms
88 const Char_t *fFileName; // file with histograms
90 TRootEmbeddedCanvas *fCanvasList[5]; // canvases
91 TH1 *fHistList[5]; // and histos
94 TGCompositeFrame *fGPanel; // panel with buttons
95 TGCompositeFrame *fGCanvas; // canvas
96 TGCompositeFrame *fGCanvasUp; // canvas
97 TGCompositeFrame *fGCanvasDown; // canvas
101 TGComboBox *fGSelectSM; // selector for Super Module
102 TGComboBox *fGSelectChamber; // selector for Chamber
103 TGComboBox *fGSelectView; // select view
105 TGTextButton *fGPrevSM; // button
106 TGTextButton *fGPrevChamber; // button
107 TGTextButton *fGNextSM; // button
108 TGTextButton *fGNextChamber; // button
109 //TGTextButton *fGPlay;
111 //void CreateHistAmplitude();
112 // void CreateHistTimeCharge();
113 //void CreateHistTimeMPV();
116 AliTRDqaGuiBlackChamber& operator = (const AliTRDqaGuiBlackChamber& /*g*/) { return *this; };
117 AliTRDqaGuiBlackChamber(const AliTRDqaGuiBlackChamber &);
119 ClassDef(AliTRDqaGuiBlackChamber,1) //