]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/qaGui/AliTRDqaGuiMainBlack.cxx
Undoing changes to AliGlauberMC
[u/mrichter/AliRoot.git] / TRD / qaGui / AliTRDqaGuiMainBlack.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: AliTRDqaGuiMainBlack.cxx 23871 2008-02-12 11:48:20Z hristov $ */
17
18 //////////////////////////////////////////////////////////////////////////////////
19 //
20 // This class is a Graphical User Interface for the Quality Monitorig 
21 // of clusters. It lets display and browse throu histograms created by 
22 // the AliTRDQADataMakerRec run during the reconstruction 
23 //
24 // S. Radomski 
25 // Uni-Heidelberg
26 // Feb. 2008
27 // 
28 //////////////////////////////////////////////////////////////////////////////////
29
30 #include "AliTRDqaGuiMainBlack.h"
31 #include "AliTRDqaGuiBlackSM.h"
32 #include "AliTRDqaGuiBlackChamber.h"
33 #include "AliTRDqaGuiBlackError.h"
34 #include "AliTRDqaGuiBlackGlobal.h"
35 #include "AliTRDqaGuiBlackGTU.h"
36
37 #include "TGTab.h"
38
39 ClassImp(AliTRDqaGuiMainBlack)
40
41 ////////////////////////////////////////////////////////////////////////////////
42
43 AliTRDqaGuiMainBlack::AliTRDqaGuiMainBlack(TGWindow *parent) 
44 : TGMainFrame(parent, 400, 400),
45   fGTabPanel(0),
46   fGSM(0),
47   fGChamber(0),
48   fGError(0),
49   fGGlobal(0),
50   fGGTU(0)
51 {
52   //
53   // Main constructor
54   //
55   
56   fGTabPanel = new TGTab(this);
57   fGSM       = new AliTRDqaGuiBlackSM(fGTabPanel);
58   fGChamber  = new AliTRDqaGuiBlackChamber(fGTabPanel);
59   fGError    = new AliTRDqaGuiBlackError(fGTabPanel);
60   fGGlobal   = new AliTRDqaGuiBlackGlobal(fGTabPanel);
61   fGGTU      = new AliTRDqaGuiBlackGTU(fGTabPanel);
62
63   fGChamber->SetRangePed(8, 11);
64   fGChamber->SetRangeNoise(0.5, 2);
65
66   fGSM->SetRangePed(8, 11);
67   fGSM->SetRangeNoise(0.5, 3);
68
69   fGTabPanel->AddTab("GTU status", fGGTU);
70   fGTabPanel->AddTab("Global View", fGGlobal);
71   fGTabPanel->AddTab("Super Module", fGSM);
72   fGTabPanel->AddTab("Chamber", fGChamber);
73   fGTabPanel->AddTab("Reader Error", fGError);
74
75
76   AddFrame(fGTabPanel);
77   
78   SetWindowName("TRD QA -- Black Events");
79   MapSubwindows();
80   MapWindow();
81   Resize(GetDefaultSize());
82 }
83
84 ////////////////////////////////////////////////////////////////////////////////
85  
86 void AliTRDqaGuiMainBlack::SetQAFile(const char *file) 
87 {
88   //
89   // Set the QA file
90   //
91  
92   fGChamber->SetQAFile(file);
93   fGSM->SetQAFile(file);
94   fGError->SetQAFile(file);
95   fGGlobal->SetQAFile(file);
96   fGGTU->SetQAFile(file);
97 }
98
99 ////////////////////////////////////////////////////////////////////////////////