message: avoid long if statement, replace in MC filling, GetNCells by nCells with weight
diff: @@ -1412,26 +1412,30 @@ void AliAnaClusterShapeCorrelStudies::ClusterShapeHistograms
  if(fStudyExotic)
  fhClusterMaxCellECrossM02->Fill(energy, eCrossFrac, m02, GetEventWeight());
  - if(matchedPID >= 0 && matchedPID < 3)
  - {
  + //
  + // Fill histograms only for PID
  + //
  + if ( matchedPID < 0 || matchedPID > 2 ) return;
  +
  fhClusterMaxCellDiffM02[matchedPID]->Fill(energy, maxFrac, m02, GetEventWeight());
  fhClusterTimeEnergyM02 [matchedPID]->Fill(energy, tmax , m02, GetEventWeight());
  fhNCellsPerClusterM02 [matchedPID]->Fill(energy, nCell , m02, GetEventWeight());
  fhNCellsPerClusterM20 [matchedPID]->Fill(energy, nCell , m20, GetEventWeight());
  + fhDeltaIANCells [matchedPID]->Fill(energy, nCell , dIA , GetEventWeight());
  + fhDeltaIATotNCells [matchedPID]->Fill(energy, nCell , dIATot, GetEventWeight());
  +
  if ( nCell > 4 ) // it makes sense only for significant size histograms
  {
  fhDeltaIEtaDeltaIPhi[matchedPID]->Fill(energy, dIeta, dIphi, GetEventWeight());
  fhDeltaIA [matchedPID]->Fill(energy, dIA , GetEventWeight());
  fhDeltaIAM02 [matchedPID]->Fill(energy, m02 , dIA , GetEventWeight());
  fhDeltaIAM20 [matchedPID]->Fill(energy, m20 , dIA , GetEventWeight());
  - fhDeltaIANCells [matchedPID]->Fill(energy, nCell, dIA , GetEventWeight());
  fhDeltaIEtaDeltaIPhiTot[matchedPID]->Fill(energy,dIetaPos-dIetaNeg, dIphiPos-dIphiNeg, GetEventWeight());
  fhDeltaIATot [matchedPID]->Fill(energy, dIATot , GetEventWeight());
  fhDeltaIATotM02 [matchedPID]->Fill(energy, m02 , dIATot, GetEventWeight());
  fhDeltaIATotM20 [matchedPID]->Fill(energy, m20 , dIATot, GetEventWeight());
  - fhDeltaIATotNCells [matchedPID]->Fill(energy, nCell, dIATot, GetEventWeight());
  }
  Float_t l0 = 0., l1 = 0.;
  @@ -1462,13 +1466,12 @@ void AliAnaClusterShapeCorrelStudies::ClusterShapeHistograms
  fhOriginE [matchedPID]->Fill(energy, mcIndex, GetEventWeight());
  fhOriginM02[matchedPID]->Fill(energy, mcIndex, m02, GetEventWeight());
  - if ( clus->GetNCells() > 4 )
  + if ( nCell > 4 )
  {
  fhDeltaIAOrigin [matchedPID]->Fill(energy, mcIndex, dIA , GetEventWeight());
  fhDeltaIATotOrigin[matchedPID]->Fill(energy, mcIndex, dIATot, GetEventWeight());
  }
  } // MC
  - } // match PID ok
  }
  //____________________________________________________________________________
  