#include "rootincludes.h"
#include <map>
#include <string>
#include <cassert>
Go to the source code of this file.
◆ KeyToHistMap
◆ appendHistsFromTDirRecursively()
void appendHistsFromTDirRecursively |
( |
TDirectory * |
dir, |
|
|
KeyToHistMap & |
hists, |
|
|
const std::string & |
posinfile, |
|
|
const std::string & |
histpostfix |
|
) |
| |
Definition at line 13 of file readfile.h.
16 TIter nextkey(
dir->GetListOfKeys() );
18 while ((
key = (TKey*)nextkey())) {
19 TObject *
obj =
key->ReadObj();
20 TDirectory *
subdir =
dynamic_cast<TDirectory*
>(
obj);
27 assert(
hists.find(posinfile+
h->GetName())==
hists.end());
28 TH1* hclone =
dynamic_cast<TH1*
>(
h->Clone((
h->GetName()+histpostfix).c_str()));
30 hists[posinfile+
h->GetName()] = hclone;
◆ getAllHistsInRootFile()
Definition at line 36 of file readfile.h.
45 std::string posinfile=
"/";