Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

You can add your own analysis modules by replacing

Code Block
loop.add(new Analysis101())

with your analysis modules

Note

Don't forget to import your modules into MainLoop.java

Using the Jython wrapper

Please save mainLoop.py, Analysis101.java, Analysis102.py and psiMuMu.slcio to your harddisk. psiMuMu.slcio is a small datasample, Analysis101.java is our analysis module, which is taken straight from the JAS3 examples, Analysis102.py is a slightly modified Jython version of the Java module and mainLoop.py is the wrapper that takes care of loading the analysis module correctly.
After compiling the java file with

...

Info

You can add your own analysis modules by replacing

Code Block
loop.add(Analysis101())
loop.add(Analysis102())

with your analysis modules

Note

Don't forget to import your Java modules with

Code Block
import MyJavaAanalysisModule

and your Jython modules with

Code Block
from MyJythonModuleName import MyJythonClassName

Executing Jython modules in Jas3

Unfortunately, you cannot load the Jython modules in Jas3 as easily as a Java module. However, you can simply load mainLoop.py and add your modules there. Choose 'Run' from the context menu. This will open a Jython console. Type main() to start the event loop.

Info

If you have no idea what this section is all about, it is safe to ignore it