BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnDataConvertToRoot.C
Go to the documentation of this file.
1
2void BmnDataConvertToRoot(char* file = "mpd_run815.data")
3{
4 gROOT->LoadMacro("$VMCWORKDIR/macro/run/bmnloadlibs.C");
5 bmnloadlibs(); // load BmnRoot libraries
6
7 BmnRawDataDecoder* decoder = new BmnRawDataDecoder(TString(file));
8 decoder->ConvertRawToRoot();
9 cout << "RUN#" << decoder->GetRunId() << " contains " << decoder->GetNevents() << " events" << endl;
10 delete decoder;
11}
#define gROOT
UInt_t GetNevents() const
UInt_t GetRunId() const