1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
16 /* $Id: AliTRDqaGuiMain.cxx 23871 2008-02-12 11:48:20Z hristov $ */
18 #include "AliTRDqaGuiMain.h"
19 #include "AliTRDqaGuiClusters.h"
20 #include "AliTRDqaGuiClustersSM.h"
21 #include "AliTRDqaGuiClustersStack.h"
22 #include "AliTRDqaGuiESDs.h"
26 ClassImp(AliTRDqaGuiMain)
28 //////////////////////////////////////////////////////////////////////////////////
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
39 //////////////////////////////////////////////////////////////////////////////////
41 AliTRDqaGuiMain::AliTRDqaGuiMain()
48 // Default constructor
51 for (Int_t i = 0; i < 4; i++) {
57 ////////////////////////////////////////////////////////////////////////////////
59 AliTRDqaGuiMain::AliTRDqaGuiMain(TGWindow *parent) :
60 TGMainFrame(parent, 400, 400),
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);
76 fGESDs[2] = new AliTRDqaGuiESDs(fGTabPanel,2);
77 fGESDs[3] = new AliTRDqaGuiESDs(fGTabPanel,3);
79 fGTabPanel->AddTab("Clusters", fGDet);
80 fGTabPanel->AddTab("Clusters - Super Module", fGSM);
81 fGTabPanel->AddTab("Clusters - Stack", fGStack);
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]);
89 SetWindowName("TRD QA");
92 Resize(GetDefaultSize());
95 ////////////////////////////////////////////////////////////////////////////////
97 void AliTRDqaGuiMain::SetQAFile(const char *file) {
99 // sets a file with histograms
102 fGDet->SetQAFile(file);
103 fGSM->SetQAFile(file);
104 fGStack->SetQAFile(file);
105 fGESDs[0]->SetQAFile(file);
106 fGESDs[1]->SetQAFile(file);
107 fGESDs[2]->SetQAFile(file);
108 fGESDs[3]->SetQAFile(file);
111 ////////////////////////////////////////////////////////////////////////////////