Class DCClsComboEngine
java.lang.Object
org.jlab.clas.reco.ReconstructionEngine
org.jlab.service.ai.DCClsComboEngine
- All Implemented Interfaces:
org.jlab.clara.engine.Engine
-
Nested Class Summary
Nested classes/interfaces inherited from class ReconstructionEngine
ReconstructionEngine.Reco -
Field Summary
Fields inherited from class ReconstructionEngine
CONFIG_BANK_NAME, rawBankOrders -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerate5ClsCombos(Map<Integer, List<DCCluster>> mapSL, List<DCClusterCombo> outputList) Generate all possible 5-cluster combinations from clusters per superlayer.voidgenerate6ClsCombos(Map<Integer, List<DCCluster>> map, int sl, DCCluster[] current, List<DCClusterCombo> comboList) Recursively generate all possible 6-cluster combinations from a map of clusters per superlayer.static ai.djl.translate.Translator<float[][], float[]> static ai.djl.translate.Translator<float[][], float[]> booleaninit()booleanprocessDataEvent(DataEvent event) resolveSharedClusterConflicts(List<DCClusterCombo> comboList) Resolve conflicts among a list of DCClusterCombos by removing overlapping combos.booleanvoidwriteBank(DataEvent event, List<DCClusterCombo> clsComboList) Methods inherited from class ReconstructionEngine
applyTriggerMask, checkRunNumber, configure, constantManagerStatus, destroy, dropBanks, execute, executeGroup, filterEvent, generateConfig, getAuthor, getConfigMap, getConstantsManager, getDescription, getEngineConfigString, getEngineConfigString, getEngineConfiguration, getFatal, getInputDataTypes, getName, getOutputDataTypes, getRawBankReader, getRawBankReader, getSchemaFactory, getStates, getStringConfigParameter, getStringConfigParameter, getVersion, main, registerOutputBank, requireConstants, requireConstants, requireConstants, reset, setDescription, setFatal, setTimeStamp, setVariation
-
Constructor Details
-
DCClsComboEngine
public DCClsComboEngine()
-
-
Method Details
-
init
public boolean init()- Specified by:
initin classReconstructionEngine
-
processDataEvent
- Specified by:
processDataEventin classReconstructionEngine
-
writeBank
-
generate6ClsCombos
public void generate6ClsCombos(Map<Integer, List<DCCluster>> map, int sl, DCCluster[] current, List<DCClusterCombo> comboList) Recursively generate all possible 6-cluster combinations from a map of clusters per superlayer.- Parameters:
map- a map from superlayer index (1-6) to a list of DCClusters in that superlayersl- the current superlayer being processed (1-based)current- an array storing the current combination of clusters being builtcomboList- the list to store all generated DCClusterCombo objects
-
generate5ClsCombos
public void generate5ClsCombos(Map<Integer, List<DCCluster>> mapSL, List<DCClusterCombo> outputList) Generate all possible 5-cluster combinations from clusters per superlayer. Each combination has one missing superlayer.- Parameters:
mapSL- a map from superlayer index (1-6) to a list of DCClustersoutputList- the list to store all generated DCClusterCombo objects
-
getBatchTranslator6Cls
public static ai.djl.translate.Translator<float[][], float[]> getBatchTranslator6Cls() -
getBatchTranslator5Cls
public static ai.djl.translate.Translator<float[][], float[]> getBatchTranslator5Cls()
-