]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGJE/EMCALJetTasks/AliAnalysisTaskRho.cxx
Added histograms for event centrality vs ZNA vs leading jet pT
[u/mrichter/AliRoot.git] / PWGJE / EMCALJetTasks / AliAnalysisTaskRho.cxx
index 39e9ad43806f01426dc6af71aa1853a4002c16ba..27320a8110d71f905f43565d130d770d17483e19 100644 (file)
@@ -2,7 +2,7 @@
 //
 // Calculation of rho from a collection of jets.
 // If scale function is given the scaled rho will be exported
-// with the name as "fRhoName".apppend("_Scaled").
+// with the name as "fOutRhoName".Apppend("_Scaled").
 //
 // Authors: R.Reed, S.Aiola
 
@@ -40,9 +40,9 @@ Bool_t AliAnalysisTaskRho::Run()
 {
   // Run the analysis.
 
-  fRho->SetVal(0);
-  if (fRhoScaled)
-    fRhoScaled->SetVal(0);
+  fOutRho->SetVal(0);
+  if (fOutRhoScaled)
+    fOutRhoScaled->SetVal(0);
 
   if (!fJets)
     return kFALSE;
@@ -106,11 +106,11 @@ Bool_t AliAnalysisTaskRho::Run()
   if (NjetAcc > 0) {
     //find median value
     Double_t rho = TMath::Median(NjetAcc, rhovec);
-    fRho->SetVal(rho);
+    fOutRho->SetVal(rho);
 
-    if (fRhoScaled) {
+    if (fOutRhoScaled) {
       Double_t rhoScaled = rho * GetScaleFactor(fCent);
-      fRhoScaled->SetVal(rhoScaled);
+      fOutRhoScaled->SetVal(rhoScaled);
     }
   }