//____________________________________________//
// Create tasks
AliChaoticity *ChaoticityTask = new AliChaoticity("ChaoticityTask", MCcase, Tabulatecase, PbPbcase, CentLow, CentHigh, kTRUE);
- if(!ChaoticityTask) exit(-1);
+ if(!ChaoticityTask) return NULL;
mgr->AddTask(ChaoticityTask);
inputFileWeight = TFile::Open(inputFileNameWeight,"OLD");
if (!inputFileWeight){
cout << "Requested file:" << inputFileWeight << " was not opened. ABORT." << endl;
- return;
+ return NULL;
}
////////////////////////////////////////////////////
// C2 Weight File
inputFileMomRes = TFile::Open(inputFileNameMomRes,"OLD");
if (!inputFileMomRes){
cout << "Requested file:" << inputFileMomRes << " was not opened. ABORT." << endl;
- return;
+ return NULL;
}
////////////////////////////////////////////////////
// Momentum Resolution File
inputFileFSI = TFile::Open(inputFileNameFSI,"OLD");
if (!inputFileFSI){
cout << "Requested file:" << inputFileFSI << " was not opened. ABORT." << endl;
- return;
+ return NULL;
}
TH2D *FSI2gaus[2];
TH2D *FSI2therm[2];