Belle II Software
release-05-01-25
hdump.cc
1
#include "daq/dqm/DqmMemFile.h"
2
3
#include "TObject.h"
4
#include "TKey.h"
5
#include "TIterator.h"
6
#include "TDirectory.h"
7
#include "TList.h"
8
#include "TH1.h"
9
10
using namespace
Belle2
;
11
using namespace
std;
12
13
int
main
(
int
argc,
char
** argv)
14
{
15
16
DqmMemFile
* mfile =
new
DqmMemFile
(argv[1]);
17
18
TMemFile* file = mfile->LoadMemFile();
19
file->ls();
20
file->Print();
21
22
TList* keylist = file->GetListOfKeys();
23
TIter nextkey(keylist);
24
TKey* key = 0;
25
while
((key = (TKey*)nextkey())) {
26
TObject* obj = key->ReadObj();
27
if
(obj->IsA()->InheritsFrom(TH1::Class())) {
28
TH1* hist = (TH1*) obj;
29
printf(
"histo: %s, title: %s \n"
, hist->GetName(), hist->GetTitle());
30
}
31
}
32
33
delete
(mfile);
34
}
main
int main(int argc, char **argv)
Run all tests.
Definition:
test_main.cc:77
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:19
Belle2::DqmMemFile
Definition:
DqmMemFile.h:28
daq
dqm
tools
hdump.cc
Generated on Fri Nov 5 2021 03:49:03 for Belle II Software by
1.8.17