#include "TString.h"
#include "TFile.h"
#include "TCanvas.h"
#include "TKey.h"
#include <iostream>
#include "TH1F.h"
#include "TRandom.h"
Go to the source code of this file.
bool plot_all |
( |
TString |
fn = "QA_histograms.root" | ) |
|
Definition at line 12 of file plot_all.C.
References c1, f, h, name, next, obj, and TString.
14 TCanvas *
c1 =
new TCanvas();
17 TFile *
f=
new TFile(fn,
"READ");
21 TIter
next(f->GetListOfKeys());
24 while ( (key = (TKey*)
next()) )
27 TObject *
obj = key->ReadObj();
30 if (!obj->InheritsFrom(
"TH1F"))
continue;
34 TH1F*
h = (TH1F*) obj;