]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/amoreTPC-QA/src/ui/UIQA.h
Updated geometry on side C + measured ZDC z position
[u/mrichter/AliRoot.git] / TPC / amoreTPC-QA / src / ui / UIQA.h
1 /***************************************************************************
2  *   Copyright (C) 2007 by Filimon Roukoutakis                             *
3  *   Filimon.Roukoutakis@cern.ch                                           *
4  *                                                                         *
5  *   This program is free software; you can redistribute it and/or modify  *
6  *   it under the terms of the GNU General Public License as published by  *
7  *   the Free Software Foundation; either version 2 of the License, or     *
8  *   (at your option) any later version.                                   *
9  *                                                                         *
10  *   This program is distributed in the hope that it will be useful,       *
11  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
12  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
13  *   GNU General Public License for more details.                          *
14  *                                                                         *
15  *   You should have received a copy of the GNU General Public License     *
16  *   along with this program; if not, write to the                         *
17  *   Free Software Foundation, Inc.,                                       *
18  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
19  ***************************************************************************/
20 #ifndef AMORE_TPC_UIUIQA_H
21 #define AMORE_TPC_UIUIQA_H
22
23 #include <VisualModule.h>
24 #include <TRootEmbeddedCanvas.h>
25 #include "../common/Common.h" // Absolute path necessary to allow usage of ACLiC
26 #include <TGTab.h>
27 #include <TGNumberEntry.h>
28 #include <TGTextView.h>
29 #include <TString.h>
30 class TList;
31 class AliTPCCalibViewerGUI;
32 class AliTPCdataQA;
33 class AliTPCCalPad;
34 class AliTPCCalibPedestal;
35 class AliTPCCalibPulser;
36 class AliTPCCalibCE;
37 namespace amore {
38
39 namespace da {
40   class AmoreDA;
41 };
42   
43
44 namespace TPC {
45
46 namespace ui {
47
48 /**
49 @author Filimon Roukoutakis
50 */
51
52 class UIQA : public amore::ui::VisualModule, public amore::TPC::common::Common { // VisualModule inheritance mandatory, Common inheritance optional for sharing the MonitorObject declarations with other modules
53
54  public:
55  
56  UIQA();
57  ~UIQA();
58  
59  virtual void Construct();
60  virtual void Update();
61  virtual void SubscribeMonitorObjects();
62  virtual void Process();
63  virtual void StartOfCycle();
64  virtual void EndOfCycle();
65  virtual void StartOfRun() {};
66  virtual void EndOfRun() {};
67  virtual void StartOfSession() {};
68  virtual void EndOfSession() {};
69  
70  protected:
71  void MakeTree(AliTPCdataQA * qa);
72  void MergeCalPadPedestal();
73  void RetrieveFromAmoreDB();
74  void CollectFromLDCs(AliTPCCalPad *calPad, const TString &calName, const TString &daType);
75  void CollectFromMon(AliTPCCalPad *calPad, const TString &calName, const TString &daType, const TString &mon);
76  TList *fMapCalibObjects;
77  TList *fListCalibObjInfo;
78  amore::da::AmoreDA      *fAmoreDA;
79  // gui
80  TGTab* fTab;
81  TGCompositeFrame* fExpert;
82  TRootEmbeddedCanvas* fEC[10];
83  TGNumberEntryField* fNEF[10];
84  TGTextView* fTextView[10];
85  AliTPCCalibViewerGUI *fViewerGUI;
86  TList *fListGuiObjects;
87  void SetupTabDACalib(TGCompositeFrame *frame);
88  void UpdateAmoreDBValues();
89  Int_t fCycle;
90  ClassDef(UIQA, 1);
91
92 };
93
94 };
95
96 };
97
98 };
99
100 #endif