printf("Adding CF task using cuts from file %s\n",cutFile);
- TFile* fileCuts = new TFile(cutFile);
+ TFile* fileCuts = TFile::Open(cutFile);
AliRDHFCutsD0toKpi *cutsD0toKpi = (AliRDHFCutsD0toKpi*)fileCuts->Get("D0toKpiCutsStandard");
// check that the fKeepD0fromB flag is set to true when the fKeepD0fromBOnly flag is true
return 0x0;
}
- TFile* fileCuts = new TFile(cutFile);
+ TFile* fileCuts = TFile::Open(cutFile);
AliRDHFCutsD0toKpi *cutsD0toKpi = (AliRDHFCutsD0toKpi*)fileCuts->Get("D0toKpiCutsStandard");
// check that the fKeepD0fromB flag is set to true when the fKeepD0fromBOnly flag is true
return 0x0;
}
- TFile* fileCuts = new TFile(cutFile);
+ TFile* fileCuts = TFile::Open(cutFile);
AliRDHFCutsDplustoKpipi *cutsDplustoKpipi = (AliRDHFCutsDplustoKpipi*)fileCuts->Get("AnalysisCuts");
// check that the fKeepD0fromB flag is set to true when the fKeepD0fromBOnly flag is true
return 0x0;
}
- TFile* fileCuts = new TFile(cutFile);
+ TFile* fileCuts = TFile::Open(cutFile);
AliRDHFCutsLctopKpi *cutsLctopKpi = (AliRDHFCutsLctopKpi*)fileCuts->Get("LctopKpiProdCuts");
// check that the fKeepD0fromB flag is set to true when the fKeepD0fromBOnly flag is true
return 0x0;
}
- TFile* fileCuts = new TFile(cutFile);
+ TFile* fileCuts = TFile::Open(cutFile);
AliRDHFCutsDStartoKpipi *cutsD0toKpi = (AliRDHFCutsDStartoKpipi*)fileCuts->Get("DStartoKpipiCuts");
// check that the fKeepD0fromB flag is set to true when the fKeepD0fromBOnly flag is true
// printf(" cosThetaPoint > %f\n",fD0toKpiCuts[8]);
Bool_t stdcuts=kFALSE;
- TFile* filecuts=new TFile(finname.Data());
+ TFile* filecuts=TFile::Open(finname.Data());
if(!filecuts->IsOpen()){
cout<<"Input file not found: using std cut object"<<endl;
stdcuts=kTRUE;
return NULL;
}
- TFile* filecuts=new TFile("DStartoKpipiCuts.root");
+ TFile* filecuts=TFile::Open("DStartoKpipiCuts.root");
if(!filecuts->IsOpen()){
cout<<"Input file not found: exit"<<endl;
return;
Bool_t stdcuts=kFALSE;
- TFile* filecuts=new TFile("DStartoKpipiCuts.root");
+ TFile* filecuts=TFile::Open("DStartoKpipiCuts.root");
if(!filecuts->IsOpen()){
}
Bool_t stdcuts=kFALSE;
- TFile* filecuts=new TFile(filename.Data());
+ TFile* filecuts=TFile::Open(filename.Data());
if(!filecuts->IsOpen()){
cout<<"Input file not found: using standard cuts"<<endl;
stdcuts=kTRUE;
}
- TFile* filecuts=new TFile(filename.Data());
+ TFile* filecuts=TFile::Open(filename.Data());
if(!filecuts->IsOpen()){
cout<<"Error: Input file not found!"<<endl;
return 0;
}\r
\r
Bool_t stdcuts=kFALSE;\r
- TFile* filecuts=new TFile(filecutsname.Data());\r
+ TFile* filecuts=TFile::Open(filecutsname.Data());\r
if(!filecuts->IsOpen()){\r
cout<<"Input file not found: using std cut object"<<endl;\r
stdcuts=kTRUE;\r
Bool_t stdcuts=kFALSE;
- TFile* filecuts=new TFile(finname.Data());
+ TFile* filecuts=TFile::Open(finname.Data());
if(!filecuts->IsOpen()){
cout<<"Input file not found: using std cut object"<<endl;
stdcuts=kTRUE;
mgr->SetOutputEventHandler(aodHandler);\r
//Cuts loading
- TFile* filecuts=new TFile("Charm4ProngCutsDef.root");
+ TFile* filecuts=TFile::Open("Charm4ProngCutsDef.root");
if(!filecuts->IsOpen()){
cout<<"Input file not found: exit"<<endl;
return;
return NULL;
}
- TFile* filecuts=new TFile(filename.Data());
+ TFile* filecuts=TFile::Open(filename.Data());
if(!filecuts->IsOpen()){
cout<<"Input file not found: exit"<<endl;
return;