00001 #ifndef __StEEmcBaseCluster_h__
00002 #define __StEEmcBaseCluster_h__
00003
00022 #include "TObject.h"
00023 #include <vector>
00024
00025 class StEEmcBaseCluster : public TObject {
00026 public:
00027 StEEmcBaseCluster();
00028 virtual ~StEEmcBaseCluster(){ }
00029
00030 Int_t key() const {return mKey;}
00031 void key(Int_t k) {mKey = k;}
00032
00033 Bool_t split() const { return mSplit; }
00034 void split(Bool_t s){ mSplit=s; }
00035
00036 void addMatch( Int_t key, Int_t layer ) { mMatched[layer].push_back(key); }
00037 Int_t numberOfMatchingClusters( Int_t layer ) const { return (Int_t)mMatched[layer].size(); }
00038 Int_t getMatch( Int_t ith, Int_t layer ) const { return mMatched[layer][ith]; }
00039
00040 Float_t energy() const { return mEnergy; }
00041 void energy( Float_t e){ mEnergy=e; }
00042 Int_t numberOfElements() const { return mNumberOfElements; }
00043
00044 protected:
00045 Int_t mKey;
00046 Bool_t mSplit;
00047 std::vector< std::vector< Int_t > > mMatched;
00048 Float_t mEnergy;
00049 Int_t mNumberOfElements;
00050
00051 ClassDef(StEEmcBaseCluster,1);
00052 };
00053
00054 #endif
00055
00056