10 #include "StSimpleCluster.h"
20 mSeedIdx = other.mSeedIdx + mMember.GetSize();
22 mMeanX = other.mE*other.mMeanX + mE*mMeanX;
23 mMeanY = other.mE*other.mMeanY + mE*mMeanY;
30 Int_t oldSize = mMember.GetSize();
31 Int_t newSize = oldSize + other.mMember.GetSize();
32 mMember.Set( newSize );
33 for( Int_t i = oldSize, j = 0; i < newSize; ++i, ++j )
34 mMember[i] = other.mMember[j];
36 oldSize = mWeight.GetSize();
37 newSize = oldSize + other.mWeight.GetSize();
38 mWeight.Set( newSize );
39 for( Int_t i = oldSize, j = 0; i < newSize; ++i, ++j )
40 mWeight[i] = other.mWeight[j];
48 out <<
"clus " << clus.mID <<
", E = " << clus.mE <<
", nMember = " << clus.mMember.GetSize() <<
", " << clus.mWeight.GetSize();
49 out <<
", seed at " << clus.mSeedIdx <<
", with idx " << clus.getSeedMember() <<
" X = " << clus.mMeanX;