#include "TEveProjectionAxes.h"
#include "TGLWidget.h"
#include "TGLOverlayButton.h"
+#include "TStopwatch.h"
//______________________________________________________________________________
// Allow histograms visualization in 2D and 3D.
fMaxPt(10000),
fChargeIdAE(0),
fTracksIdAE(0),
- fMaxPtAE(0),
+ fMaxPtAE(10000),
fEsd(0),
fPhysicsSelection(0),
fHistopos(0),
fHistopos = new TH2F("histopos","Histo 2d positive", 100, -1.5, 1.5, 80, -pi, pi);
fHistoneg = new TH2F("histoneg","Histo 2d negative", 100, -1.5, 1.5, 80, -pi, pi);
-// fHistoposclone = new TH2F("histoposclone","Histo 2d positive", 100, -1.5, 1.5, 80, -pi, pi);
-// fHistonegclone = new TH2F("histonegclone","Histo 2d positive", 100, -1.5, 1.5, 80, -pi, pi);
+
+ fHistopos->SetDirectory(0);
+ fHistoneg->SetDirectory(0);
fData = new TEveCaloDataHist();
fData->AddHistogram(fHistoneg);
// Getting current tracks for each event, filling histograms
for (int event = 0; event < t->GetEntries(); event++) {
+
t->GetEntry(event);
const AliESDVertex *pv = fEsd->GetPrimaryVertex();
for (Int_t n = 0; n < pv->GetNIndices(); n++ )
{
AliESDtrack *at = fEsd->GetTrack(pv->GetIndices()[n]);
+
if (at->GetSign() > 0) {
fHistopos_all_events->Fill(at->Eta(), getphi(at->Phi()), fabs(at->Pt()));
}
fHistoneg_all_events->Fill(at->Eta(), getphi(at->Phi()), fabs(at->Pt()));
}
}
- }
+ }
} else {
LoadAllData();
}
fData_all_events->DataChanged();
-
+
// Max Pt threshold
if (GetPtMaxAE() >= fMaxPtAE){
for (Int_t binx = 1; binx <= 100; binx++) {
if ( fHisto2d_all_events_slot == 0 ) {
printf("Filling histogram...\n");
+ TStopwatch timer;
+ timer.Start();
// Creating 2D histograms
fHistopos_all_events = new TH2F("fHistopos_all_events","Histo 2d positive",
fHistoneg_all_events = new TH2F("fHistoneg_all_events","Histo 2d negative",
100,-1.5,1.5,80,-pi,pi);
+ fHistopos_all_events->SetDirectory(0);
+ fHistoneg_all_events->SetDirectory(0);
+
fData_all_events = new TEveCaloDataHist();
fData_all_events->AddHistogram(fHistoneg_all_events);
fData_all_events->RefSliceInfo(0).Setup("NegCg:", 0, kBlue);
gEve->Redraw3D(kTRUE);
printf("Filling histogram... Finished\n");
+ timer.Stop();
+ timer.Print();
+
}
return fData_all_events;