Minor fix for warning about destructor call for TF1 in SetModulationFit
authormvl <mvl@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 8 Aug 2013 12:57:47 +0000 (12:57 +0000)
committermvl <mvl@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 8 Aug 2013 12:57:47 +0000 (12:57 +0000)
PWGJE/EMCALJetTasks/AliAnalysisTaskLocalRho.cxx
PWGJE/EMCALJetTasks/AliAnalysisTaskLocalRho.h

index ef13892..4f60b89 100644 (file)
@@ -970,3 +970,8 @@ void AliAnalysisTaskLocalRho::Terminate(Option_t *)
     // terminate
 }
 //_____________________________________________________________________________
+void AliAnalysisTaskLocalRho::SetModulationFit(TF1* fit) {
+    // Set function to fit modulation
+    if (fFitModulation) delete fFitModulation;
+    fFitModulation = fit; 
+}
index cb450ed..c1bfd52 100644 (file)
@@ -66,8 +66,7 @@ class AliAnalysisTaskLocalRho : public AliAnalysisTaskEmcalJet
                                                                                  fUserSuppliedV3 = j; }
         void                    SetOnTheFlyResCorrection(TH1F* r2, TH1F* r3)    {fUserSuppliedR2 = r2;
                                                                                  fUserSuppliedR3 = r3; }
-        void                    SetModulationFit(TF1* fit)                      {if (fFitModulation) delete fFitModulation;
-                                                                                 fFitModulation = fit; }
+        void                    SetModulationFit(TF1* fit);
         void                    SetModulationFitMinMaxP(Float_t m, Float_t n)   {fMinPvalue = m; fMaxPvalue = n; }
         void                    SetModulationFitType(fitModulationType type)    {fFitModulationType = type; }
         void                    SetQCnRecoveryType(qcRecovery type)             {fQCRecovery = type; }