InputList - what can I put there?

Dear all,
I have a problem setting the content of InputList.

I know that this list can contain only objects derived from TObject.
I successfully managed to add a TList of objects of a custom class (TModule), doing like this:

[code] TProofLite *p = TProofLite::Open("");

p->Load("/home/michele/AnalisiDati/PROOF/NewTest/TModule.C+");

TList *l = new TList();
l->SetName(“modulesList”);
l->Add(new TModule(“TModule”));
p->AddInput(l);
[/code]
And this is working fine, I have to say.
But then I want to add some other stuff to my InputList, let’s say another TList containing TNamed objects (for configuration options, for example):

TList *n = new TList(); n->SetName("namesList"); n->Add(new TNamed("DoJetCut","true")); p->AddInput(n);

And if I do this, I have this error:

[code]…
Info in TPacketizerAdaptive::InitStats: fraction of remote files 1.000000
Info in TProofLite::MarkBad: events |>…| 0.00 %
+++ Message from master at pinamonti : marking 0.0-pinamonti-1290162654-4853:-1 (0.0) as bad
+++ Reason: undefined message in TProof::CollectInputFrom(…)

+++ Most likely your code crashed
+++ Please check the session logs for error messages either using
+++ the ‘Show logs’ button or executing
+++
+++ root [] TProof::Mgr(“pinamonti”)->GetSessionLogs()->Display("*")

Error in TPacketizerAdaptive::SplitPerHost: The input list contains no elements
Info in TPacketizerAdaptive::InitStats: fraction of remote files 1.000000
[TProof:] Total 24984 events |====================| 100.00 % [5264.2 evts/s]
Lite-0: all output objects have been merged [/code]

It seems that one of the two workers failed and the second one succeeded…
This sounds strange to me. I’m not even trying to read the second TList from the fInput inside the TSelector…

Has this something to do with the stuff I put in the InputList?
Exactly, what am I allowed to put there and what not?

Hi,

You can put anything you said, i.e. any TObject derived object.
I do not see anything wrong in your case, but one should have a look at the stacktrace on the worker that crashes. You should have that in the worker log.

Note that there is also the class TParameter to set named parameters and a set of methods TProof::SetParameter / TProof::GetParameter to handle that in the input list .

G. Ganis