Skip to content
Snippets Groups Projects
Commit acbd7cc3 authored by batyuk's avatar batyuk
Browse files

Macro to produce MiniDst from the standard mpddst

parent 34597ea0
No related branches found
No related tags found
No related merge requests found
#include <Rtypes.h>
#include <TString.h>
R__ADD_INCLUDE_PATH($VMCWORKDIR)
#include "macro/mpd/mpdloadlibs.C"
/*
A macro to be used when producing a MiniDst from the standard mpddst
* arg1 - standard mpddst
* Output name contains arg1_basename.MiniDst.root
*/
void mpddstToMiniDst(TString arg1 = "") {
FairRunAna* fRun = new FairRunAna();
FairSource* fFileSource = new FairFileSource(arg1);
fRun->SetSource(fFileSource);
fRun->SetGenerateRunInfo(kFALSE);
fRun->SetUseFairLinks(kTRUE);
MpdKalmanFilter *kalman = MpdKalmanFilter::Instance("KF");
fRun->AddTask(kalman);
MpdMiniDstFillTask* miniDst = new MpdMiniDstFillTask(arg1);
fRun->AddTask(miniDst);
// Intialise ...
fRun->Init();
// Run ...
fRun->Run(0, 0); // (0, 0) means processing of the whole data set given
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment