1 /***************************************************************************
2 * Copyright (C) 2007 by Filimon Roukoutakis *
3 * Filimon.Roukoutakis@cern.ch *
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. *
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. *
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
23 #include <VisualModule.h>
24 #include <TRootEmbeddedCanvas.h>
25 #include "../common/Common.h" // Absolute path necessary to allow usage of ACLiC
27 #include <TGNumberEntry.h>
28 #include <TGTextView.h>
31 class AliTPCCalibViewerGUI;
34 class AliTPCCalibPedestal;
35 class AliTPCCalibPulser;
49 @author Filimon Roukoutakis
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
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() {};
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;
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();