Belle II Software
release-05-01-25
maptest.cc
1
#include "TMapFile.h"
2
#include "TH1.h"
3
4
int
main
(
int
argc,
char
** argv)
5
{
6
TMapFile* file = TMapFile::Create(
"TestHisto"
,
"RECREATE"
, 2000000);
7
TH1F* h1 =
new
TH1F(
"testhisto"
,
"testhisto"
, 100, 0.0, 100.0);
8
file->Add(h1);
9
for
(;;) {
10
for
(
int
i = 0; i < 100; i++) {
11
h1->Fill((
float
)i, (
float
)i);
12
sleep(1);
13
file->Update();
14
}
15
h1->Reset();
16
}
17
}
main
int main(int argc, char **argv)
Run all tests.
Definition:
test_main.cc:77
daq
dqm
tools
maptest.cc
Generated on Fri Nov 5 2021 03:49:03 for Belle II Software by
1.8.17