void ana_lambdac_task(TString Fname="data/test", int nevts=0, double pbarmom = 10.2) { // *** set this to your output path TString OutFile = Fname; // *** the output file for FairRunAna TString InFile = Fname; if (!InFile.EndsWith(".root")) InFile+="_fast.root"; // *** initialization FairLogger::GetLogger()->SetLogToFile(kFALSE); FairRunAna* fRun = new FairRunAna(); fRun->SetWriteRunInfoFile(kFALSE); fRun->SetInputFile(InFile); fRun->SetOutputFile(OutFile+"_taskana.root"); // *** take constant field; needed for PocaVtx RhoCalculationTools::ForceConstantBz(20.0); // *** HERE OUR ANALYSIS TASK GOES! PndLambdacAnaTask *lambdacTask = new PndLambdacAnaTask(pbarmom); fRun->AddTask(lambdacTask); // *** and run analysis fRun->Init(); fRun->Run(0,nevts); }