Class EventBuilder
java.lang.Object
org.jlab.service.eb.EventBuilder
- Author:
- gavalian, baltzell
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDetectorResponses(List<DetectorResponse> responses) voidaddFTIndices(List<Map<DetectorType, Integer>> ftindex) voidaddParticles(List<DetectorParticle> particles) voidaddTracks(List<DetectorTrack> tracks) add tracks to the detector event class.voidbooleanfindMatchingHit(int pindex, DetectorParticle particle, List<DetectorResponse> responses, DetectorType type, int layer, double distance) Find closest matching response of given detector type and layer within given distance.booleanfindMatchingHit(int pindex, DetectorParticle particle, List<DetectorResponse> responses, DetectorType type, int layer, IMatch matcher) voidgetEvent()intgetForwardTaggerMatch(List<DetectorResponse> hitList, DetectorParticle part, DetectorType type, int ft_id) getUnmatchedResponses(List<DetectorResponse> list, DetectorType type, int layer) voidvoidinitEvent(DetectorHeader head) voidprocessBAND(List<DetectorResponse> bandHits) voidvoidprocesses all particles and associating detector responses with given cuts to each particle.voidvoidset every particle's statusvoidsetUsePOCA(boolean val) voidshow()
-
Field Details
-
ccdb
-
-
Constructor Details
-
EventBuilder
-
-
Method Details
-
setUsePOCA
public void setUsePOCA(boolean val) -
initEvent
public void initEvent() -
initEvent
-
addDetectorResponses
-
addFTIndices
-
addTracks
add tracks to the detector event class. First a particle is initialized from the track and added to the detector event.- Parameters:
tracks-
-
addParticles
-
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, DetectorParticle particle, List<DetectorResponse> responses, 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 indexparticle- the particleresponses- all responsestype- detector type to findlayer- detector layer to finddistance- maximum distance between trajectory and hit- Returns:
- whether match was found
-
findMatchingHit
public boolean findMatchingHit(int pindex, DetectorParticle particle, List<DetectorResponse> responses, DetectorType type, int layer, IMatch matcher) -
forwardTaggerIDMatching
public void forwardTaggerIDMatching() -
getForwardTaggerMatch
public int getForwardTaggerMatch(List<DetectorResponse> hitList, DetectorParticle part, DetectorType type, int ft_id) -
processForwardTagger
-
processBAND
-
processNeutralTracks
public void processNeutralTracks() -
getPindexMap
-
getUnmatchedResponses
public List<DetectorResponse> getUnmatchedResponses(List<DetectorResponse> list, DetectorType type, int layer) -
assignTrigger
public void assignTrigger() -
getEvent
-
show
public void show()
-