Package org.jlab.clas.reco
Class EngineProcessor
java.lang.Object
org.jlab.clas.reco.EngineProcessor
- Author:
- gavalian, kenjo, baltzell
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add reconstruction engine to the chainvoid
Adding engine to the map the order of the services matters, since they will be executed in order added.void
Adding engine to the map the order of the services matters, since they will be executed in order added.void
addEngine
(String name, ReconstructionEngine engine) add a reconstruction engine to the chainvoid
init()
Initialize all the engines in the chain.void
initAll()
void
void
static void
void
processEvent
(org.jlab.io.base.DataEvent event) process a single event through the chain.void
processFile
(String file, String output) void
processFile
(String file, String output, int nskip, int nevents) process entire file through engine chain.void
show()
display services registered with the processor.
-
Field Details
-
ENGINE_CLASS_BG
- See Also:
-
ENGINE_CLASS_PP
- See Also:
-
-
Constructor Details
-
EngineProcessor
public EngineProcessor()
-
-
Method Details
-
initDefault
public void initDefault() -
initAll
public void initAll() -
initCaloDebug
public void initCaloDebug() -
addEngine
add a reconstruction engine to the chain- Parameters:
name
- name of the engine in the chainengine
- engine class
-
addEngine
Adding engine to the map the order of the services matters, since they will be executed in order added.- Parameters:
name
- name for the serviceclazz
- class name including the package namejsonConf
- string in json format with engine configuration
-
addEngine
Adding engine to the map the order of the services matters, since they will be executed in order added.- Parameters:
name
- name for the serviceclazz
- class name including the package name
-
addEngine
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
-
processFile
process entire file through engine chain.- Parameters:
file
- input file name to processoutput
- output filenamenskip
- number of events to skipnevents
- number of events to process
-
show
public void show()display services registered with the processor. -
main
-