Class EventBuilder

java.lang.Object
org.jlab.service.eb.EventBuilder

public class EventBuilder extends Object
Author:
gavalian, baltzell
  • Field Details

  • Constructor Details

  • Method Details

    • setUsePOCA

      public void setUsePOCA(boolean val)
    • initEvent

      public void initEvent()
    • initEvent

      public void initEvent(org.jlab.clas.detector.DetectorHeader head)
    • addDetectorResponses

      public void addDetectorResponses(List<org.jlab.clas.detector.DetectorResponse> responses)
    • addFTIndices

      public void addFTIndices(List<Map<org.jlab.detector.base.DetectorType,Integer>> ftindex)
    • addTracks

      public void addTracks(List<org.jlab.clas.detector.DetectorTrack> tracks)
      add tracks to the detector event class. First a particle is initialized from the track and added to the detector event.
      Parameters:
      tracks -
    • addParticles

      public void addParticles(List<org.jlab.clas.detector.DetectorParticle> particles)
    • setParticleStatuses

      public void setParticleStatuses()
      set every particle's status
    • processHitMatching

      public void processHitMatching()
      processes all particles and associating detector responses with given cuts to each particle.
    • findMatchingHit

      public boolean findMatchingHit(int pindex, org.jlab.clas.detector.DetectorParticle particle, List<org.jlab.clas.detector.DetectorResponse> responses, org.jlab.detector.base.DetectorType type, int layer, double distance)
      Find closest matching response of given detector type and layer within given distance. If found, associate it with the particle.
      Parameters:
      pindex - the particle's index
      particle - the particle
      responses - all responses
      type - detector type to find
      layer - detector layer to find
      distance - maximum distance between trajectory and hit
      Returns:
      whether match was found
    • findMatchingHit

      public boolean findMatchingHit(int pindex, org.jlab.clas.detector.DetectorParticle particle, List<org.jlab.clas.detector.DetectorResponse> responses, org.jlab.detector.base.DetectorType type, int layer, org.jlab.clas.detector.matching.IMatch matcher)
    • forwardTaggerIDMatching

      public void forwardTaggerIDMatching()
    • getForwardTaggerMatch

      public int getForwardTaggerMatch(List<org.jlab.clas.detector.DetectorResponse> hitList, org.jlab.clas.detector.DetectorParticle part, org.jlab.detector.base.DetectorType type, int ft_id)
    • processForwardTagger

      public void processForwardTagger(org.jlab.io.base.DataEvent de)
    • processBAND

      public void processBAND(List<org.jlab.clas.detector.DetectorResponse> bandHits)
    • processNeutralTracks

      public void processNeutralTracks()
    • getPindexMap

      public HashMap<Integer,Integer> getPindexMap()
    • getUnmatchedResponses

      public List<org.jlab.clas.detector.DetectorResponse> getUnmatchedResponses(List<org.jlab.clas.detector.DetectorResponse> list, org.jlab.detector.base.DetectorType type, int layer)
    • assignTrigger

      public void assignTrigger()
    • getEvent

      public org.jlab.clas.detector.DetectorEvent getEvent()
    • show

      public void show()