StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEmcMicroPoint.h
1 
11 #ifndef StEmcMicroPoint__h
12 #define StEmcMicroPoint__h
13 
14 #include "TObject.h"
15 #include "TObjArray.h"
16 #include "StEmcMicroCluster.h"
17 
18 class StEmcMicroPoint: public TObject
19 {
20  public:
23  virtual ~StEmcMicroPoint();
24 
25  Float_t getEta() { return mEta;}
26  Float_t getPhi() { return mPhi;}
27  Float_t getDeltaEta() { return mDeltaEta;}
28  Float_t getDeltaPhi() { return mDeltaPhi;}
29  Float_t getEnergy() { return mEnergy;}
30  Float_t getChiSquare() { return mChiSquare;}
31 
32  StEmcMicroCluster* getCluster(Int_t EmcDet,Int_t ClId) { return (StEmcMicroCluster*) mEmc[EmcDet-1]->At(ClId); }
33  Int_t getNClusters(Int_t EmcDet) { return mEmc[EmcDet-1]->GetEntries();}
34 
35  void addCluster(Int_t EmcDet,StEmcMicroCluster* cl) { mEmc[EmcDet-1]->AddLast(cl);}
36 
37  void setEta(Float_t e) { mEta = e;}
38  void setPhi(Float_t p) { mPhi = p;}
39  void setDeltaEta(Float_t s) { mDeltaEta = s;}
40  void setDeltaPhi(Float_t s) { mDeltaPhi = s;}
41  void setEnergy(Float_t e) { mEnergy = e;}
42  void setChiSquare(Float_t e) { mChiSquare = e;}
43 
44  private:
45  Float_t mEta;
46  Float_t mPhi;
47  Float_t mDeltaEta;
48  Float_t mDeltaPhi;
49  Float_t mEnergy;
50  Float_t mChiSquare;
51 
52  TObjArray* mEmc[4];
53 
54  ClassDef(StEmcMicroPoint,1)
55 };
56 #endif
StEmcMicroCluster * getCluster(Int_t EmcDet, Int_t ClId)
Return one cluster of the point.
Float_t getEnergy()
Return Energy of the point.
Int_t getNClusters(Int_t EmcDet)
Return number of cluster of the point for one sub detector.
Float_t getPhi()
Return Phi of the point.
Float_t getEta()
Return Eta of the point.
Float_t getChiSquare()
Return ChiSquare of the point.
Float_t getDeltaPhi()
Return DeltaPhi of the point.
Float_t getDeltaEta()
Return DeltaEta of the point.