]> 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 45263c4d3908132742372832445b06a3a342f848..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
 
@@ -34,14 +34,15 @@ AliAnalysisTaskRho::AliAnalysisTaskRho(const char *name, Bool_t histo) :
   // Constructor.
 }
 
+
 //________________________________________________________________________
 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;
@@ -101,14 +102,15 @@ Bool_t AliAnalysisTaskRho::Run()
     ++NjetAcc;
   }
 
+
   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);
     }
   }