]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/qaGui/AliTRDqaGuiMain.cxx
Updated QA version (Sylwester)
[u/mrichter/AliRoot.git] / TRD / qaGui / AliTRDqaGuiMain.cxx
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
7  * Permission to use, copy, modify and distribute this software and its   *
8  * documentation strictly for non-commercial purposes is hereby granted   *
9  * without fee, provided that the above copyright notice appears in all   *
10  * copies and that both the copyright notice and this permission notice   *
11  * appear in the supporting documentation. The authors make no claims     *
12  * about the suitability of this software for any purpose. It is          *
13  * provided "as is" without express or implied warranty.                  *
14  **************************************************************************/
15
16 /* $Id: AliTRDqaGuiMain.cxx 23871 2008-02-12 11:48:20Z hristov $ */
17
18 #include "AliTRDqaGuiMain.h"
19 #include "qaGui/AliTRDqaGuiClusters.h"
20 #include "AliTRDqaGuiClustersSM.h"
21 #include "AliTRDqaGuiClustersStack.h"
22 #include "AliTRDqaGuiESDs.h"
23
24 #include "TGTab.h"
25
26 ClassImp(AliTRDqaGuiMain)
27
28 //////////////////////////////////////////////////////////////////////////////////
29 //
30 // This class is a Graphical User Interface for the Quality Monitorig 
31 // of clusters and ESDs. 
32 // It displays histograms created by the AliTRDQADataMakerRec 
33 // run during the reconstruction 
34 //
35 // S. Radomski 
36 // Uni-Heidelberg
37 // Feb. 2008
38 // 
39 //////////////////////////////////////////////////////////////////////////////////
40
41 AliTRDqaGuiMain::AliTRDqaGuiMain() 
42   : fGTabPanel(0),
43     fGDet(0),
44     fGSM(0),
45     fGStack(0)
46 {
47   //
48   // Default constructor
49   //
50
51 }
52
53 ////////////////////////////////////////////////////////////////////////////////
54
55 AliTRDqaGuiMain::AliTRDqaGuiMain(TGWindow *parent) :
56   TGMainFrame(parent, 400, 400),
57   fGTabPanel(0),
58   fGDet(0),
59   fGSM(0),
60   fGStack(0)
61 {
62   //
63   // main constructor
64   //
65   
66   fGTabPanel = new TGTab(this);
67   fGDet      = new AliTRDqaGuiClusters(fGTabPanel);
68   fGSM       = new AliTRDqaGuiClustersSM(fGTabPanel);
69   fGStack    = new AliTRDqaGuiClustersStack(fGTabPanel);
70   fGESDs[0]  = new AliTRDqaGuiESDs(fGTabPanel,0);
71   fGESDs[1]  = new AliTRDqaGuiESDs(fGTabPanel,1);
72   fGESDs[2]  = new AliTRDqaGuiESDs(fGTabPanel,2);
73   
74   fGTabPanel->AddTab("Clusters", fGDet);
75   fGTabPanel->AddTab("Clusters - Super Module", fGSM);
76   fGTabPanel->AddTab("Clusters - Stack", fGStack);
77   fGTabPanel->AddTab("ESDs (1)", fGESDs[0]);
78   fGTabPanel->AddTab("ESDs (2)", fGESDs[1]);
79   fGTabPanel->AddTab("ESDs (3)", fGESDs[2]);
80
81   AddFrame(fGTabPanel);
82   
83   SetWindowName("TRD QA");
84   MapSubwindows();
85   MapWindow();
86   Resize(GetDefaultSize());
87 }
88
89 ////////////////////////////////////////////////////////////////////////////////
90  
91 void AliTRDqaGuiMain::SetQAFile(const char *file) {
92   //
93   // sets a file with histograms
94   // 
95   
96   fGDet->SetQAFile(file);
97   fGSM->SetQAFile(file);
98   fGStack->SetQAFile(file);
99   fGESDs[0]->SetQAFile(file);
100   fGESDs[1]->SetQAFile(file);
101   fGESDs[2]->SetQAFile(file);
102 }
103
104 ////////////////////////////////////////////////////////////////////////////////