Class TruthMatch

All Implemented Interfaces:
org.jlab.clara.engine.Engine

public class TruthMatch extends ReconstructionEngine
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.
  • Constructor Details

    • TruthMatch

      public TruthMatch()
  • Method Details

    • init

      public boolean init()
      Specified by:
      init in class ReconstructionEngine
    • processDataEvent

      public boolean processDataEvent(DataEvent event)
      Specified by:
      processDataEvent in class ReconstructionEngine
    • CountNSetBits

      public Integer 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 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
    • CheckDCAcceptance

      public Boolean CheckDCAcceptance(Long word, short nMinSL, short nMinLayerPerSL)
      Check 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
    • CheckCVTAcceptance

      public Boolean CheckCVTAcceptance(Long word)
      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

      public Boolean CheckECalLayers(Long word, short EC_part)
      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

      public Boolean CheckCNDLayers(Long word, short layer)
      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

      public Boolean CheckCTOF(Long word)
      Parameters:
      word - // The status word to be checked
      Returns:
      // true if CTOF bit is set
    • CheckFTHodoLayers

      public Boolean CheckFTHodoLayers(Long word, short layer)
      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

      public Boolean CheckFTCal(Long word)
      Parameters:
      word - // The status word to be checked
      Returns:
      // true if CTOF bit is set