Class EngineProcessor

java.lang.Object
org.jlab.clas.reco.EngineProcessor

public class EngineProcessor extends Object
Author:
gavalian, kenjo, baltzell
  • Field Details

  • Constructor Details

    • EngineProcessor

      public EngineProcessor()
  • Method Details

    • initDefault

      public void initDefault()
    • initAll

      public void initAll()
    • initCaloDebug

      public void initCaloDebug()
    • addEngine

      public void addEngine(String name, ReconstructionEngine engine)
      add a reconstruction engine to the chain
      Parameters:
      name - name of the engine in the chain
      engine - engine class
    • addEngine

      public void addEngine(String name, String clazz, String jsonConf)
      Adding engine to the map the order of the services matters, since they will be executed in order added.
      Parameters:
      name - name for the service
      clazz - class name including the package name
      jsonConf - string in json format with engine configuration
    • addEngine

      public void addEngine(String name, String clazz)
      Adding engine to the map the order of the services matters, since they will be executed in order added.
      Parameters:
      name - name for the service
      clazz - class name including the package name
    • addEngine

      public void addEngine(String clazz)
      Add reconstruction engine to the chain
      Parameters:
      clazz - Engine class.
    • init

      public void init()
      Initialize all the engines in the chain.
    • processEvent

      public void processEvent(org.jlab.io.base.DataEvent event)
      process a single event through the chain.
      Parameters:
      event -
    • processFile

      public void processFile(String file, String output)
    • processFile

      public void processFile(String file, String output, int nskip, int nevents)
      process entire file through engine chain.
      Parameters:
      file - input file name to process
      output - output filename
      nskip - number of events to skip
      nevents - number of events to process
    • show

      public void show()
      display services registered with the processor.
    • main

      public static void main(String[] args)