Public Member Functions | |
| StEEmcIUSmdCluster (const StEEmcIUSmdCluster &c) | |
| copy constructor | |
| void | add (StEEmcStrip strip, Float_t weight=1.0) |
| Int_t | key () |
| Return a unique key assigned by the cluster maker. | |
| Int_t | key () const |
| Return a unique key assigned by the cluster maker. | |
| void | key (Int_t k) |
| Float_t | energy () |
| Return the energy of this cluster. | |
| Float_t | energy () const |
| Return the energy of this cluster. | |
| Float_t | mean () |
| Return the mean strip number of this cluster. | |
| Float_t | mean () const |
| Return the mean strip number of this cluster. | |
| Float_t | sigma () |
| Return the sigma -- TMath::Sqrt(variance) -- of the cluster. | |
| Float_t | sigma () const |
| Return the sigma -- TMath::Sqrt(variance) -- of the cluster. | |
| void | mean (Float_t x) |
| Set the mean of the cluster. | |
| void | sigma (Float_t s) |
| Set the width of the cluster. | |
| void | energy (Float_t e) |
| Set the energy of the cluster. | |
| Float_t | energy (Int_t nmax, Option_t *opts="mean") |
| Float_t | sigma (Int_t nmax, Option_t *opts="mean") |
| As above, but returns sigma instead of energy. | |
| Int_t | size () |
| Return the size (number of strips) of the cluster. | |
| StEEmcTowerVec_t | towers () |
| Return list of towers matching this cluster. | |
| Int_t | numberOfMatchedTowers () |
| Return number of towers matching this cluster. | |
| StEEmcTower | tower (Int_t t) |
| Return a specific tower matching this SMD cluster. | |
| Bool_t | operator> (StEEmcIUSmdCluster &other) |
| Int_t | numberOfStrips () |
| Returns the number of SMD strips in the cluster. | |
| StEEmcStrip | strip (Int_t s) |
| Returns the specified smd strip w/in the cluster. | |
| StEEmcStrip | seed () |
| Int_t | plane () |
| Return the plane of the cluster. | |
| Int_t | sector () |
| Return the sector of the cluster. | |
| void | sector (Int_t s) |
| Set the sector. | |
| void | plane (Int_t p) |
| Set the plane. | |
| StEmcCluster * | stemc () |
| void | stemc (StEmcCluster *c) |
| Set pointer to StEmcCluster. | |
| void | print () |
| print | |
Protected Member Functions | |
| ClassDef (StEEmcIUSmdCluster, 1) | |
| Makes class available to root. | |
Protected Attributes | |
| Int_t | mKey |
| Unique key. | |
| StEEmcStripVec_t | mStrips |
| Vector of strips belonging to this SMD cluster. | |
| std::vector< Float_t > | mWeights |
| Vector of strip weights. | |
| Int_t | mSize |
| Kludge so that root will store number of smd strips. | |
| Float_t | mEnergy |
| Energy of this SMD cluster. | |
| Float_t | mSumXW |
| Running sums to calculate mean, sigma of cluster. | |
| Float_t | mSumX2W |
| Running sums to calculate mean, sigma of cluster. | |
| Float_t | mMean |
| Mean and sigma computed after each strip is added. | |
| Float_t | mSigma |
| Sigma. | |
| Int_t | mPlane |
| Plane. | |
| Int_t | mSector |
| Sector. | |
| StEEmcTowerVec_t | mMatchedTowers |
| Vector of hit towers above this SMD cluster. | |
| StEmcCluster * | mEmcCluster |
This class is designed to represent clusters of smd strips in the endcap.
Definition at line 11 of file StEEmcIUSmdCluster.h.
| void StEEmcIUSmdCluster::add | ( | StEEmcStrip | strip, | |
| Float_t | weight = 1.0 | |||
| ) |
Add an SMD strip to this cluster with the specified weight
Definition at line 59 of file StEEmcIUSmdCluster.cxx.
References StEEmcElement::energy(), energy(), StEEmcStrip::index(), mEnergy, mMean, mPlane, mSector, mSigma, mSize, mStrips, mSumX2W, mSumXW, mWeights, StEEmcStrip::plane(), and StEEmcStrip::sector().
Referenced by StEEmcIUClusterMaker::buildSmdClusters().
| Float_t StEEmcIUSmdCluster::energy | ( | Int_t | nmax, | |
| Option_t * | opts = "mean" | |||
| ) |
Return the energy of this cluster summed over +/- nmax strips about either the mean (opts=="mean") or seed (opts=="seed") smd strip.
Definition at line 119 of file StEEmcIUSmdCluster.cxx.
References StEEmcElement::energy(), StEEmcStrip::index(), mean(), and mStrips.
| void StEEmcIUSmdCluster::key | ( | Int_t | k | ) | [inline] |
Set a unique id for this cluster... k>=0 is intended to be assigned within the cluster maker. k<0 intended for error flags to kill off clusters.
Definition at line 33 of file StEEmcIUSmdCluster.h.
References mKey.
| Bool_t StEEmcIUSmdCluster::operator> | ( | StEEmcIUSmdCluster & | other | ) | [inline] |
One cluster is greater than another if energy is greater than the other.
Definition at line 165 of file StEEmcIUSmdCluster.h.
References energy().
| StEEmcStrip StEEmcIUSmdCluster::seed | ( | ) | [inline] |
Returns the seed strip (by convention, the first strip added to the cluster).
Definition at line 91 of file StEEmcIUSmdCluster.h.
References mStrips.
| StEmcCluster * StEEmcIUSmdCluster::stemc | ( | ) |
Returns a new StEmcCluster or the corresponding StEmcCluster if it already exists
Definition at line 86 of file StEEmcIUSmdCluster.cxx.
References energy(), mean(), mEmcCluster, mStrips, numberOfStrips(), and sigma().
Referenced by StEEmcIUClusterMaker::fillStEvent().
StEmcCluster* StEEmcIUSmdCluster::mEmcCluster [protected] |
POinter to EMC cluster
Definition at line 145 of file StEEmcIUSmdCluster.h.
Referenced by StEEmcIUSmdCluster(), and stemc().
1.5.9