class TMuiCluster

Describes a single cluster of hits in MuID tubes

Public Methods

TMuiCluster(const TMuiChannelId& id)
Constructor.
TMuiCluster()
Default constructor.
TMuiCluster(const TMuiCluster& source)
Copy constructor.
~TMuiCluster()
Destructor.
void SetClusterGap(const short& cluster_gap)
Set the gap parameter for determining if a hit can be attached.
short AddHit(TMuiHit* const& hit)
Add a new hit; return the number of hits in this cluster.
short Merge(TMuiCluster* const& cluster)
Merge two clusters; return the resulting number of hits.
void Empty()
Remove all hits from the cluster.
void CalcPosition()
Calculate the cluster centroid position.
void SetClusterIndex(const long& index)
Set index of row in dMuiClusters table that contains this cluster.
TMuiChannelId ChannelID() const
Location of cluster. The two-pack number portion is not applicable.
bool IsHitAdjacent(TMuiHit* const& hit) const
If true, the hit is "close enough" to the cluster to be attached.
short ClusterSize() const
Number of contiguous tubes inside cluster boundaries.
short HitCount() const
Number of hits in this cluster.
vector <TMuiHit*> HitList() const
List of pointers to the hits that comprise this cluster.
vector <long> RawHitIndices() const
Returns a list of dMuiRaw indices for the raw hits attached to this cluster.
Hep3Vector Position() const
Position of centroid of hits in this cluster.
Hep3Vector PositionError() const
Position uncertainty of centroid of hits in this cluster.
long MuiClusterIndex() const
Index of row in dMuiClusters table that contains this cluster.

Documentation

Describes a single cluster of hits in MuID tubes.

A "cluster" is a collection of contiguous (or nearly contiguous) raw hits that have been determined to be associated with a single particle incident on a muID plane.

The cluster container does all of the real work of finding clusters; all that you need to do is to fill a TMuiHitContainer object with TMuiHit objects corresponding to the entries in dMuiRaw, then create a TMuiClusterContainer object, set the cluster gap parameter of the cluster container, then pass a pointer to the hit container to the MakeClusters() method of the cluster container:

 // pHC is a pointer to a filled TMuiHitContainer object
 pCC->SetClusterSeparation(1,1);  // require contiguous hits
 pCC->MakeClusters(pHC);
 

You should then have access to the TMuiCluster objects via the Cluster() methods of the cluster container.

TMuiCluster(const TMuiChannelId& id)
Constructor.

TMuiCluster()
Default constructor.

TMuiCluster(const TMuiCluster& source)
Copy constructor.

~TMuiCluster()
Destructor.

void SetClusterGap(const short& cluster_gap)
Set the gap parameter for determining if a hit can be attached.

short AddHit(TMuiHit* const& hit)
Add a new hit; return the number of hits in this cluster.

short Merge(TMuiCluster* const& cluster)
Merge two clusters; return the resulting number of hits.

void Empty()
Remove all hits from the cluster.

void CalcPosition()
Calculate the cluster centroid position.

void SetClusterIndex(const long& index)
Set index of row in dMuiClusters table that contains this cluster.

TMuiChannelId ChannelID() const
Location of cluster. The two-pack number portion is not applicable.

bool IsHitAdjacent(TMuiHit* const& hit) const
If true, the hit is "close enough" to the cluster to be attached.

short ClusterSize() const
Number of contiguous tubes inside cluster boundaries.

short HitCount() const
Number of hits in this cluster.

vector <TMuiHit*> HitList() const
List of pointers to the hits that comprise this cluster.

vector <long> RawHitIndices() const
Returns a list of dMuiRaw indices for the raw hits attached to this cluster.

Hep3Vector Position() const
Position of centroid of hits in this cluster.

Hep3Vector PositionError() const
Position uncertainty of centroid of hits in this cluster.

long MuiClusterIndex() const
Index of row in dMuiClusters table that contains this cluster.


This class has no child classes.
Author:
Kyle Pope mailto:pope@phy.ornl.gov

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de