Hi, In the small example below I add an executable, TExec, to a histogram, and I see that it is executed for 1D histograms, but I get no reaction when I use 2D histograms. Is there some switch I have to set ? (I have used root version 2.24.04 and version 2.25.0.) Small example : void bratTest( void ) { gROOT->Reset(); TExec *ex = new TExec( "ex", ".x PrintEvent.C" ); // TH1F *hist = new TH1F("hist", "hist", 100, 0, 10); TH2F *hist = new TH2F("hist", "hist", 100, 0, 10, 100, 0, 10); hist->GetListOfFunctions()->Add( ex ); hist->Draw(); } In the file PrintEvent.C I have : void PrintEvent( void ) { Int_t event = gPad->GetEvent(); cout << "event : " << event << endl; } Thanks, Peter :-) --------------------------------- )-: |Peter H L Christiansen aka PAN @ NBI | |EMAIL : pchristi@nbi.dk | |OFFICE : Tb1 @ NBI | |PHONE : 353 25269 <- New!! | |SNAIL : Sdr. Fasanvej 14 ST 2000 F | |PHONE : 38 872042 | :-D --------------------------------- \-:
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:30 MET