bool CheckFileExist(TString fileName){ gSystem->ExpandPathName(fileName); if (gSystem->AccessPathName(fileName.Data()) == true) { cout<LoadMacro("mpdloadlibs.C"); // gROOT->ProcessLine("mpdloadlibs()"); gSystem->Load("libZdc.so") ; gSystem->Load("libEmc.so") ; gSystem->Load("libMpdPhotons.so") ; gSystem->Load("libMpdPhysics.so") ; MpdAnalysisManager man("ManagerAnal", nEvents) ; if (!CheckFileExist(inFileList)) return; man.InputFileList(inFileList) ; man.ReadBranches("*") ; man.SetOutput("histos.root") ; MpdCentralityAll pCentr("pCentr","pCentr") ; man.AddTask(&pCentr) ; MpdEventPlaneAll pEP("pEP","pEP") ; man.AddTask(&pEP) ; MpdTrackPidMaker pPID("pPID","pPID") ; man.AddTask(&pPID) ; MpdV0Maker pV0maker("pV0maker", "pV0maker"); man.AddTask(&pV0maker); MpdConvPi0 pi0("pi0", "pi0"); man.AddTask(&pi0); MpdConvPi0 pi0_TPConlyPID("pi0_TPConlyPID", "pi0_TPConlyPID"); man.AddTask(&pi0_TPConlyPID); man.Process() ; }