Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
plotResults Class Reference

Static Public Member Functions

static void main (String[] argv) throws IOException
 

Detailed Description

Definition at line 40 of file plotResults.java.

Member Function Documentation

static void plotResults.main ( String[]  argv) throws IOException
inlinestatic

Definition at line 42 of file plotResults.java.

43  {
44  String fileName="Pol01.aida";
45  if (argv.length>0) {
46  fileName=argv[0];
47  System.out.println("using file name "+fileName);
48  }
49 
50  IAnalysisFactory af = IAnalysisFactory.create();
51  ITree tree = af.createTreeFactory().create(fileName,"xml");
52 
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");
57 
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);
65  plotterPhoton.show();
66 
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");
71 
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();
79 
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");
84 
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();
92  }
tuple tree
Definition: gammaraytel.py:4

The documentation for this class was generated from the following file: