Belle II Software
development
maptest.cc
1
/**************************************************************************
2
* basf2 (Belle II Analysis Software Framework) *
3
* Author: The Belle II Collaboration *
4
* *
5
* See git log for contributors and copyright holders. *
6
* This file is licensed under LGPL-3.0, see LICENSE.md. *
7
**************************************************************************/
8
9
#include <unistd.h>
10
11
#include "TMapFile.h"
12
#include "TH1.h"
13
14
int
main(
int
/*argc*/
,
char
**
/*argv*/
)
15
{
16
TMapFile* file = TMapFile::Create(
"TestHisto"
,
"RECREATE"
, 2000000);
17
TH1F* h1 =
new
TH1F(
"testhisto"
,
"testhisto"
, 100, 0.0, 100.0);
18
file->Add(h1);
19
for
(;;) {
20
for
(
int
i = 0; i < 100; i++) {
21
h1->Fill((
float
)i, (
float
)i);
22
sleep(1);
23
file->Update();
24
}
25
h1->Reset();
26
}
27
return
0;
28
}
daq
dqm
tools
maptest.cc
Generated on Mon Sep 1 2025 02:48:38 for Belle II Software by
1.13.2