} else {
fMixInfo->FillHistogram(AliMixInfo::kMainEvents, mixEH->CurrentBinIndex());
}
- }
+
if (mixEH->CurrentEntryMix() >= 0)
AliDebug(AliLog::kDebug + 1, Form("Main %lld %d [%lld,%lld] %d", mixEH->CurrentEntry(), mixEH->NumberMixed(), mixEH->CurrentEntryMain(), mixEH->CurrentEntryMix(), mixEH->NumberMixed()));
-
+ }
}
// Post output data.
PostData(1, fOutputList);
AliMultiInputEventHandler *inEvHMain = dynamic_cast<AliMultiInputEventHandler *>(mgr->GetInputEventHandler());
if (inEvHMain) {
AliMixInputEventHandler *mixEH = dynamic_cast<AliMixInputEventHandler *>(inEvHMain->GetFirstMultiInputHandler());
-
+ if (!mixEH) return;
if (fMixInfo) fMixInfo->FillHistogram(AliMixInfo::kMixedEvents, mixEH->CurrentBinIndex());
- if (!mixEH || mixEH->CurrentEntryMix() < 0) {
+ if (mixEH->CurrentEntryMix() < 0) {
AliError("Mix entry is -1 and it should not happen !!!!!");
return ;
}
- if (mixEH)
- AliDebug(AliLog::kDebug, Form("Mixing %lld %d [%lld,%lld] %d", mixEH->CurrentEntry(), mixEH->NumberMixed(), mixEH->CurrentEntryMain(), mixEH->CurrentEntryMix(), mixEH->CurrentBinIndex()));
+ AliDebug(AliLog::kDebug, Form("Mixing %lld %d [%lld,%lld] %d", mixEH->CurrentEntry(), mixEH->NumberMixed(), mixEH->CurrentEntryMain(), mixEH->CurrentEntryMix(), mixEH->CurrentBinIndex()));
}
// Post output data.
PostData(1, fOutputList);
if (index >= 0) {
AliDebug(AliLog::kDebug, Form("index = %d", index));
cut = dynamic_cast<AliMixEventCutObj *>(fListOfEventCuts.At(index));
+ if (!cut) return;
cut->Reset();
while (cut->HasMore()) {
cut->AddStep();
if (index < 0 || index >= timesNum) {
AliError(Form("index=%d is out of range !!!", index));
+ delete [] lenght;
+ delete [] indexes;
return;
}
Int_t cols[4] = { kYellow, kViolet, kRed, kGreen };
style->SetPalette(4, cols);
cMain->cd(2);
+// cMain->SetGrid();
+ if (hMixInfo2D){
hMixInfo2D->SetMaximum(4);
hMixInfo2D->SetStats(0);
hMixInfo2D->SetTitle("");
hMixInfo2D->GetXaxis()->SetNdivisions(510);
hMixInfo2D->GetYaxis()->SetNdivisions(0);
+ }
- cMain->SetGrid();
-// hMixInfo2D->SetBarWidth(1);
-// hMixInfo2D->SetLineColor(kBlack);
-// hMixInfo2D->SetLineWidth(11);
- hMixInfo2D->Draw(Form("COL %s", option));
+ if (hMixInfo2D) hMixInfo2D->Draw(Form("COL %s", option));
//
// TLegend *legend = new TLegend(0.55,0.65,0.76,0.82);
// legend->AddEntry(hOK,"OK","f");
// Function which is run when user move mouse over mix info
//
+ if (!mixInfo) return;
+
TObject *select = gPad->GetSelected();
if (!select) return;
if (!select->InheritsFrom(TH2I::Class())) {
AliInputEventHandler *eh = 0;
TObjArrayIter next(&fInputHandlers);
while ((eh = (AliInputEventHandler *) next())) {
+ if (!eh) continue;
if (fEventPool && fEventPool->GetListOfEventCuts()->GetEntries() > 0) {
entryMix = -1;
if (elNum >= fBufferSize) {