StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMuEmcCluster.h
1 
6 #ifndef StMuEmcCluster__h
7 #define StMuEmcCluster__h
8 
9 #include "TObject.h"
10 #include "TArrayS.h"
11 
12 class StMuEmcCluster: public TObject
13 {
14  public:
17  virtual ~StMuEmcCluster();
18  virtual void Clear(Option_t* opt="");
19 
20  float getEta() const { return mEta;}
21  float getPhi() const { return mPhi;}
22  float getSigmaEta() const { return mSigmaEta;}
23  float getSigmaPhi() const { return mSigmaPhi;}
24  float getEnergy() const { return mEnergy;}
25 
26  int getNHits() const { return mNHits;}
27  int getHitId(int hitNumber) const { return mHits[hitNumber];}
28 
29  void setEta(float e) { mEta = e;}
30  void setPhi(float p) { mPhi = p;}
31  void setSigmaEta(float s) { mSigmaEta = s;}
32  void setSigmaPhi(float s) { mSigmaPhi = s;}
33  void setEnergy(float e) { mEnergy = e;}
34  void setNHits(int h) { mNHits = (short)h; mHits.Set(h); mHits.Reset();}
35  void setHitId(int h,int id) { mHits[h] = (short)id;}
36 
37  protected:
38  float mEta;
39  float mPhi;
40  float mSigmaEta;
41  float mSigmaPhi;
42  float mEnergy;
43  short mNHits;
44  TArrayS mHits;
45 
46  ClassDef(StMuEmcCluster,1)
47 };
48 #endif
float getSigmaEta() const
Return SigmaEta of the cluster.
int getHitId(int hitNumber) const
Return one hit of the cluster.
int getNHits() const
Return Number of hits of the cluster.
float getPhi() const
Return Phi of the cluster.
float getSigmaPhi() const
Return SigmaPhi of the cluster.
float getEta() const
Return Eta of the cluster.