1 package org.lcsim.util.aida;
2
3 import hep.aida.IPlotterFactory;
4 import hep.aida.ref.AnalysisFactory;
5
6 /**
7 * This is an extension of <tt>AnalysisFactory</tt> which currently
8 * just provides some additional organization of plots into tabs
9 * via an <tt>IPlotterFactory</tt> implementation.
10 *
11 * @author Jeremy McCormick <jeremym@slac.stanford.edu>
12 */
13 public class LCSimAnalysisFactory extends AnalysisFactory {
14
15 /**
16 * Register this class as the default AnalysisFactory for AIDA by setting
17 * the magic property string.
18 */
19 final static void register() {
20 System.setProperty("hep.aida.IAnalysisFactory", LCSimAnalysisFactory.class.getName());
21 }
22
23 /**
24 * Create an unnamed <tt>TabbedPlotterFactory</tt>.
25 */
26 public IPlotterFactory createPlotterFactory() {
27 return new TabbedPlotterFactory();
28 }
29
30 /**
31 * Create a named <tt>TabbedPlotterFactory</tt>.
32 */
33 public IPlotterFactory createPlotterFactory(String name) {
34 return new TabbedPlotterFactory(name);
35 }
36 }