22 #ifndef _ST_SIMPLE_CLUSTER_H_
23 #define _ST_SIMPLE_CLUSTER_H_
41 typedef std::vector< StSimpleCluster_t > StSimpleClusterVec_t;
42 typedef std::list< StSimpleCluster_t > StSimpleClusterList_t;
55 Short_t getID()
const {
return mID; };
56 Float_t getEnergy()
const {
return mE; };
58 TArrayS& getMemberArray() {
return mMember; };
59 const TArrayS& getMemberArray()
const {
return mMember; };
60 Short_t getMember( Int_t i )
const {
return mMember[i]; };
62 TArrayF& getWeightArray() {
return mWeight; };
63 const TArrayF& getWeightArray()
const {
return mWeight; };
64 Float_t getWeight( Int_t i )
const {
return mWeight[i]; };
66 Int_t getSeedIdx()
const {
return mSeedIdx; };
68 Int_t getSeedMember()
const {
return mSeedIdx < mMember.GetSize() ? mMember[mSeedIdx] : -1; };
69 Int_t getSeedWeight()
const {
return mSeedIdx < mWeight.GetSize() ? mWeight[mSeedIdx] : -1; };
71 Float_t getMeanX()
const {
return mMeanX; };
72 Float_t getMeanY()
const {
return mMeanY; };
76 void setID(
const Short_t
ID ) { mID = ID; };
77 void setEnergy(
const Float_t E ) { mE = E; };
78 void setMemberArray(
const TArrayS array ){ mMember = array; };
79 void setWeightArray(
const TArrayF array ){ mWeight = array; };
80 void setSeedIdx( Int_t seedIdx ) { mSeedIdx = seedIdx; };
81 void setMeanX( Float_t mean ){ mMeanX = mean; };
82 void setMeanY( Float_t mean ){ mMeanY = mean; };
91 friend std::ostream &operator<<( std::ostream &out,
const StSimpleCluster_t &clus );
95 Float_t mE, mMeanX, mMeanY;