-// $Id: AliAnalysisTaskRho.cxx 58408 2012-09-03 07:00:58Z loizides $
+// $Id$
//
// Calculation of rho from a collection of jets.
// If scale function is given the scaled rho will be exported
Double_t OccCorr=0.0;
if(TotaljetArea>0) OccCorr=TotaljetAreaPhys/TotaljetArea;
- fHistOccCorrvsCent->Fill(fCent, OccCorr);
+ if (fCreateHisto)
+ fHistOccCorrvsCent->Fill(fCent, OccCorr);
if (NjetAcc > 0) {
//find median value