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 SummaryNested classes/interfaces inherited from class org.jlab.clas.reco.ReconstructionEngineReconstructionEngine.Reco
- 
Field SummaryFields inherited from class org.jlab.clas.reco.ReconstructionEngineCONFIG_BANK_NAME, rawBankOrders
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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 Longbooleaninit()booleanprocessDataEvent(DataEvent event) Methods inherited from class org.jlab.clas.reco.ReconstructionEngineapplyTriggerMask, 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- 
TruthMatchpublic TruthMatch()
 
- 
- 
Method Details- 
initpublic boolean init()- Specified by:
- initin class- ReconstructionEngine
 
- 
processDataEvent- Specified by:
- processDataEventin class- ReconstructionEngine
 
- 
CountNSetBitsThis 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 check
- bit1- : index of bit1
- bit2- : index of bit1
- Returns:
- : The number of set bits between bit1 and bit2
 
- 
CheckDCAcceptanceCheck whether enough layers and SLs are hit to make the track reconstractable in DC- Parameters:
- word- to be checked
- nMinSL- : Minimum number of SLayers
- nMinLayerPerSL- : minimum number of layer per SL, in order a SL to be counted as hit
- Returns:
- Whether the the DC track is reconstractable
 
- 
CheckCVTAcceptanceCheck 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 checked
- EC_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 checked
- layer- // 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 checked
- layer- // 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
 
 
-