17 #include "StEEmcIUSmdCluster.h"
20 #include "StEvent/StEmcCluster.h"
25 StEEmcIUSmdCluster::StEEmcIUSmdCluster()
36 std::cout <<
"key=" <<
key() << std::endl;
37 std::cout <<
"energy=" <<
energy() << std::endl;
38 std::cout <<
"mean=" <<
mean() << std::endl;
92 Int_t iuv=(
mStrips[0].plane()==1 );
123 if ( TString(opts).Contains(
"seed") )
131 Int_t min=(Int_t)(mymean-(Float_t)nmax);
132 Int_t max=(Int_t)(mymean+(Float_t)nmax);
136 for ( UInt_t i=0;i<
mStrips.size();i++ )
150 if ( TString(opts).Contains(
"seed") )
158 Int_t min=(Int_t)(mymean-(Float_t)nmax);
159 Int_t max=(Int_t)(mymean+(Float_t)nmax);
161 std::cout <<
"mymean=" << mymean << std::endl;
162 std::cout <<
"min =" << min << std::endl;
163 std::cout <<
"max =" << max << std::endl;
169 for ( UInt_t i=0;i<
mStrips.size();i++ )
172 std::cout << i <<
" " << s.
index() << std::endl;
182 sig=TMath::Sqrt( x2sum/esum - (xsum/esum)*(xsum/esum) );
Float_t mEnergy
Energy of this SMD cluster.
Int_t key()
Return a unique key assigned by the cluster maker.
Int_t mSize
Kludge so that root will store number of smd strips.
std::vector< Float_t > mWeights
Vector of strip weights.
Int_t numberOfStrips()
Returns the number of SMD strips in the cluster.
Float_t mSumXW
Running sums to calculate mean, sigma of cluster.
Float_t mMean
Mean and sigma computed after each strip is added.
void index(Int_t i)
Sets the index for this SMD strip, 0..287.
StEEmcTowerVec_t mMatchedTowers
Vector of hit towers above this SMD cluster.
Float_t mean()
Return the mean strip number of this cluster.
Float_t mSumX2W
Running sums to calculate mean, sigma of cluster.
Float_t sigma()
Return the sigma – TMath::Sqrt(variance) – of the cluster.
A base class for representing clusters of EEMC smd strips.
StEmcCluster * mEmcCluster
POinter to EMC cluster.
void plane(Int_t p)
Sets the plane for this SMD strip, 0=U, 1=V.
void sector(Int_t s)
Sets the sector for this SMD strip.
void energy(Float_t e)
Set the energy (adc-ped+0.5)/gain for this element.
StEEmcStripVec_t mStrips
Vector of strips belonging to this SMD cluster.
Base class for describing an endcap SMD strip.
Float_t energy()
Return the energy of this cluster.
void add(StEEmcStrip strip, Float_t weight=1.0)