Hi Tony,
thank you for responding so quickly. I have resolved the problem and have
succeeded in compiling and running all the JAS3 and JAIDA examples.
However, this was done by putting the JAIDA jar files at the top of the
classpath above the freehep classes. If I don't do that and just link to
the freehep library then the problem appears. This may be due to the fact
that since the freeHEP library contains too many jar files to put in the
classpath without getting the "word too long" error message, I have
dejarred them and simply added the base directory of all the
freeHEP classes to the classpath.
Anyway, since all the JAIDA jars are included in the freeHEP library
(although as a slightly older version), I should be able to link only to
the freeHEP classes and have no problem, but... Do you have suggestions.
Thanks,
Guillaume
On Thu, 10 Mar 2005, Johnson, Tony S. wrote:
> Hi Guillaume, I am not aware of any problems with the fitting routines in JAS, they all compile for me. Can you send some more details about which version of JAS, you are using, which platform you are running on etc.
>
> Also if you repost your question to http://forum.freehep.org/ it will reach a wider audience, and will be easier for a fitting expert to review.
>
> Tony
>
> > -----Original Message-----
> > From: [log in to unmask]
> > [mailto:[log in to unmask]] On Behalf Of
> > Guillaume BELANGER
> > Sent: Wednesday, March 09, 2005 12:34 AM
> > To: lcd-dev
> > Subject: Problem with Example3.java
> >
> > Hi,
> >
> > I am just starting to look at using JAS and JAIDA to write
> > some fitting routines and I am going through the examples
> > from the fitting tutorial. I complied and ran Example1 and
> > Example2 but cannot get Example3 and up to compile. The error
> > seems to suggest that it has something to do with
> > IHistogram1D. Here is the output of javac.
> >
> > Can you tell me what is wrong?
> >
> > Thanks,
> > Guillaume
> >
> > Example 3
> >
> > belanger@local>javac -d ./ Example3.java
> > Example3.java:33: cannot resolve symbol
> > symbol : method plot (hep.aida.IHistogram1D)
> > location: interface hep.aida.IPlotterRegion
> > plotter.region(0).plot(hist);
> > ^
> > 1 error
> >
> >
> > Example 4
> >
> > belanger@local>javac -d ./ Example4.java
> > Example4.java:34: cannot resolve symbol
> > symbol : method axis ()
> > location: interface hep.aida.IHistogram1D
> > gaussSum.setParameter("N",
> > (hist.axis().upperEdge()-hist.axis().lowerEdge())*hist.entries
> ()/hist.axis().bins());
> > ^
> > Example4.java:34: cannot resolve symbol
> > symbol : method axis ()
> > location: interface hep.aida.IHistogram1D
> > gaussSum.setParameter("N",
> > (hist.axis().upperEdge()-hist.axis().lowerEdge())*hist.entries
> ()/hist.axis().bins());
> > ^
> > Example4.java:34: cannot resolve symbol
> > symbol : method axis ()
> > location: interface hep.aida.IHistogram1D
> > gaussSum.setParameter("N",
> > (hist.axis().upperEdge()-hist.axis().lowerEdge())*hist.entries
> ()/hist.axis().bins());
> >
> > ^
> > Example4.java:43: cannot resolve symbol
> > symbol : method fit (hep.aida.IHistogram1D,hep.aida.IFunction)
> > location: interface hep.aida.IFitter
> > IFitResult gaussSumResult = fitter.fit(hist,gaussSum);
> > ^
> > Example4.java:48: cannot resolve symbol
> > symbol : method plot (hep.aida.IHistogram1D)
> > location: interface hep.aida.IPlotterRegion
> > plotter.createRegion(0,0,.66,1).plot(hist);
> > ^
> > Example4.java:50: cannot resolve symbol
> > symbol : method plot (hep.aida.IHistogram1D)
> > location: interface hep.aida.IPlotterRegion
> > plotter.createRegion(.66,0,.33,.5).plot(hist);
> > ^
> > Example4.java:52: cannot resolve symbol
> > symbol : method plot (hep.aida.IHistogram1D)
> > location: interface hep.aida.IPlotterRegion
> > plotter.createRegion(.66,.5,.33,.5).plot(hist);
> > ^
> > 7 errors
> > belanger@local>
> >
> >
> > Guillaume Belanger
> > Service d'Astrophysique
> > CEA - Saclay, Batiment 709
> > 91191 Gif-sur-Yvette cedex, FRANCE
> > tel: +33 (0)1 69.08.70.62
> > fax: +33 (0)1 69.08.65.77
> >
> >
>
Guillaume Belanger
Service d'Astrophysique
CEA - Saclay, Batiment 709
91191 Gif-sur-Yvette cedex, FRANCE
tel: +33 (0)1 69.08.70.62
fax: +33 (0)1 69.08.65.77
|