Package org.jlab.service.mc
Class TruthMatch
java.lang.Object
org.jlab.clas.reco.ReconstructionEngine
org.jlab.service.mc.TruthMatch
- All Implemented Interfaces:
org.jlab.clara.engine.Engine
Another approach for making truth matching that will include neutral
particles as well The "TruthMatching" class works well for charged particles,
but for neutrals it requires to introduce some ad-hoc functions. So this is
an attempt to make it to look more general.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jlab.clas.reco.ReconstructionEngine
ReconstructionEngine.Reco
-
Field Summary
Fields inherited from class org.jlab.clas.reco.ReconstructionEngine
CONFIG_BANK_NAME, rawBankOrders
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCheckCNDLayers
(Long word, short layer) CheckCVTAcceptance
(Long word) Check whether the track is reconstructable in CVT reconstractable in DCCheckDCAcceptance
(Long word, short nMinSL, short nMinLayerPerSL) Check whether enough layers and SLs are hit to make the track reconstractable in DCCheckECalLayers
(Long word, short EC_part) CheckFTCal
(Long word) CheckFTHodoLayers
(Long word, short layer) CountNSetBits
(Long word, short bit1, short bit2) This function returns the number of "set" bits in between bit1 (included) and bit2 (included) of the variable type Longboolean
init()
boolean
processDataEvent
(DataEvent event) Methods inherited from class org.jlab.clas.reco.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
-
TruthMatch
public TruthMatch()
-
-
Method Details
-
init
public boolean init()- Specified by:
init
in classReconstructionEngine
-
processDataEvent
- Specified by:
processDataEvent
in classReconstructionEngine
-
CountNSetBits
This function returns the number of "set" bits in between bit1 (included) and bit2 (included) of the variable type Long- Parameters:
word
- : The word we want to checkbit1
- : index of bit1bit2
- : index of bit1- Returns:
- : The number of set bits between bit1 and bit2
-
CheckDCAcceptance
Check whether enough layers and SLs are hit to make the track reconstractable in DC- Parameters:
word
- to be checkednMinSL
- : Minimum number of SLayersnMinLayerPerSL
- : minimum number of layer per SL, in order a SL to be counted as hit- Returns:
- Whether the the DC track is reconstractable
-
CheckCVTAcceptance
Check whether the track is reconstructable in CVT reconstractable in DC- Parameters:
word
- to be checked- Returns:
- Whether the the CVT track is reconstructable
-
CheckECalLayers
- Parameters:
word
- // The status word to be checkedEC_part
- // ECal part: 0 for PCal, 1 for EC_in and 2 for EC_out- Returns:
- // true if the corresponding ECal layer bit is set
-
CheckCNDLayers
- Parameters:
word
- // The status word to be checkedlayer
- // CND layer: 0 for layer 1, 1 for layer 2, 2 for layer 3- Returns:
- // true if the corresponding CND layer bit is set
-
CheckCTOF
- Parameters:
word
- // The status word to be checked- Returns:
- // true if CTOF bit is set
-
CheckFTHodoLayers
- Parameters:
word
- // The status word to be checkedlayer
- // FTCalHodo: 0 for Hodo layer 1, 1 for Hodo layer 2, 2 for FTCal- Returns:
- // true if the corresponding FTCalHodo bit is set
-
CheckFTCal
- Parameters:
word
- // The status word to be checked- Returns:
- // true if CTOF bit is set
-