Fix Coverity
authorakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Dec 2011 13:58:20 +0000 (13:58 +0000)
committerakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Dec 2011 13:58:20 +0000 (13:58 +0000)
PWG2/FEMTOSCOPY/AliFemtoUser/AliFemtoModelCorrFctnDirectYlm.cxx

index a6c3ad3..b522112 100644 (file)
@@ -75,11 +75,11 @@ AliFemtoModelCorrFctnDirectYlm& AliFemtoModelCorrFctnDirectYlm::operator=(const
   fUseLCMS = aCorrFctn.fUseLCMS;
 
   if (aCorrFctn.fCYlmTrue)
-    fCYlmTrue = dynamic_cast<AliFemtoCorrFctnDirectYlm*>(aCorrFctn.fCYlmTrue->Clone());
+    fCYlmTrue = new TH1D(*aCorrFctn.fCYlmTrue);
   else fCYlmTrue = 0;
 
   if (aCorrFctn.fCYlmFake)
-    fCYlmFake = dynamic_cast<AliFemtoCorrFctnDirectYlm*>(aCorrFctn.fCYlmFake->Clone());
+    fCYlmFake = new TH1D(*aCorrFctn.fCYlmFake);
   else fCYlmFake = 0;
 
   if (aCorrFctn.fNumeratorTrue)