]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
fix to properly open PYTHIA cross section file for histo scaling in AliEn
authorkread <kread@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 30 Sep 2009 15:14:00 +0000 (15:14 +0000)
committerkread <kread@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 30 Sep 2009 15:14:00 +0000 (15:14 +0000)
PWG4/macros/electrons/anaJete.C

index 01504154c9a75eead348be23618a23a92113a7ef..cc843c9e9516f5704bc9627a4f771515dcb84ef7 100755 (executable)
@@ -647,7 +647,7 @@ void GetXsection(Int_t nEventsPerFile, TString filexs)
   // The xsection and ntrials global variables are updated per each file.\r
   // The average of these cuantities should be calculated after.\r
 \r
-  TFile *fxs = new TFile(filexs,"R");\r
+  TFile *fxs = TFile::Open(filexs);\r
   if(kInputData =="AOD") { //needs improvement, in case of train with ESDs, reading output AODs for example this is wrong.\r
     TList *l = (TList*) fxs->Get("cFilterList");\r
     TH1F * hxs = l->FindObject("h1Xsec") ;\r