20 gROOT->GetListOfGlobalFunctions()->Delete();
22 TH1F *h =
new TH1F(
"h",
"h",100,-3,3);
23 h->FillRandom(
"gaus",1000);
24 TCanvas *c1=
new TCanvas(
"c1");
27 c1->Connect(
"ProcessedEvent(Int_t,Int_t,Int_t,TObject*)", 0, 0,
28 "exec3event(Int_t,Int_t,Int_t,TObject*)");
31 void exec3event(Int_t event, Int_t x, Int_t y, TObject *selected)
33 TCanvas *c = (TCanvas *) gTQSender;
34 printf(
"Canvas %s: event=%d, x=%d, y=%d, selected=%s\n", c->GetName(),
35 event, x, y, selected->IsA()->GetName());