Class EngineProcessor

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

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

  • Constructor Details Link icon

    • EngineProcessor Link icon

      public EngineProcessor()
  • Method Details Link icon

    • initDefault Link icon

      public void initDefault()
    • initAll Link icon

      public void initAll()
    • initCaloDebug Link icon

      public void initCaloDebug()
    • addEngine Link icon

      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 Link icon

      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 Link icon

      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 Link icon

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

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

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

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

      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 Link icon

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

      public static void main(String[] args)