29 import java.io.IOException;
42 public static void main(String[] argv)
throws IOException
44 String fileName=
"Pol01.aida";
47 System.out.println(
"using file name "+fileName);
50 IAnalysisFactory af = IAnalysisFactory.create();
51 ITree
tree = af.createTreeFactory().create(fileName,
"xml");
53 IHistogram1D
h1 = (IHistogram1D) tree.find(
"1");
54 IHistogram1D
h2 = (IHistogram1D) tree.find(
"2");
55 IHistogram1D
h3 = (IHistogram1D) tree.find(
"3");
56 IHistogram1D h4 = (IHistogram1D) tree.find(
"4");
58 IPlotterFactory pf = af.createPlotterFactory();
59 IPlotter plotterPhoton = pf.create(
"Photon");
60 plotterPhoton.createRegions(2,2);
61 plotterPhoton.region(0).
plot(h1);
62 plotterPhoton.region(1).
plot(h2);
63 plotterPhoton.region(2).
plot(h3);
64 plotterPhoton.region(3).
plot(h4);
67 IHistogram1D h5 = (IHistogram1D) tree.find(
"5");
68 IHistogram1D h6 = (IHistogram1D) tree.find(
"6");
69 IHistogram1D h7 = (IHistogram1D) tree.find(
"7");
70 IHistogram1D h8 = (IHistogram1D) tree.find(
"8");
72 IPlotter plotterElectron = pf.create(
"Electron");
73 plotterElectron.createRegions(2,2);
74 plotterElectron.region(0).
plot(h5);
75 plotterElectron.region(1).
plot(h6);
76 plotterElectron.region(2).
plot(h7);
77 plotterElectron.region(3).
plot(h8);
78 plotterElectron.show();
80 IHistogram1D h9 = (IHistogram1D) tree.find(
"9");
81 IHistogram1D
h10 = (IHistogram1D) tree.find(
"10");
82 IHistogram1D
h11 = (IHistogram1D) tree.find(
"11");
83 IHistogram1D h12 = (IHistogram1D) tree.find(
"12");
85 IPlotter plotterPositron = pf.create(
"Positron");
86 plotterPositron.createRegions(2,2);
87 plotterPositron.region(0).
plot(h9);
88 plotterPositron.region(1).
plot(h10);
89 plotterPositron.region(2).
plot(h11);
90 plotterPositron.region(3).
plot(h12);
91 plotterPositron.show();
subroutine plot(X, Y, N, M, MM, XO, DX, YO, DY)
static void main(String[] argv)
double Random(double min=0.0, double max=1.0)