FairRoot/PandaRoot
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
tutorials
rho
tut_makegifs.C
Go to the documentation of this file.
1
tut_makegifs
(
TString
fn=
"signal_ana.root"
,
TString
type=
"gif"
)
2
{
3
TFile *
f
=
new
TFile(fn,
"READ"
);
4
5
TKey *
key
;
6
7
TCanvas *
c1
=
new
TCanvas(
"c1"
,
"c1"
,10,10,700,600);
8
c1->cd();
9
10
int
i
=1;
11
12
TIter
next
(f->GetListOfKeys());
13
14
while
(key = (TKey*)
next
())
15
{
16
TObject *obj = key->ReadObj();
17
if
(!obj->InheritsFrom(
"TH1"
))
continue
;
18
TString
name
=
TString
(obj->GetName())+
"."
+type;
19
cout <<
"Creating "
<<name<<endl;
20
TH1*
h
=(TH1*) obj;
21
h->Draw();
22
c1->SaveAs(name);
23
}
24
//f->Close();
25
}
i
Int_t i
Definition:
run_full.C:25
tut_makegifs
tut_makegifs(TString fn="signal_ana.root", TString type="gif")
Definition:
tut_makegifs.C:1
h
Int_t h
Definition:
PndSttHelixTrackFitter.cxx:44
f
TFile * f
Definition:
bump_analys.C:12
TString
TString
Definition:
SimCompleteLinkDef.h:6
c1
c1
Definition:
plot_dirc.C:35
name
TString name
Definition:
createRootGeoFile.C:82
next
static int next[96]
Definition:
ranlxd.cxx:374
key
Definition:
PndEmcAnalysis.cxx:43
Generated on Wed Apr 3 2019 10:03:10 for FairRoot/PandaRoot by
1.8.5