Ultimately, to define an event source, you must implement the hep.analysis.EventSource interface. If you want the variables from your event source to appear on the job tree, implement instead the interface jas.job.AnnotatedEventSource, which extends the hep.analysis.EventSource interface.
In addition to implementing the methods in the hep.analysis.EventSource interface, you must additionally implelent the following methods:
public jas.jds.interfaces.TreeItem[] getItems()final TreeItem[] result = new TreeItem[fieldCount];
for (int i = 0; i < fieldCount; i++)
{
result[i] = new TreeItem();
result[i].path = new String[1];
result[i].path[0] = data[i].getTitle();
result[i].type = data[i].getType();
}
return result;public Object getItem(jas.jds.interfaces.TreeItem i)Page maintained by Jonas Gifford. Last updated 01/14/04.