StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
StEEmcIUCluster Class Reference

A base class for describing clusters of EEMC towers. More...

Inheritance diagram for StEEmcIUCluster:

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.
 
StEmcClusterstemc ()
 
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.
 
StEmcClustermEmcCluster
 Pointer to EMC cluster.
 

Detailed Description

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.

Author
Jason C. Webb, Weihong He
Date:
2008/10/30 15:52:07
Revision:
1.1

Conventions

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.

Constructor & Destructor Documentation

StEEmcIUCluster::~StEEmcIUCluster ( )

If we have created an StEmcCluster, delete it

Definition at line 57 of file StEEmcIUCluster.cxx.

Member Function Documentation

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().

Bool_t StEEmcIUCluster::operator== ( const StEEmcIUCluster other) const
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().


The documentation for this class was generated from the following files: