StRoot
1
|
A base class for describing clusters of EEMC towers. More...
Public Member Functions | |
~StEEmcIUCluster () | |
void | add (StEEmcTower, Float_t weight=1.0) |
Float_t | energy () |
Get energy of this cluster. | |
Float_t | seedEnergy () |
Get the energy of the seed tower. | |
TVector3 | momentum () |
Get the momentum of this cluster. | |
Int_t | numberOfTowers () |
Get the number of towers in cluster. | |
StEEmcTower | tower (Int_t t) |
Get the specified tower. | |
StEEmcTower | tower (Int_t t) const |
Get the specified tower. | |
Float_t | weight (Int_t t) |
Get the weight associated with tower. | |
StEEmcTowerVec_t | towers () |
Get the vector of towers in this cluster. | |
void | momentum (TVector3 p) |
Set the momentum of this cluster. | |
StEmcCluster * | stemc () |
void | stemc (StEmcCluster *c) |
Pointer to StEmcCluster for embedding. | |
Int_t | key () |
Returns unique id of the cluster. | |
void | key (Int_t k) |
Sets the unique id of the cluster. | |
Bool_t | operator== (const StEEmcIUCluster &other) const |
void | print () |
Prints cluster data. | |
Protected Member Functions | |
ClassDef (StEEmcIUCluster, 1) | |
Makes class available to root. | |
Protected Attributes | |
Int_t | mKey |
Unique cluster ID. | |
StEEmcTowerVec_t | mTowers |
Vector of towers. | |
std::vector< Float_t > | mWeights |
Vector of tower weights. | |
Float_t | mEnergy |
Energy. | |
TVector3 | mMomentum |
Momentum. | |
StEmcCluster * | mEmcCluster |
Pointer to EMC cluster. | |
A base class for describing clusters of EEMC towers.
This class is designed to represent EEMC tower clusters. By "tower cluster" I mean a cluster of StEEmcTower objects, which can in principle be clusters of tower, preshower or postshower elements.
By convention, we assume that the first tower added to the cluster is the "seed" tower.
Each cluster should be assigned its own unique "key" by the maker which produces it.
This class makes no assumtion about the size and/or shape of the cluster.
Definition at line 10 of file StEEmcIUCluster.h.
StEEmcIUCluster::~StEEmcIUCluster | ( | ) |
If we have created an StEmcCluster, delete it
Definition at line 57 of file StEEmcIUCluster.cxx.
void StEEmcIUCluster::add | ( | StEEmcTower | tower, |
Float_t | weight = 1.0 |
||
) |
add a tower to this cluster. The code assumes that the first tower added is the seed tower, and hence is the most energetic.
Definition at line 45 of file StEEmcIUCluster.cxx.
References StEEmcElement::energy(), energy(), mEnergy, mTowers, and mWeights.
Referenced by StEEmcIUClusterMaker::buildTowerClusters().
|
inline |
Tests whether the cluster has the same seed tower as another cluster. If so, these clusters are considered equal
Definition at line 58 of file StEEmcIUCluster.h.
References StEEmcTower::index(), and tower().
StEmcCluster * StEEmcIUCluster::stemc | ( | ) |
Create and return an StEmcCluster using this cluster's hits, energy, etc... The StEmcCluster will be deleted when this cluster's destructor is called.
Definition at line 64 of file StEEmcIUCluster.cxx.
References energy(), mEmcCluster, mKey, momentum(), mTowers, and numberOfTowers().
Referenced by StEEmcIUClusterMaker::fillStEvent().