]>
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: 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); | |
9b99c029 | 72 | fGESDs[2] = new AliTRDqaGuiESDs(fGTabPanel,2); |
f5fd37e8 | 73 | fGESDs[3] = new AliTRDqaGuiESDs(fGTabPanel,3); |
36f55715 | 74 | |
75 | fGTabPanel->AddTab("Clusters", fGDet); | |
76 | fGTabPanel->AddTab("Clusters - Super Module", fGSM); | |
77 | fGTabPanel->AddTab("Clusters - Stack", fGStack); | |
f5fd37e8 | 78 | fGTabPanel->AddTab("ESDs (efficiency)", fGESDs[0]); |
79 | fGTabPanel->AddTab("ESDs (track quality)", fGESDs[1]); | |
80 | fGTabPanel->AddTab("ESDs (PID)", fGESDs[2]); | |
81 | fGTabPanel->AddTab("ESDs (dE/dX)", fGESDs[3]); | |
36f55715 | 82 | |
83 | AddFrame(fGTabPanel); | |
84 | ||
85 | SetWindowName("TRD QA"); | |
86 | MapSubwindows(); | |
87 | MapWindow(); | |
88 | Resize(GetDefaultSize()); | |
89 | } | |
90 | ||
91 | //////////////////////////////////////////////////////////////////////////////// | |
92 | ||
93 | void AliTRDqaGuiMain::SetQAFile(const char *file) { | |
94 | // | |
95 | // sets a file with histograms | |
96 | // | |
97 | ||
98 | fGDet->SetQAFile(file); | |
99 | fGSM->SetQAFile(file); | |
100 | fGStack->SetQAFile(file); | |
101 | fGESDs[0]->SetQAFile(file); | |
102 | fGESDs[1]->SetQAFile(file); | |
9b99c029 | 103 | fGESDs[2]->SetQAFile(file); |
f5fd37e8 | 104 | fGESDs[3]->SetQAFile(file); |
36f55715 | 105 | } |
106 | ||
107 | //////////////////////////////////////////////////////////////////////////////// |