81 str =
"dsn="; str += dsn;
82 str +=
"; uid="; str += usr;
92 TPad *pad1, *pad2, *pad3;
94 c1 =
new TCanvas(
"c1",
"Reading objects from Database Example",200,10,700,780);
95 pad1 =
new TPad(
"pad1",
"This is pad1",0.02,0.52,0.98,0.98,21);
96 pad2 =
new TPad(
"pad2",
"This is pad2",0.02,0.02,0.48,0.48,21);
97 pad3 =
new TPad(
"pad3",
"This is pad3",0.52,0.02,0.98,0.48,21);
110 for(
int i=0;
i<50;
i++) {
112 gSystem->ProcessEvents();
114 printf(
"\n\n\t\t** producer not connected yet **\n\n");
120 Double_t oldentries = 0;
121 for (
int j = 0;
j < 100;
j++)
135 if(str==
"hpx")
hpx = (TH1F *)to;
136 else if(str==
"hpxpy" )
hpxpy = (TH2F *)to;
137 else if(str==
"hprof")
hprof = (TProfile *)to;
139 if (
hpx->GetEntries() == oldentries)
break;
140 oldentries =
hpx->GetEntries();
169 printf(
"%s\n",str.Data());