updated
authorssakai <ssakai@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 6 Sep 2013 16:45:08 +0000 (16:45 +0000)
committerssakai <ssakai@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 6 Sep 2013 16:45:08 +0000 (16:45 +0000)
PWGHF/hfe/macros/AddTaskFlowTPCEMCalQCSP.C

index dd3bc06..cd43cda 100644 (file)
@@ -51,7 +51,7 @@ AliAnalysisTaskFlowTPCEMCalQCSP*  AddTaskFlowTPCEMCalQCSP(
                                                           Int_t RPFilterBit = 1,\r
                                                           Bool_t op_ang = kFALSE,\r
                                                           Double_t op_angle_cut=3.,\r
-                                                          const char *histoflatname = "alien:///alice/cern.ch/user/a/adubla/CentrDistrBins005.root"\r
+                                                          TString histoflatname = "alien:///alice/cern.ch/user/a/adubla/CentrDistrBins005.root"\r
                                                           )\r
 \r
 {\r
@@ -84,7 +84,7 @@ AliAnalysisTaskFlowTPCEMCalQCSP*  AddTaskFlowTPCEMCalQCSP(
     taskHFE->SetTrigger(Trigger);\r
     \r
     if(Trigger==0){\r
-        TFile *fFlat=TFile::Open(histoflatname,"READ");\r
+        TFile *fFlat=TFile::Open(histoflatname.Data());\r
         TCanvas *c=fFlat->Get("cintegral");\r
         TH1F *hfl=(TH1F*)c->FindObject("hint");\r
         taskHFE->SetHistoForCentralityFlattening(hfl,centrMin,centrMax,0.,0);\r