Package org.jlab.service.eb
Class EventBuilder
java.lang.Object
org.jlab.service.eb.EventBuilder
- Author:
- gavalian, baltzell
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
setUsePOCApublic void setUsePOCA(boolean val) 
- 
initEventpublic void initEvent()
- 
initEvent
- 
addDetectorResponses
- 
addFTIndices
- 
addTracksadd tracks to the detector event class. First a particle is initialized from the track and added to the detector event.- Parameters:
- tracks-
 
- 
addParticles
- 
setParticleStatusespublic void setParticleStatuses()set every particle's status
- 
processHitMatchingpublic void processHitMatching()processes all particles and associating detector responses with given cuts to each particle.
- 
findMatchingHitpublic 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 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
 
- 
findMatchingHitpublic boolean findMatchingHit(int pindex, DetectorParticle particle, List<DetectorResponse> responses, DetectorType type, int layer, IMatch matcher) 
- 
forwardTaggerIDMatchingpublic void forwardTaggerIDMatching()
- 
getForwardTaggerMatchpublic int getForwardTaggerMatch(List<DetectorResponse> hitList, DetectorParticle part, DetectorType type, int ft_id) 
- 
processForwardTagger
- 
processBAND
- 
processNeutralTrackspublic void processNeutralTracks()
- 
getPindexMap
- 
getUnmatchedResponsespublic List<DetectorResponse> getUnmatchedResponses(List<DetectorResponse> list, DetectorType type, int layer) 
- 
assignTriggerpublic void assignTrigger()
- 
getEvent
- 
showpublic void show()
 
-