]>
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 | ||
02f3bfcc | 51 | for (Int_t i = 0; i < 4; i++) { |
52 | fGESDs[i] = 0x0; | |
53 | } | |
54 | ||
36f55715 | 55 | } |
56 | ||
57 | //////////////////////////////////////////////////////////////////////////////// | |
58 | ||
59 | AliTRDqaGuiMain::AliTRDqaGuiMain(TGWindow *parent) : | |
60 | TGMainFrame(parent, 400, 400), | |
61 | fGTabPanel(0), | |
62 | fGDet(0), | |
63 | fGSM(0), | |
64 | fGStack(0) | |
65 | { | |
66 | // | |
67 | // main constructor | |
68 | // | |
69 | ||
70 | fGTabPanel = new TGTab(this); | |
71 | fGDet = new AliTRDqaGuiClusters(fGTabPanel); | |
72 | fGSM = new AliTRDqaGuiClustersSM(fGTabPanel); | |
73 | fGStack = new AliTRDqaGuiClustersStack(fGTabPanel); | |
74 | fGESDs[0] = new AliTRDqaGuiESDs(fGTabPanel,0); | |
75 | fGESDs[1] = new AliTRDqaGuiESDs(fGTabPanel,1); | |
9b99c029 | 76 | fGESDs[2] = new AliTRDqaGuiESDs(fGTabPanel,2); |
f5fd37e8 | 77 | fGESDs[3] = new AliTRDqaGuiESDs(fGTabPanel,3); |
36f55715 | 78 | |
79 | fGTabPanel->AddTab("Clusters", fGDet); | |
80 | fGTabPanel->AddTab("Clusters - Super Module", fGSM); | |
81 | fGTabPanel->AddTab("Clusters - Stack", fGStack); | |
f5fd37e8 | 82 | fGTabPanel->AddTab("ESDs (efficiency)", fGESDs[0]); |
83 | fGTabPanel->AddTab("ESDs (track quality)", fGESDs[1]); | |
84 | fGTabPanel->AddTab("ESDs (PID)", fGESDs[2]); | |
85 | fGTabPanel->AddTab("ESDs (dE/dX)", fGESDs[3]); | |
36f55715 | 86 | |
87 | AddFrame(fGTabPanel); | |
88 | ||
89 | SetWindowName("TRD QA"); | |
90 | MapSubwindows(); | |
91 | MapWindow(); | |
92 | Resize(GetDefaultSize()); | |
93 | } | |
94 | ||
95 | //////////////////////////////////////////////////////////////////////////////// | |
96 | ||
97 | void AliTRDqaGuiMain::SetQAFile(const char *file) { | |
98 | // | |
99 | // sets a file with histograms | |
100 | // | |
101 | ||
102 | fGDet->SetQAFile(file); | |
103 | fGSM->SetQAFile(file); | |
104 | fGStack->SetQAFile(file); | |
105 | fGESDs[0]->SetQAFile(file); | |
106 | fGESDs[1]->SetQAFile(file); | |
9b99c029 | 107 | fGESDs[2]->SetQAFile(file); |
f5fd37e8 | 108 | fGESDs[3]->SetQAFile(file); |
36f55715 | 109 | } |
110 | ||
111 | //////////////////////////////////////////////////////////////////////////////// |