#include "AliHLTHOMERBlockDesc.h"
#include "TCanvas.h"
#include "AliHLTEveBase.h"
-#include "AliEveHOMERManager.h"
+#include "AliEveHLTEventManager.h"
#include "TEveManager.h"
#include "TEvePointSet.h"
#include "TColor.h"
ClassImp(AliHLTEveTPC)
AliHLTEveTPC::AliHLTEveTPC() :
- AliHLTEveBase(),
+ AliHLTEveBase("TPC Clusters"),
fEveClusters(NULL),
fEveColClusters(NULL),
fNColorBins(15),
if(!fEveColClusters){
fEveColClusters = CreatePointSetArray();
- fEventManager->GetEveManager()->AddElement(fEveColClusters);
+ AddElement(fEveColClusters);
}
ProcessClusters(block, fEveClusters, fEveColClusters);
void AliHLTEveTPC::UpdateElements() {
//See header file for documentation
- if(fCanvas) fCanvas->Update();
if(fEveClusters) fEveClusters->ResetBBox();
+
+ if (fHistQMax || fHistQMaxOverCharge || fHistCharge )
+ // DrawHistograms();
+
+ if(fCanvas) fCanvas->Update();
// if(fEveColClusters){
// for (Int_t ib = 0; ib <= fNColorBins + 1; ++ib) {
//See header file for documentation
- if (!fCanvas) {
- fCanvas = CreateCanvas("TPC QA", "TPC QA");
- fCanvas->Divide(2, 2);
- fHistCharge = new TH1F("ClusterCharge","ClusterCharge",100,0,500);
- fHistQMax = new TH1F("QMax","QMax",50,0,250);
- fHistQMaxOverCharge = new TH1F("QMaxOverCharge","QMaxOverCharge",50,0,1);
- }
+ // if(!fHistCharge) fHistCharge = new TH1F("ClusterCharge","ClusterCharge",100,0,500);
+ // if(!fHistQMax) fHistQMax = new TH1F("QMax","QMax",50,0,250);
+ // if(!fHistQMaxOverCharge) fHistQMaxOverCharge = new TH1F("QMaxOverCharge","QMaxOverCharge",50,0,1);
Int_t slice = block->GetSubDetector();
if (contCol)
contCol->Fill(cos*sp->fX - sin*sp->fY, sin*sp->fX + cos*sp->fY, sp->fZ, sp->fCharge);
- fHistCharge->Fill(sp->fCharge);
- fHistQMax->Fill(sp->fQMax);
- fHistQMaxOverCharge->Fill(((Float_t)sp->fQMax)/((Float_t)sp->fCharge));
+
+ // fHistCharge->Fill(sp->fCharge);
+ // fHistQMax->Fill(sp->fQMax);
+ // fHistQMaxOverCharge->Fill(((Float_t)sp->fQMax)/((Float_t)sp->fCharge));
}
}
+
+ cont->ElementChanged();
+
+ if(contCol) contCol->ElementChanged();
+
+ return 0;
+
+
+}
+
+void AliHLTEveTPC::DrawHistograms() {
+ //See header file for documentation
+ if (!fCanvas) {
+ fCanvas = CreateCanvas("TPC Cl QA", "TPC Cluster QA");
+ fCanvas->Divide(2, 2);
+ }
+
Int_t icd = 1;
fCanvas->cd(icd++);
fHistCharge->Draw();
fCanvas->cd(icd++);
fHistQMaxOverCharge->Draw();
fCanvas->cd();
-
- cont->ElementChanged();
- contCol->ElementChanged();
-
- return 0;
-
+
}
-
-