if (diffTreatment == kMCFlags)
return mcProcessType;
+ if (!esd)
+ {
+ Printf("ERROR: AliPWG0Helper::GetEventProcessType: diffTreatment != kMCFlags and esd == 0");
+ return kInvalidProcess;
+ }
+
Float_t cms = esd->GetESDRun()->GetBeamEnergy();
if (esd->GetESDRun()->IsBeamEnergyIsSqrtSHalfGeV())
cms *= 2;
fFiredChips->Draw("COLZ");
}
- if (fPartEta[0])
+ if (fPartEta[0] && fPartEta[1] && fPartEta[2] && fEvents && fMultVtx && fMult)
{
Int_t events1 = (Int_t) fEvents->Integral(fEvents->GetXaxis()->FindBin(-9.9), fEvents->GetXaxis()->FindBin(-0.001));
Int_t events2 = (Int_t) fEvents->Integral(fEvents->GetXaxis()->FindBin(0.001), fEvents->GetXaxis()->FindBin(9.9));
fData->ResetErrorsOnCorrections();
fData->Multiply();
- if (correctionType >= AlidNdEtaCorrection::kVertexReco)
+ if (correction && correctionType >= AlidNdEtaCorrection::kVertexReco)
{
// There are no events with vertex that have 0 multiplicity, therefore
// populate bin with 0 multiplicity with the following idea:
dataHist->GetYaxis()->SetRange(dataHist->GetYaxis()->FindBin(-0.8), dataHist->GetYaxis()->FindBin(0.8));
Float_t etaWidth = 1.6;
- TH1D* ptHist = dynamic_cast<TH1D*> (dataHist->Project3D("ze"));
+ TH1D* ptHist = static_cast<TH1D*> (dataHist->Project3D("ze"));
for (Int_t i=1; i<=fPtDist->GetNbinsX(); ++i)
{