* about the suitability of this software for any purpose. It is *
* provided "as is" without express or implied warranty. *
**************************************************************************/
-
////////////////////////////////////////////////////////////////////////////
//
// QA histogram viewer
+// scans the current directory fro files with QA
+// and plots them.
//
// origin: Mikolaj Krzewicki, Nikhef, Mikolaj.Krzewicki@cern.ch
//
///////////////////////////////////////////////////////////////////////////
+#include <TApplication.h>
+#include <TGButton.h>
+#include <TGFrame.h>
+#include <TFrame.h>
+#include <TRootEmbeddedCanvas.h>
+#include <TGStatusBar.h>
+#include <TCanvas.h>
+#include <TH1.h>
+#include <TF1.h>
+#include <TString.h>
+#include <TGComboBox.h>
+#include <TList.h>
+#include "AliQAHistNavigator.h"
#include "AliQAHistViewer.h"
ClassImp(AliQAHistViewer)
//_________________________________________________________________________
void AliQAHistViewer::DoDrawNext()
{
+ //draw next histogram
Int_t rows = 2;
Int_t cols = 2;
TString oldDirStr;
break;
}
}
+ c1->cd(0);
c1->Update();
}
//_________________________________________________________________________
void AliQAHistViewer::DoDrawPrev()
{
+ //draw previous histogram
Int_t rows = 2;
Int_t cols = 2;
TString oldDirStr;
break;
}
}
+ c1->cd(0);
c1->Update();
}
//_________________________________________________________________________
void AliQAHistViewer::DoExit()
{
+ //exit
printf("Exit application...");
gApplication->Terminate(0);
}
//_________________________________________________________________________
void AliQAHistViewer::FillComboBoxWithListEntries( TGComboBox* box, const TList* list )
{
+ //fill the combobox with list entries
box->RemoveAll();
Int_t i=0;
TIter listiter(list);
//_________________________________________________________________________
void AliQAHistViewer::UpdateAllPathComboBoxes()
{
+ //make gui elements up to date
if (!fQANavigator->InitOK()) return;
FillComboBoxWithListEntries( fFileListBox, (TList*)fQANavigator->GetFileList()->GetDirs() );
FillComboBoxWithListEntries( fDetectorListBox, (TList*)fQANavigator->GetDetectorList()->GetDirs() );
//_________________________________________________________________________
void AliQAHistViewer::DoSetFile( Int_t s )
{
+ //set file from user choice
fQANavigator->SetFile(s);
DoDrawNext();
}
//_________________________________________________________________________
void AliQAHistViewer::DoSetDetector( Int_t s )
{
+ //set detector number from user choice
fQANavigator->SetDetector(s);
DoDrawNext();
}
//_________________________________________________________________________
void AliQAHistViewer::DoSetLevel( Int_t s )
{
+ //set QA level
fQANavigator->SetLevel(s);
DoDrawNext();
}
//_________________________________________________________________________
void AliQAHistViewer::DoSetHistogram( Int_t s )
{
+ //set histogram
fQANavigator->SetItem(s);
DoDrawNext();
}
//_________________________________________________________________________
void AliQAHistViewer::DoSetExpertMode(Bool_t mode)
{
+ //set expert mode
fQANavigator->SetExpertMode(mode);
DoDrawNext();
}