]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/qaGui/AliTRDqaGuiMainAnalysis.cxx
Bug fix by Theodor
[u/mrichter/AliRoot.git] / TRD / qaGui / AliTRDqaGuiMainAnalysis.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$ */
17
18 #include "AliTRDqaGuiMainAnalysis.h"
19 #include "AliTRDqaGuiJPsi.h"
20 #include "AliTRDqaGuiEnergyDeposit.h"
21 #include "TGTab.h"
22
23 ClassImp(AliTRDqaGuiMainAnalysis)
24
25 //////////////////////////////////////////////////////////////////////////////////
26 //
27 // This class is a Graphical User Interface for the Quality Monitorig 
28 // of clusters and ESDs. 
29 // It displays histograms created by the AliTRDQADataMakerRec 
30 // run during the reconstruction 
31 //
32 // S. Radomski 
33 // Uni-Heidelberg
34 // Feb. 2008
35 // 
36 //////////////////////////////////////////////////////////////////////////////////
37
38 AliTRDqaGuiMainAnalysis::AliTRDqaGuiMainAnalysis() 
39   : fGTabPanel(0),
40     fGJPsi(0),
41     fGED(0)
42 {
43   //
44   // Default constructor
45   //
46
47 }
48
49 ////////////////////////////////////////////////////////////////////////////////
50
51 AliTRDqaGuiMainAnalysis::AliTRDqaGuiMainAnalysis(TGWindow *parent) :
52   TGMainFrame(parent, 400, 400),
53   fGTabPanel(0),
54   fGJPsi(0),
55   fGED(0)
56 {
57   //
58   // main constructor
59   //
60   
61   fGTabPanel = new TGTab(this);
62   fGJPsi     = new AliTRDqaGuiJPsi(fGTabPanel);
63   fGED       = new AliTRDqaGuiEnergyDeposit(fGTabPanel);
64    
65   fGTabPanel->AddTab("JPsi", fGJPsi);
66   fGTabPanel->AddTab("Energy Deposit", fGED);
67
68   AddFrame(fGTabPanel);
69   
70   SetWindowName("TRD Analysis QA");
71   MapSubwindows();
72   MapWindow();
73   Resize(GetDefaultSize());
74 }
75
76 ////////////////////////////////////////////////////////////////////////////////
77  
78 void AliTRDqaGuiMainAnalysis::SetQAFile() {
79   //
80   // sets a file with histograms
81   // 
82   
83   fGJPsi->SetQAFile("outJPsi.root");
84   fGED->SetQAFile("outEnergyDeposit.root");
85 }
86
87 ////////////////////////////////////////////////////////////////////////////////