Contents
- Description
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- copy(DetectorResponse)
- setTime(double)
- setPosition(double, double, double)
- setMatchPosition(double, double, double)
- setPath(double)
- setEnergy(double)
- setStatus(int)
- getTime()
- getEnergy()
- getPath()
- getSector()
- getStatus()
- getPosition()
- getMatchedPosition()
- getMatchedDistance()
- getDescriptor()
- getHitIndex()
- setHitIndex(int)
- addAssociation(int)
- getNAssociations()
- getAssociation(int)
- hasAssociation(int)
- clearAssociations()
- getPindexMask()
- getAssociation()
- setAssociation(int)
- readHipoEvent(DataEvent, String, DetectorType)
- readHipoEvent(DataEvent, String, DetectorType, double)
- getListByEnergy(List, double)
- getListBySector(List, DetectorType, int)
- getListByLayer(List, DetectorType, int)
- getListBySectorLayer(List, DetectorType, int, int)
- getSector(double)
- toString()
Class DetectorResponse
java.lang.Object
org.jlab.clas.detector.DetectorResponse
- Direct Known Subclasses:
CalorimeterResponse
,CherenkovResponse
,RingCherenkovResponse
,ScintillatorResponse
,TaggerResponse
- Author:
- gavalian, baltzell
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAssociation
(int asc) void
void
int
int
getAssociation
(int index) org.jlab.detector.base.DetectorDescriptor
double
int
static List
<DetectorResponse> getListByEnergy
(List<DetectorResponse> responses, double minEnergy) Returns a list of detectorResponses where all entries have energy above given threshold.static List
<DetectorResponse> getListByLayer
(List<DetectorResponse> list, org.jlab.detector.base.DetectorType type, int layer) static List
<DetectorResponse> getListBySector
(List<DetectorResponse> list, org.jlab.detector.base.DetectorType type, int sector) static List
<DetectorResponse> getListBySectorLayer
(List<DetectorResponse> list, org.jlab.detector.base.DetectorType type, int sector, int layer) double
org.jlab.geom.prim.Vector3D
int
double
getPath()
int
org.jlab.geom.prim.Vector3D
int
static int
getSector
(double phi) int
double
getTime()
boolean
hasAssociation
(int asc) static List
<DetectorResponse> readHipoEvent
(org.jlab.io.base.DataEvent event, String bankName, org.jlab.detector.base.DetectorType type) reads DetectorResponse List from DataEvent class. it has to contain branches: sector and layer (type BYTE), x,y,z (type FLOAT) energy,time (type FLOAT)static List
<DetectorResponse> readHipoEvent
(org.jlab.io.base.DataEvent event, String bankName, org.jlab.detector.base.DetectorType type, double minEnergy) Reads a HIPO event, constructs list of detector responses then returns only entries with energy above given threshold.void
setAssociation
(int asc) void
setEnergy
(double energy) void
setHitIndex
(int hitIndex) void
setMatchPosition
(double x, double y, double z) void
setPath
(double path) void
setPosition
(double x, double y, double z) void
setStatus
(int status) void
setTime
(double time) toString()
-
Constructor Details
-
Method Details
-
copy
-
setTime
public void setTime(double time) -
setPosition
public void setPosition(double x, double y, double z) -
setMatchPosition
public void setMatchPosition(double x, double y, double z) -
setPath
public void setPath(double path) -
setEnergy
public void setEnergy(double energy) -
setStatus
public void setStatus(int status) -
getTime
public double getTime() -
getEnergy
public double getEnergy() -
getPath
public double getPath() -
getSector
public int getSector() -
getStatus
public int getStatus() -
getPosition
public org.jlab.geom.prim.Vector3D getPosition() -
getMatchedPosition
public org.jlab.geom.prim.Vector3D getMatchedPosition() -
getMatchedDistance
public double getMatchedDistance() -
getDescriptor
public org.jlab.detector.base.DetectorDescriptor getDescriptor() -
getHitIndex
public int getHitIndex() -
setHitIndex
public void setHitIndex(int hitIndex) -
addAssociation
public void addAssociation(int asc) -
getNAssociations
public int getNAssociations() -
getAssociation
public int getAssociation(int index) -
hasAssociation
public boolean hasAssociation(int asc) -
clearAssociations
public void clearAssociations() -
getPindexMask
public int getPindexMask() -
getAssociation
public int getAssociation() -
setAssociation
public void setAssociation(int asc) -
readHipoEvent
public static List<DetectorResponse> readHipoEvent(org.jlab.io.base.DataEvent event, String bankName, org.jlab.detector.base.DetectorType type) reads DetectorResponse List from DataEvent class. it has to contain branches: sector and layer (type BYTE), x,y,z (type FLOAT) energy,time (type FLOAT)- Parameters:
event
-bankName
-type
-- Returns:
-
readHipoEvent
public static List<DetectorResponse> readHipoEvent(org.jlab.io.base.DataEvent event, String bankName, org.jlab.detector.base.DetectorType type, double minEnergy) Reads a HIPO event, constructs list of detector responses then returns only entries with energy above given threshold.- Parameters:
event
-bankName
-type
-minEnergy
-- Returns:
-
getListByEnergy
public static List<DetectorResponse> getListByEnergy(List<DetectorResponse> responses, double minEnergy) Returns a list of detectorResponses where all entries have energy above given threshold.- Parameters:
responses
- list of detector responses.minEnergy
- minimum energy accepted- Returns:
-
getListBySector
public static List<DetectorResponse> getListBySector(List<DetectorResponse> list, org.jlab.detector.base.DetectorType type, int sector) -
getListByLayer
public static List<DetectorResponse> getListByLayer(List<DetectorResponse> list, org.jlab.detector.base.DetectorType type, int layer) -
getListBySectorLayer
public static List<DetectorResponse> getListBySectorLayer(List<DetectorResponse> list, org.jlab.detector.base.DetectorType type, int sector, int layer) -
getSector
public static int getSector(double phi) -
toString
-