BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnT0SSbin2Root.C
Go to the documentation of this file.
1
2
3void BmnT0SSbin2Root(const vector<string>& files = {}, const string& outfile = "t0all.root")
4{
5 gSystem->ExpandPathName(outfile.data());
6 FairLogger::GetLogger()->SetLogToScreen(true);
7 FairLogger::GetLogger()->SetLogScreenLevel("info");
8 TStopwatch timer;
9 TStopwatch timer_conv;
10
11 timer.Start();
12 unique_ptr<BmnT0RawReader> trr{make_unique<BmnT0RawReader>()};
13 BmnStatus status = trr->ReadFiles(files, outfile);
14 timer.Stop();
15 if (status == kBMNSUCCESS) {
16 printf("\tMacro finished successfully!\n\n");
17 Double_t rtime = timer.RealTime();
18 Double_t ctime = timer.CpuTime();
19 printf("Real time %f s, CPU time %f s\n", rtime, ctime);
20 }
21}
double Double_t
R__EXTERN TSystem * gSystem
BmnStatus
Define status code.
Definition BmnEnums.h:93
@ kBMNSUCCESS
Success.
Definition BmnEnums.h:94
Double_t RealTime()
void Start(Bool_t reset=kTRUE)
Double_t CpuTime()
void Stop()
void BmnT0SSbin2Root(const vector< string > &files={}, const string &outfile="t0all.root")