Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- setUsePOCA(boolean)
- initEvent()
- initEvent(DetectorHeader)
- addDetectorResponses(List)
- addFTIndices(List)
- addTracks(List)
- addParticles(List)
- setParticleStatuses()
- processHitMatching()
- findMatchingHit(int, DetectorParticle, List, DetectorType, int, double)
- findMatchingHit(int, DetectorParticle, List, DetectorType, int, IMatch)
- forwardTaggerIDMatching()
- getForwardTaggerMatch(List, DetectorParticle, DetectorType, int)
- processForwardTagger(DataEvent)
- processBAND(List)
- processNeutralTracks()
- getPindexMap()
- getUnmatchedResponses(List, DetectorType, int)
- assignTrigger()
- getEvent()
- show()
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
-
Constructor Details
-
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()
-