Package org.jlab.rec.cvt.cluster
Class Cluster
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Cluster>
,Iterable<Hit>
,Collection<Hit>
,List<Hit>
,RandomAccess
A cluster in the BST consists of an array of hits that are grouped together
according to the algorithm of the ClusterFinder class
- Author:
- ziegler
- See Also:
-
Field Summary
FieldsFields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
ConstructorsConstructorDescriptionCluster
(DetectorType detector, BMTType type, int sector, int layer, int cid) -
Method Summary
Modifier and TypeMethodDescriptionvoid
sets energy-weighted parameters; these are the strip centroid (energy-weighted) value, the energy-weighted phi for Z detectors and the energy-weighted z for C detectorscenter()
int
end()
getArc()
int
getAxis()
double
double
double
double
double
int
getId()
getL()
int
getLayer()
getLine()
int
int
getN()
double
getPhi()
double
getPhi0()
double
double
double
int
int
double
double
getResolutionAlongZ
(double Z) getS()
int
getSeed()
double
getTile()
double
getTime()
int
double
getType()
double
getZ()
double
getZErr()
newCluster
(Hit hit, int cid) origin()
double
void
void
setAssociatedTrackID
(int associatedTrackID) void
setCentroid
(double _Centroid) void
setCentroid0
(double _Centroid0) void
setCentroidError
(double _CentroidError) void
setCentroidResidual
(double _CentroidResidual) void
setCentroidResidual
(Point3D traj) void
setCentroidValue
(double _CentroidValue) void
setDetector
(DetectorType _Detector) void
setId
(int _Id) void
void
setLayer
(int _Layer) void
void
setMaxStrip
(int _MaxStrip) void
setMinStrip
(int _MinStrip) void
void
setPhi
(double _Phi) void
setPhi0
(double _Phi0) void
setPhiErr
(double _PhiErr) void
setPhiErr0
(double _PhiErr0) void
setResolution
(double E) void
void
setSector
(int _Sector) void
void
setSeedResidual
(double _SeedResidual) void
setSeedResidual
(Point3D traj) void
setTime
(double _Time) void
setTlayer
(int _Tlayer) void
setTotalEnergy
(double _TotalEnergy) void
setTrakInters
(Point3D _TrakInters) void
void
setZ
(double _Z) void
setZErr
(double _ZErr) double
theta()
toGlobal()
toLocal()
toString()
void
update
(int trackId, AKFitter.HitOnTrack traj) Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
containsAll
-
Field Details
-
flagForExclusion
public boolean flagForExclusion
-
-
Constructor Details
-
Cluster
-
-
Method Details
-
newCluster
- Parameters:
hit
- the first hit in the list of hits composing the clustercid
- the id of the cluster- Returns:
- an array list of hits characterized by its sector, layer and id number.
-
getDetector
-
setDetector
-
getType
-
setType
-
getSector
public int getSector()- Returns:
- the sector of the cluster
-
setSector
public void setSector(int _Sector) - Parameters:
_Sector
- sector of the cluster
-
getLayer
public int getLayer()- Returns:
- the layer of the cluster
-
setLayer
public void setLayer(int _Layer) - Parameters:
_Layer
- the layer of the cluster
-
getTlayer
public int getTlayer()- Returns:
- the _Tlayer
-
setTlayer
public void setTlayer(int _Tlayer) - Parameters:
_Tlayer
- the _Tlayer to set
-
getId
public int getId()- Returns:
- the id of the cluster
-
setId
public void setId(int _Id) - Parameters:
_Id
- the id of the cluster
-
getRegion
public int getRegion()- Returns:
- region (1...4)
-
getRegionSlayer
public int getRegionSlayer()- Returns:
- superlayer 1 or 2 in region (1...4)
-
getRadius
public double getRadius()- Returns:
- the _Radius
-
getAxis
-
getTile
-
calc_CentroidParams
public void calc_CentroidParams()sets energy-weighted parameters; these are the strip centroid (energy-weighted) value, the energy-weighted phi for Z detectors and the energy-weighted z for C detectors -
getCentroid
public double getCentroid() -
setCentroid
public void setCentroid(double _Centroid) -
getResolution
public double getResolution() -
setResolution
public void setResolution(double E) -
getCentroid0
public double getCentroid0() -
setCentroid0
public void setCentroid0(double _Centroid0) -
getPhi
public double getPhi() -
setPhi
public void setPhi(double _Phi) -
getPhi0
public double getPhi0() -
setPhi0
public void setPhi0(double _Phi0) -
getPhiErr
public double getPhiErr() -
setPhiErr
public void setPhiErr(double _PhiErr) -
getPhiErr0
public double getPhiErr0() -
setPhiErr0
public void setPhiErr0(double _PhiErr0) -
getZ
public double getZ() -
setZ
public void setZ(double _Z) -
getZErr
public double getZErr() -
setZErr
public void setZErr(double _ZErr) -
setCentroidValue
public void setCentroidValue(double _CentroidValue) -
getCentroidValue
public double getCentroidValue() -
getCentroidError
public double getCentroidError() -
setCentroidError
public void setCentroidError(double _CentroidError) -
getArc
- Returns:
- the _Arc
-
setArc
- Parameters:
_Arc
- the _Arc to set
-
origin
-
end
-
center
-
theta
public double theta() -
toLocal
-
toGlobal
-
residual
-
setCentroidResidual
-
setSeedResidual
-
getTotalEnergy
public double getTotalEnergy() -
setTotalEnergy
public void setTotalEnergy(double _TotalEnergy) -
getTime
public double getTime() -
setTime
public void setTime(double _Time) -
getMinStrip
public int getMinStrip() -
setMinStrip
public void setMinStrip(int _MinStrip) -
getMaxStrip
public int getMaxStrip() -
setMaxStrip
public void setMaxStrip(int _MaxStrip) -
getSeedStrip
-
getSeed
-
setSeed
-
getSeedResidual
public double getSeedResidual() -
setSeedResidual
public void setSeedResidual(double _SeedResidual) -
getCentroidResidual
public double getCentroidResidual() -
setCentroidResidual
public void setCentroidResidual(double _CentroidResidual) -
getTrakInters
- Returns:
- the _TrakInters
-
setTrakInters
- Parameters:
_TrakInters
- the _TrakInters to set
-
measurement
-
getResolutionAlongZ
public double getResolutionAlongZ(double Z) - Parameters:
Z
- z-coordinate of a point in the local coordinate system of a module- Returns:
- the average resolution for a group of strips in a cluster in the SVT
-
getAssociatedTrackID
public int getAssociatedTrackID() -
setAssociatedTrackID
public void setAssociatedTrackID(int associatedTrackID) -
compareTo
- Specified by:
compareTo
in interfaceComparable<Cluster>
-
getLine
-
setLine
-
getL
- Returns:
- the _l
-
setL
- Parameters:
_l
- the _l to set
-
getS
- Returns:
- the _s
-
setS
- Parameters:
_s
- the _s to set
-
getN
- Returns:
- the _n
-
setN
- Parameters:
_n
- the _n to set
-
update
-
toString
- Overrides:
toString
in classAbstractCollection<Hit>
-