BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnT0SSbin2Root.C
Go to the documentation of this file.
1
2
3
void
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_t
double Double_t
gSystem
R__EXTERN TSystem * gSystem
BmnStatus
BmnStatus
Define status code.
Definition
BmnEnums.h:93
kBMNSUCCESS
@ kBMNSUCCESS
Success.
Definition
BmnEnums.h:94
TStopwatch
TStopwatch::RealTime
Double_t RealTime()
TStopwatch::Start
void Start(Bool_t reset=kTRUE)
TStopwatch::CpuTime
Double_t CpuTime()
TStopwatch::Stop
void Stop()
BmnT0SSbin2Root
void BmnT0SSbin2Root(const vector< string > &files={}, const string &outfile="t0all.root")
Definition
BmnT0SSbin2Root.C:3
install
macro
raw
BmnT0SSbin2Root.C
Generated on
for BmnRoot by
1.17.0