Hi Everyone,
I have a question about AbstractProcessor and Driver.
This is what I'm trying to do. I have a class called
MCPart_from_CalClust.java which extends AbstractProcessor. I add this
to the class ClusterStudyCheat.java, which extends Driver. Inside of
MCPart_from_CalClust, I make a Vector with one entry per event. I want
to calculate the median of the numbers in this Vector after analyzing
all of the events. The problem is that AbstractProcessor doesn't have a
method called afterLastEvent, so I cannot calculate the median. Since a
Driver does have this method, I tried to do my analysis with a class
that extends Driver. But then, I cannot access the calorimeter
information via LCDEvent's getEMClusters method -- the analysis fails
because of java.lang.NoClassDefFoundError.
My question is this:
(1) Is there a way to pass information between a Driver and an
AbstractProcessor added to a Driver?
(2) Why can't I access the calorimeter information from a driver, while
I can from an AbstractProcessor?
(3) Is there a simple way to calculate the median of a list of numbers
in the JAS framework?
Gene
|