public class LayerStat extends Object
This is a concrete class and is not intended to be used for inheritance. Layers can save and then retrieve their state in the layer status.
Layer status objects form a linked list which is intended to be managed from the top; when an object is deleted, children (and not parents) are deleted recursively.
The miss object is managed here, i.e. it is deleted when the layer status is deleted. The layer and finder are not managed here.
Modifier and Type | Field and Description |
---|---|
private boolean |
_at_exit |
private ClusterFinder |
_finder |
private Layer |
_layer |
private int |
_layer_state |
private Miss |
_miss |
private boolean |
debug |
Constructor and Description |
---|
LayerStat()
default constructor
|
LayerStat(Layer layer)
constructor from layer
|
LayerStat(LayerStat lstat)
copy constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
atExit()
return true if the track is at the exit of this layer
|
List |
clusters()
Return all the clusters associated with this surface
in the layer.
|
List |
clusters(ETrack tre)
Return all the clusters near the specified track associated with
the track's surface in the current layer surface.
|
ClusterFinder |
finder()
Return the finder
|
boolean |
hasClusters()
Return whether this surface has clusters.
|
Layer |
layer()
return the layer
|
Miss |
miss()
Return the miss.
|
void |
reset()
reset flag, miss, finder and state
|
void |
setAtExit()
set exit
|
void |
setAtExit(boolean value)
set at exit
|
void |
setFinder(ClusterFinder finder)
set the cluster finder
|
void |
setMiss(Miss miss)
set the miss
|
void |
setState(int layer_state)
set the layer state
|
int |
state()
Fetch the layer state
|
String |
toString()
output stream
|
void |
unsetMiss()
drop the miss
|
private boolean debug
private Layer _layer
private boolean _at_exit
private Miss _miss
private ClusterFinder _finder
private int _layer_state
public LayerStat()
public LayerStat(Layer layer)
layer
- Layer for which to create a statuspublic LayerStat(LayerStat lstat)
lstat
- LayerStat to replicatepublic String toString()
public void reset()
public void setAtExit()
public void setAtExit(boolean value)
value
- to set at exitpublic void setMiss(Miss miss)
miss
- Miss to set for this statuspublic void unsetMiss()
public void setFinder(ClusterFinder finder)
finder
- ClusterFinder for this Layer's surfacepublic void setState(int layer_state)
layer_state
- for this layerpublic Layer layer()
public boolean atExit()
public boolean hasClusters()
public List clusters()
public List clusters(ETrack tre)
tre
- ETrackpublic Miss miss()
public int state()
public ClusterFinder finder()
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.