small fix
authorddobrigk <david.dobrigkeit.chinellato@cern.ch>
Mon, 30 Jun 2014 12:58:12 +0000 (09:58 -0300)
committerddobrigk <david.dobrigkeit.chinellato@cern.ch>
Mon, 30 Jun 2014 12:58:50 +0000 (09:58 -0300)
PWGLF/STRANGENESS/Cascades/AliPPVsMultUtils.cxx

index 9c610c9..8ea1f97 100644 (file)
@@ -149,12 +149,13 @@ Bool_t AliPPVsMultUtils::LoadCalibration(Int_t lLoadThisCalibration)
     lCalibFile_V0AEq = TFile::Open("$ALICE_ROOT/PWGLF/STRANGENESS/Cascades/corrections/calibration_V0AEq.root");
     lCalibFile_V0CEq = TFile::Open("$ALICE_ROOT/PWGLF/STRANGENESS/Cascades/corrections/calibration_V0CEq.root");
     
-    fBoundaryHisto_V0M   = (TH1F*)lCalibFile_V0M  -> Get(Form("histocalib%i",fRunNumber));
-    fBoundaryHisto_V0A   = (TH1F*)lCalibFile_V0A  -> Get(Form("histocalib%i",fRunNumber));
-    fBoundaryHisto_V0C   = (TH1F*)lCalibFile_V0C  -> Get(Form("histocalib%i",fRunNumber));
-    fBoundaryHisto_V0MEq   = (TH1F*)lCalibFile_V0MEq  -> Get(Form("histocalib%i",fRunNumber));
-    fBoundaryHisto_V0AEq   = (TH1F*)lCalibFile_V0AEq  -> Get(Form("histocalib%i",fRunNumber));
-    fBoundaryHisto_V0CEq   = (TH1F*)lCalibFile_V0CEq  -> Get(Form("histocalib%i",fRunNumber));
+    //check memory consumption later... 
+    fBoundaryHisto_V0M   = (TH1F*)lCalibFile_V0M  -> Get(Form("histocalib%i",fRunNumber)) -> Clone("fBoundaryHisto_V0M");
+    fBoundaryHisto_V0A   = (TH1F*)lCalibFile_V0A  -> Get(Form("histocalib%i",fRunNumber)) -> Clone("fBoundaryHisto_V0A");
+    fBoundaryHisto_V0C   = (TH1F*)lCalibFile_V0C  -> Get(Form("histocalib%i",fRunNumber)) -> Clone("fBoundaryHisto_V0C");
+    fBoundaryHisto_V0MEq   = (TH1F*)lCalibFile_V0MEq  -> Get(Form("histocalib%i",fRunNumber)) -> Clone("fBoundaryHisto_V0MEq");
+    fBoundaryHisto_V0AEq   = (TH1F*)lCalibFile_V0AEq  -> Get(Form("histocalib%i",fRunNumber)) -> Clone("fBoundaryHisto_V0AEq");
+    fBoundaryHisto_V0CEq   = (TH1F*)lCalibFile_V0CEq  -> Get(Form("histocalib%i",fRunNumber)) -> Clone("fBoundaryHisto_V0CEq");
     
     if ( !fBoundaryHisto_V0M   || !fBoundaryHisto_V0A   || !fBoundaryHisto_V0C ||
         !fBoundaryHisto_V0MEq || !fBoundaryHisto_V0AEq || !fBoundaryHisto_V0CEq ){