message: Add protection for histogram filling
diff: @@ -91,33 +91,45 @@ class AliFemtoDreamCorrHists {
  }
  ;
  void FillPtQADist(int i, float kstar, float pt1, float pt2) {
  + if (!fMinimalBooking) {
  // TODO for the moment the threshold is hardcoded to 200 MeV/c
  if (fPtQADist[i] && kstar < 0.2) {
  fPtQADist[i]->Fill(pt1, pt2);
  }
  }
  + }
  void FillPtSEOneQADist(int i, float pt, int mult) {
  + if (!fMinimalBooking) {
  fPtQADistSEPartOne[i]->Fill(pt, mult);
  }
  + }
  void FillPtSETwoQADist(int i, float pt, int mult) {
  + if (!fMinimalBooking) {
  fPtQADistSEPartTwo[i]->Fill(pt, mult);
  }
  + }
  void FillPtMEOneQADist(int i, float pt, int mult) {
  + if (!fMinimalBooking) {
  fPtQADistMEPartOne[i]->Fill(pt, mult);
  }
  + }
  void FillPtMETwoQADist(int i, float pt, int mult) {
  + if (!fMinimalBooking) {
  fPtQADistMEPartTwo[i]->Fill(pt, mult);
  }
  + }
  void FillMassQADist(int i, float kstar, float invMass1, float invMass2) {
  + if (!fMinimalBooking) {
  if (fMassQADistPart1[i] && fMassQADistPart2[i]) {
  fMassQADistPart1[i]->Fill(invMass1, kstar);
  fMassQADistPart2[i]->Fill(invMass2, kstar);
  }
  -
  + }
  }
  void FillPairInvMassQAD(int i, AliFemtoDreamBasePart &part1,
  AliFemtoDreamBasePart &part2) {
  + if (!fMinimalBooking) {
  if (fPairInvMassQAD[i]) {
  TVector3 momPart1 = part1.GetMomentum();
  TVector3 momPart2 = part2.GetMomentum();
  @@ -131,6 +143,7 @@ class AliFemtoDreamCorrHists {
  fPairInvMassQAD[i]->Fill(trackSum.M());
  }
  }
  + }
  void FillMixedEventMultDist(int i, int iMult, float RelK) {
  if (fMixedEventMultDist[i])
  fMixedEventMultDist[i]->Fill(RelK, iMult);
  