1 #ifndef __StEEmcSmdCluster_h__
2 #define __StEEmcSmdCluster_h__
5 #include "StEEmcStrip.h"
6 #include "StEEmcTower.h"
25 Int_t
key(){
return mKey; }
26 Int_t
key()
const {
return mKey; }
31 void key(Int_t k){ mKey=k; }
35 Float_t energy()
const;
46 Float_t energy( Int_t nmax, Option_t *opts=
"mean" );
48 Float_t sigma( Int_t nmax, Option_t *opts=
"mean" );
51 Float_t
energy3(){
return energy(3,
"seed"); }
52 Float_t energy5(){
return energy(5,
"seed"); }
53 Float_t sigma3(){
return sigma(3,
"seed"); }
54 Float_t sigma5(){
return sigma(5,
"seed"); }
60 StEEmcTowerVec_t towers();
62 Int_t numberOfMatchedTowers();
76 Int_t plane(){
return mStrips[0].plane(); }
77 Int_t sector(){
return mStrips[0].sector(); }
118 inline Float_t StEEmcSmdCluster::energy(){
return mEnergy; }
119 inline Float_t StEEmcSmdCluster::mean(){
return mMean; }
120 inline Float_t StEEmcSmdCluster::sigma(){
return mSigma; }
122 inline Float_t StEEmcSmdCluster::energy()
const{
return mEnergy; }
123 inline Float_t StEEmcSmdCluster::mean()
const{
return mMean; }
124 inline Float_t StEEmcSmdCluster::sigma()
const{
return mSigma; }
126 inline Int_t StEEmcSmdCluster::size(){
return (Int_t)
mSize; }
128 inline StEEmcTowerVec_t StEEmcSmdCluster::towers(){
return mMatchedTowers; }
129 inline Int_t StEEmcSmdCluster::numberOfMatchedTowers(){
return (Int_t)
mMatchedTowers.size(); }
131 inline Bool_t StEEmcSmdCluster::operator>(
StEEmcSmdCluster &other){
return (this->energy() > other.energy()); }
145 typedef std::vector<StEEmcSmdCluster> StEEmcSmdClusterVec_t;
Float_t mEnergy
Energy of this SMD cluster.
Float_t energy3()
For interactive root sessions...
Float_t mMean
Mean and sigma computed after each strip is added.
Base class for representing tower, preshower and postshower elements.
std::vector< Float_t > mWeights
Vector of strip weights.
Int_t key()
Return a unique key assigned by the cluster maker.
Float_t mSumX2W
Running sums to calculate mean, sigma of cluster.
StEEmcStripVec_t mStrips
Vector of strips belonging to this SMD cluster.
A base class for representing clusters of EEMC smd strips.
StEmcCluster * mEmcCluster
POinter to EMC cluster.
Int_t numberOfStrips()
Returns the number of SMD strips in the cluster.
Int_t mSize
Kludge so that root will store number of smd strips.
StEEmcTowerVec_t mMatchedTowers
Vector of hit towers above this SMD cluster.
StEEmcStrip & strip(Int_t s)
Returns the specified smd strip w/in the cluster.
Base class for describing an endcap SMD strip.
StEEmcStrip strip(Int_t s)
Returns the specified smd strip w/in the cluster.
Float_t mSumXW
Running sums to calculate mean, sigma of cluster.