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

index eb565c1..70a3141 100644 (file)
@@ -1595,6 +1595,13 @@ void AliAnalysisTaskRhoVnModulation::Terminate(Option_t *)
     }
 }
 //_____________________________________________________________________________
+void AliAnalysisTaskRhoVnModulation::SetModulationFit(TF1* fit) 
+{
+// set modulation fit
+    if (fFitModulation) delete fFitModulation;
+    fFitModulation = fit; 
+}
+//_____________________________________________________________________________
 TH1F* AliAnalysisTaskRhoVnModulation::GetResolutionFromOuptutFile(detectorType det, Int_t h, TArrayD* cen)
 {
     // INTERFACE METHOD FOR OUTPUTFILE
index bd2f434..d5ee00c 100644 (file)
@@ -78,8 +78,7 @@ class AliAnalysisTaskRhoVnModulation : public AliAnalysisTaskEmcalJet
         void                    SetNameRho(const char* name)                    {fNameRho = name; }
         void                    SetLocalRhoName(TString name)                   {fLocalRhoName = name; }
         void                    SetRandomSeed(TRandom3* r)                      {if (fRandom) delete fRandom; fRandom = r; }
-        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; }