Child pages
  • Creating a Driver using JAS3
Skip to end of metadata
Go to start of metadata

HowTo write your own Analysis

This little tutorial will help you build your own analysis code step-by-step. After finishing this section you should be able to write a complete analysis inside the JAS3 framework.
You will learn what components are necessary to make an analysis Driver. The Driver presented here will load an existing Driver that puts an object in the event, read that object back from the event and plot a property of that object.
Let's get started: Create a new file with File->New->Java File. Save it as
At first we need to create a class that inherits from the Driver class:

You will have to add a constructor in order for JAS3 to be able to load your class. The constructor must be public and may take no arguments !

If you want to use many Drivers at the same time, you can compile and load them one by one. However, if your code depends on the order of Drivers (for example if you have a Driver that does the jetFinding in the event and your Driver takes the jets back from the event), you may want to use the add() member function.
So, let's add the other Drivers:

The next essential component of our new Driver is the process() method. If you have added child Drivers, you must call super.process(event) to ensure that the child Drivers process the event first.

You can now load the list of jets that the child Driver MyJetFindingClass has put in the event.

The complete file now looks like this.

Save the file.
Open the file and compile it.
Open the Analysis101 example and compile it.
Compile and load the MyExampleClass example.

  • No labels