Package org.jlab.service.eb
Class EventBuilder
java.lang.Object
org.jlab.service.eb.EventBuilder
- Author:
- gavalian, baltzell
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDetectorResponses
(List<DetectorResponse> responses) void
addFTIndices
(List<Map<DetectorType, Integer>> ftindex) void
addParticles
(List<DetectorParticle> particles) void
addTracks
(List<DetectorTrack> tracks) add tracks to the detector event class.void
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.boolean
findMatchingHit
(int pindex, DetectorParticle particle, List<DetectorResponse> responses, DetectorType type, int layer, IMatch matcher) void
getEvent()
int
getForwardTaggerMatch
(List<DetectorResponse> hitList, DetectorParticle part, DetectorType type, int ft_id) getUnmatchedResponses
(List<DetectorResponse> list, DetectorType type, int layer) void
void
initEvent
(DetectorHeader head) void
processBAND
(List<DetectorResponse> bandHits) void
void
processes all particles and associating detector responses with given cuts to each particle.void
void
set every particle's statusvoid
setUsePOCA
(boolean val) void
show()
-
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()
-