1 /**************************************************************************
2 * This file is property of and copyright by the ALICE HLT Project *
3 * ALICE Experiment at CERN, All rights reserved. *
5 * Primary Authors: Svein Lindal <slindal@fys.uio.no > *
6 * for The ALICE HLT Project. *
8 * Permission to use, copy, modify and distribute this software and its *
9 * documentation strictly for non-commercial purposes is hereby granted *
10 * without fee, provided that the above copyright notice appears in all *
11 * copies and that both the copyright notice and this permission notice *
12 * appear in the supporting documentation. The authors make no claims *
13 * about the suitability of this software for any purpose. It is *
14 * provided "as is" without express or implied warranty. *
15 **************************************************************************/
17 /// @file AliHLTEvePhos.cxx
18 /// @author Svein Lindal <slindal@fys.uio.no>
19 /// @brief ISSD class for the HLT EVE display
21 #include "AliHLTEveISSD.h"
22 #include "TEvePointSet.h"
23 #include "AliHLTHOMERBlockDesc.h"
27 #include "TObjArray.h"
29 ClassImp(AliHLTEveISSD);
31 AliHLTEveISSD::AliHLTEveISSD() :
39 AliHLTEveISSD::~AliHLTEveISSD()
47 void AliHLTEveISSD::SetUpPointSet(TEvePointSet * ps) {
48 //See header file for documentation
49 ps->SetMainColor(kBlue);
50 ps->SetMarkerStyle((Style_t)kFullDotMedium);
54 void AliHLTEveISSD::AddHistogramsToCanvas(AliHLTHOMERBlockDesc* block, TCanvas *canvas, Int_t &cdCount ) {
55 //See header file for documentation
58 if(!f2DCanvas) f2DCanvas = CreateCanvas("ISSD 2D QA", "ISSD 2D QA");
61 if ( ! block->GetClassName().CompareTo("TH1F")) {
62 TH1F* histo = reinterpret_cast<TH1F*>(block->GetTObject());
69 } else if ( ! block->GetClassName().CompareTo("TH2F")) {
70 TH2F *hista = reinterpret_cast<TH2F*>(block->GetTObject());
73 f2DCanvas->cd(f2DHistoCount);
77 } else if ( ! block->GetClassName().CompareTo("TObjArray")) {
78 TIter next((TObjArray*)(block->GetTObject()));
80 while (( object = (TObject*) next())) {
86 if ( !(string.CompareTo(object->ClassName())) ) {
87 TH1F* histo = reinterpret_cast<TH1F*>(object);
93 } else if ( !(string2.CompareTo(object->ClassName()) ) ) {
94 TH2F* histo = reinterpret_cast<TH2F*>(object);
96 f2DCanvas->cd(f2DHistoCount);
102 canvas->cd(); f2DCanvas->cd();
107 void AliHLTEveISSD::UpdateElements() {
108 //See header file for documentation
109 if(fCanvas) fCanvas->Update();
110 if(f2DCanvas) f2DCanvas->Update();
111 if(fPointSet) fPointSet->ElementChanged();
115 void AliHLTEveISSD::ResetElements() {
116 //See header file for documentation
119 if(fPointSet) fPointSet->Reset();