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("*") ; //All man.ReadBranches("MCTrack,TpcKalmanTrack,Vertex,MPDEvent,ZdcDigi,TOFMatching,EmcCluster,MCEventHeader") ; //for centrality, PID, EP, V0, pi0 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 pi0T("pi0_tight", "pi0_tight"); pi0T.FillCutEffHistos(); man.AddTask(&pi0T); MpdConvPi0 pi0D("pi0_default", "pi0_default"); pi0D.FillCutEffHistos(); man.AddTask(&pi0D); MpdConvPi0 pi0L("pi0_loose", "pi0_loose"); pi0L.FillCutEffHistos(); man.AddTask(&pi0L); MpdConvPi0 pi0B("pi0_BDT", "pi0_BDT"); man.AddTask(&pi0B); MpdConvPi0 pi0BR("pi0_BDTReg", "pi0_BDTReg"); man.AddTask(&pi0BR); man.Process() ; }