]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/qaGui/AliTRDqaGuiClustersStack.h
QA ref defaut storage setter in sim and rec
[u/mrichter/AliRoot.git] / TRD / qaGui / AliTRDqaGuiClustersStack.h
CommitLineData
36f55715 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
11class TH1D;
12class TString;
13class TGLabel;
14class TGComboBox;
15class TGTextButton;
16class TRootEmbeddedCanvas;
17
18class AliTRDqaGuiClustersStack : public TGCompositeFrame {
19
20 public:
21
22 AliTRDqaGuiClustersStack();
23 AliTRDqaGuiClustersStack(TGWindow *parent);
f5fd37e8 24 ~AliTRDqaGuiClustersStack() {}
25
36f55715 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();
8c8c004f 78
79 private:
80 AliTRDqaGuiClustersStack& operator = (const AliTRDqaGuiClustersStack& /*g*/) { return *this; };
81 AliTRDqaGuiClustersStack(const AliTRDqaGuiClustersStack &);
36f55715 82 ClassDef(AliTRDqaGuiClustersStack,1) //
83};
84
85#endif