]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/qaGui/AliTRDqaGuiMainBlack.cxx
Updated QA version (Sylwester)
[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
34 #include "TGTab.h"
35
36 ClassImp(AliTRDqaGuiMainBlack)
37
38 ////////////////////////////////////////////////////////////////////////////////
39
40 AliTRDqaGuiMainBlack::AliTRDqaGuiMainBlack(TGWindow *parent) :
41   TGMainFrame(parent, 400, 400) 
42 {
43   //
44   // Main constructor
45   //
46   
47   fGTabPanel = new TGTab(this);
48   fGSM       = new AliTRDqaGuiBlackSM(fGTabPanel);
49   fGChamber  = new AliTRDqaGuiBlackChamber(fGTabPanel);
50   
51   fGChamber->SetRangePed(8, 11);
52   fGChamber->SetRangeNoise(0.5, 2);
53
54   fGSM->SetRangePed(8, 11);
55   fGSM->SetRangeNoise(0.5, 3);
56
57   fGTabPanel->AddTab("Super Module", fGSM);
58   fGTabPanel->AddTab("Chamber", fGChamber);
59    
60   AddFrame(fGTabPanel);
61   
62   SetWindowName("TRD QA -- Black Events");
63   MapSubwindows();
64   MapWindow();
65   Resize(GetDefaultSize());
66 }
67
68 ////////////////////////////////////////////////////////////////////////////////
69  
70 void AliTRDqaGuiMainBlack::SetQAFile(const char *file) 
71 {
72   //
73   // Set the QA file
74   //
75  
76   fGChamber->SetQAFile(file);
77   fGSM->SetQAFile(file);
78 }
79
80 ////////////////////////////////////////////////////////////////////////////////