1 #ifndef ALITRDQAGUICLUSTERSSTACK_H
2 #define ALITRDQAGUICLUSTERSSTACK_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
7 /* $Id: AliTRDqaGuiClustersStack.h 23387 2008-01-17 17:25:16Z cblume $ */
16 class TRootEmbeddedCanvas;
18 class AliTRDqaGuiClustersStack : public TGCompositeFrame {
22 AliTRDqaGuiClustersStack();
23 AliTRDqaGuiClustersStack(TGWindow *parent);
24 ~AliTRDqaGuiClustersStack() {}
27 void SetQAFile(const char *filename);
28 void SetSM(Int_t idxSM);
29 void SetStack(Int_t idxStack);
30 void SetView(Int_t idxView);
32 // void Play(); // *SLOT*
33 void PreviusStack() {if (fIdxStack > 0) SetStack(fIdxStack-1);} // *SLOT*
34 void NextStack() {if (fIdxStack < fgknStack-1) SetStack(fIdxStack+1);} // *SLOT*
36 void PreviusSM() {if (fIdxSM > 0) SetSM(fIdxSM-1);} // *SLOT*
37 void NextSM() {if (fIdxSM < fgknSM-1) SetSM(fIdxSM+1);} // *SLOT*
39 void SelectStack(Int_t idx) {SetStack(idx);} // *SLOT*
40 void SelectSM(Int_t idx) {SetSM(idx);} // *SLOT*
41 void SelectView(Int_t idx) {SetView(idx);} // *SLOT*
46 static const Int_t fgknSM; // number of Super Modules
47 static const Int_t fgknStack; // number of stacks
48 static const Int_t fgknCh; // number of chambers per stack
50 Int_t fIdxSM; // active super module
51 Int_t fIdxStack; // active stack
52 Int_t fView; // data type
54 char fFileName[256]; // file wuth histograms
56 TRootEmbeddedCanvas *fCanvasList[6]; // canvases
57 TH1D *fHistList[6]; // and histos
60 TGCompositeFrame *fGPanel; // panel with buttons
61 TGCompositeFrame *fGCanvas; // and with canvases
65 TGComboBox *fGSelectSM; // select super module
66 TGComboBox *fGSelectStack; // select stack
67 TGComboBox *fGSelectView; // select data type
69 TGTextButton *fGPrevSM; // button
70 TGTextButton *fGPrevStack; // button
71 TGTextButton *fGNextSM; // buton
72 TGTextButton *fGNextStack; // button
73 TGTextButton *fGPlay; // inactive button
75 void CreateHistAmplitude();
76 void CreateHistTimeCharge();
77 void CreateHistTimeMPV();
80 AliTRDqaGuiClustersStack& operator = (const AliTRDqaGuiClustersStack& /*g*/) { return *this; };
81 AliTRDqaGuiClustersStack(const AliTRDqaGuiClustersStack &);
82 ClassDef(AliTRDqaGuiClustersStack,1) //