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 "qaGui/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
53 ////////////////////////////////////////////////////////////////////////////////
55 AliTRDqaGuiMain::AliTRDqaGuiMain(TGWindow *parent) :
56 TGMainFrame(parent, 400, 400),
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);
73 fGTabPanel->AddTab("Clusters", fGDet);
74 fGTabPanel->AddTab("Clusters - Super Module", fGSM);
75 fGTabPanel->AddTab("Clusters - Stack", fGStack);
76 fGTabPanel->AddTab("ESDs (1)", fGESDs[0]);
77 fGTabPanel->AddTab("ESDs (2)", fGESDs[1]);
81 SetWindowName("TRD QA");
84 Resize(GetDefaultSize());
87 ////////////////////////////////////////////////////////////////////////////////
89 void AliTRDqaGuiMain::SetQAFile(const char *file) {
91 // sets a file with histograms
94 fGDet->SetQAFile(file);
95 fGSM->SetQAFile(file);
96 fGStack->SetQAFile(file);
97 fGESDs[0]->SetQAFile(file);
98 fGESDs[1]->SetQAFile(file);
101 ////////////////////////////////////////////////////////////////////////////////