]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/qaGui/AliTRDqaGuiClustersStack.h
QA ref defaut storage setter in sim and rec
[u/mrichter/AliRoot.git] / TRD / qaGui / AliTRDqaGuiClustersStack.h
1 #ifndef ALITRDQAGUICLUSTERSSTACK_H
2 #define ALITRDQAGUICLUSTERSSTACK_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: AliTRDqaGuiClustersStack.h 23387 2008-01-17 17:25:16Z cblume $ */
8
9 #include "TGFrame.h"  
10
11 class TH1D;
12 class TString;
13 class TGLabel;
14 class TGComboBox;
15 class TGTextButton;
16 class TRootEmbeddedCanvas;
17
18 class AliTRDqaGuiClustersStack : public TGCompositeFrame {
19
20  public:
21
22   AliTRDqaGuiClustersStack();
23   AliTRDqaGuiClustersStack(TGWindow *parent);
24   ~AliTRDqaGuiClustersStack() {}
25
26   
27   void SetQAFile(const char *filename);
28   void SetSM(Int_t idxSM);
29   void SetStack(Int_t idxStack);
30   void SetView(Int_t idxView);
31
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*
35
36   void PreviusSM() {if (fIdxSM > 0) SetSM(fIdxSM-1);}      // *SLOT*
37   void NextSM()    {if (fIdxSM < fgknSM-1) SetSM(fIdxSM+1);}   // *SLOT*
38   
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*
42
43
44  protected:
45
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
49
50   Int_t fIdxSM;      // active super module
51   Int_t fIdxStack;   // active stack
52   Int_t fView;       // data type 
53
54   char fFileName[256];  // file wuth histograms
55   
56   TRootEmbeddedCanvas *fCanvasList[6];   // canvases
57   TH1D *fHistList[6];                    // and histos
58   
59   // 
60   TGCompositeFrame *fGPanel;   // panel with buttons
61   TGCompositeFrame *fGCanvas;  // and with canvases
62   
63   // steering panel
64   // TGLabel      *fGLabel;
65   TGComboBox   *fGSelectSM;        // select super module
66   TGComboBox   *fGSelectStack;     // select stack
67   TGComboBox   *fGSelectView;      // select data type
68
69   TGTextButton *fGPrevSM;       // button
70   TGTextButton *fGPrevStack;    // button
71   TGTextButton *fGNextSM;       // buton
72   TGTextButton *fGNextStack;    // button
73   TGTextButton *fGPlay;         // inactive button
74  
75   void CreateHistAmplitude();
76   void CreateHistTimeCharge();
77   void CreateHistTimeMPV();
78
79  private:  
80   AliTRDqaGuiClustersStack& operator = (const AliTRDqaGuiClustersStack& /*g*/) { return *this; };
81   AliTRDqaGuiClustersStack(const AliTRDqaGuiClustersStack &);
82   ClassDef(AliTRDqaGuiClustersStack,1) // 
83 };
84
85 #endif