bool CheckFileExist(TString fileName){ gSystem->ExpandPathName(fileName); if (gSystem->AccessPathName(fileName.Data()) == true) { cout<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) ; MpdPairKK pKK("pKK","pKK") ; man.AddTask(&pKK) ; MpdPairPK pPK("pPK","pPK") ; man.AddTask(&pPK) ; MpdPairPiK pPiK("pPiK","pPiK") ; man.AddTask(&pPiK) ; MpdPairPiPi pPiPi("pPiPi","pPiPi") ; man.AddTask(&pPiPi) ; MpdPairPiLambda pPiLambda("pPiLambda","pPiLambda") ; man.AddTask(&pPiLambda) ; MpdPairPiKs pPiKs("pPiKs","pPiKs") ; man.AddTask(&pPiKs) ; MpdV0Maker pV0maker("pV0maker", "pV0maker"); man.AddTask(&pV0maker); TFile geoFile("sim_Geo.root"); geoFile.Get("FairGeoParSet"); MpdConvPi0 pi0_default("pi0_default", "pi0_default"); pi0_default.FillCutEffHistos(); man.AddTask(&pi0_default); MpdConvPi0 pi0_tight("pi0_tight", "pi0_tight"); pi0_tight.FillCutEffHistos(); man.AddTask(&pi0_tight); MpdConvPi0 pi0_loose("pi0_loose", "pi0_loose"); pi0_loose.FillCutEffHistos(); man.AddTask(&pi0_loose); MpdConvPi0 pi0_BDT("pi0_BDT", "pi0_BDT"); pi0_BDT.FillCutEffHistos(); man.AddTask(&pi0_BDT); MpdConvPi0 pi0_BDTReg("pi0_BDTReg", "pi0_BDTReg"); pi0_BDTReg.FillCutEffHistos(); man.AddTask(&pi0_BDTReg); man.Process() ; }