]>
Commit | Line | Data |
---|---|---|
36f55715 | 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" | |
a73a87be | 33 | #include "AliTRDqaGuiBlackError.h" |
34 | #include "AliTRDqaGuiBlackGlobal.h" | |
6a9add6f | 35 | #include "AliTRDqaGuiBlackGTU.h" |
36f55715 | 36 | |
37 | #include "TGTab.h" | |
38 | ||
39 | ClassImp(AliTRDqaGuiMainBlack) | |
40 | ||
41 | //////////////////////////////////////////////////////////////////////////////// | |
42 | ||
80c0ced7 | 43 | AliTRDqaGuiMainBlack::AliTRDqaGuiMainBlack(TGWindow *parent) |
44 | : TGMainFrame(parent, 400, 400), | |
45 | fGTabPanel(0), | |
46 | fGSM(0), | |
a73a87be | 47 | fGChamber(0), |
48 | fGError(0), | |
6a9add6f | 49 | fGGlobal(0), |
50 | fGGTU(0) | |
36f55715 | 51 | { |
52 | // | |
53 | // Main constructor | |
54 | // | |
55 | ||
56 | fGTabPanel = new TGTab(this); | |
57 | fGSM = new AliTRDqaGuiBlackSM(fGTabPanel); | |
58 | fGChamber = new AliTRDqaGuiBlackChamber(fGTabPanel); | |
a73a87be | 59 | fGError = new AliTRDqaGuiBlackError(fGTabPanel); |
60 | fGGlobal = new AliTRDqaGuiBlackGlobal(fGTabPanel); | |
6a9add6f | 61 | fGGTU = new AliTRDqaGuiBlackGTU(fGTabPanel); |
a73a87be | 62 | |
36f55715 | 63 | fGChamber->SetRangePed(8, 11); |
64 | fGChamber->SetRangeNoise(0.5, 2); | |
65 | ||
66 | fGSM->SetRangePed(8, 11); | |
9b99c029 | 67 | fGSM->SetRangeNoise(0.5, 3); |
36f55715 | 68 | |
6a9add6f | 69 | fGTabPanel->AddTab("GTU status", fGGTU); |
a73a87be | 70 | fGTabPanel->AddTab("Global View", fGGlobal); |
36f55715 | 71 | fGTabPanel->AddTab("Super Module", fGSM); |
72 | fGTabPanel->AddTab("Chamber", fGChamber); | |
a73a87be | 73 | fGTabPanel->AddTab("Reader Error", fGError); |
74 | ||
75 | ||
36f55715 | 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); | |
a73a87be | 94 | fGError->SetQAFile(file); |
95 | fGGlobal->SetQAFile(file); | |
6a9add6f | 96 | fGGTU->SetQAFile(file); |
36f55715 | 97 | } |
98 | ||
99 | //////////////////////////////////////////////////////////////////////////////// |