message: added fwgteventinachrgvscent
diff: @@ -444,7 +444,7 @@ void AliAnalysisTaskCMWPUuncAch::UserCreateOutputObjects()
  Double_t centRange[11] = {0,5,10,20,30,40,50,60,70,80,90};
  - fHistAChrgVsCent = new TH2F("fHistAChrgVsCent","Ach vs Cent;Cent;Ach",18,0,90,50,-0.5,0.5);
  + fHistAChrgVsCent = new TH2F("fHistAChrgVsCent","Ach vs Cent;Cent;Ach",10,0,90,1000,-1.0,1.0);
  fListHist->Add(fHistAChrgVsCent);
  @@ -1005,16 +1005,16 @@ void AliAnalysisTaskCMWPUuncAch::UserExec(Option_t*) {
  trkWgt = WgtNUA*ptWgtMC;
  if(trkChrg > 0){
  - if (usecorrectedach)
  + //if (usecorrectedach)
  fNumOfPos += trkWgt;
  - else
  - fNumOfPos += 1;
  + //else
  + //fNumOfPos += 1;
  }
  else{
  - if (usecorrectedach)
  + //if (usecorrectedach)
  fNumOfNeg += trkWgt;
  - else
  - fNumOfNeg += 1;
  + //else
  + //fNumOfNeg += 1;
  }
  @@ -1111,11 +1111,13 @@ void AliAnalysisTaskCMWPUuncAch::UserExec(Option_t*) {
  - /*
  + if (usecorrectedach)
  + {
  if(fHCorrectEVNTWGTChrg){
  fWgtEvent=fHCorrectEVNTWGTChrg->GetBinContent(fHCorrectEVNTWGTChrg->GetXaxis()->FindBin(centrality));
  }
  - */
  + }
  +
  Float_t fAchrgNet = (fNumOfPos - fNumOfNeg)/(fNumOfPos + fNumOfNeg); // Efficiency & NUA Corrected!
  fHistAChrgVsCent->Fill(centrality, fAchrgNet, fWgtEvent);
  