12 TSeqCollection *GetCollection()
15 #ifndef ClingWorkAroundMissingDynamicScope
16 # define ClingWorkAroundMissingDynamicScope
18 f = TFile::Open(
"hsimple.root");
20 #ifdef ClingWorkAroundMissingDynamicScope
21 f = (TFile*)gROOT->ProcessLine(
"hsimple(1);");
27 TList *l0 =
new TList();
28 TList *l01 =
new TList();
29 TH1 *hpx = (TH1*)f->Get(
"hpx");
30 printf(
"Adding hpx: %d entries\n", (
int)hpx->GetEntries());
32 TH1 *hpxpy = (TH1*)f->Get(
"hpxpy");
34 TH1 *hprof = (TH1*)f->Get(
"hprof");
42 TString tutdir = gROOT->GetTutorialDir();
43 gROOT->LoadMacro(tutdir+
"/hsimple.C");
44 TList *list1 = (TList *)GetCollection();
45 TList *inputs =
new TList();
46 for (Int_t i=0; i<10; i++) {
47 inputs->AddAt(GetCollection(),0);
53 TH1F *hpx = (TH1F*)(((TList*)list1->At(1))->At(0));
54 printf(
"============================================\n");
55 printf(
"Total hpx: %d entries\n", (
int)hpx->GetEntries());