Re: [ROOT] Problem (?) with MakeSelector

From: Ben Morgan (B.Morgan@sheffield.ac.uk)
Date: Wed May 22 2002 - 16:33:30 MEST


Hi Rene,
        I run Analyse as interpreted, just typing '.x Analyse.C' each 
time. As we want a quick turn around on the analysis, and are tuning cuts, 
we'd prefer to run interpreted if possible.

I added the lines you suggested, but the error in loading the libraries is 
still there. I assumed you meant add in them in the function like:

int Analyse()
{
  gROOT->LoadClass("TProof","Proof");
  gROOT->LoadClass("TTreePlayer","TreePlayer");
....
}

When you say delete the selector, do you mean just add a 'delete sel' 
statement before the return? Or would I have to do:

TSelector *sel = new TSelector();
sel=TSelector::GetSelector("EventSelector.C++");
.....
delete sel;

(This looks strange to me, but if the second 
line is *sel, I get a seg fault at the delete statement.)

Sorry for the continuing problems! Thanks,

Ben Morgan.

-- 
-------------------------------------------------------------------------------
Mr. Ben Morgan
Postgraduate Student
University of Sheffield
Department of Physics & Astronomy
Hicks Building
Hounsfield Road
Sheffield  S3 7RH
-------------------------------------------------------------------------------



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:53 MET