00001
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef STAR_StPhmdCluster
00028 #define STAR_StPhmdCluster
00029
00030 #include <math.h>
00031 #include <Stiostream.h>
00032 #include "StObject.h"
00033 #include "StPhmdHit.h"
00034 #include "StContainers.h"
00035
00036 class StPhmdCluster : public StObject {
00037 public:
00038 StPhmdCluster();
00039 ~StPhmdCluster();
00040
00041 int module() const;
00042 int numberOfCells() const;
00043 float eta() const;
00044 float phi() const;
00045 float energy() const;
00046 float sigma() const;
00047 int energyPid() const;
00048 int pid() const;
00049 int mcPid() const;
00050
00051 void setModule(int);
00052 void setNumberOfCells(int);
00053 void setEta(float);
00054 void setPhi(float);
00055 void setEnergy(float);
00056 void setSigma(float);
00057 void setEnergyPid(int);
00058 void setPid(int);
00059 void setMcPid(int);
00060
00061 void addHit(StPhmdHit*);
00062
00063 StPtrVecPhmdHit& hit();
00064 const StPtrVecPhmdHit& hit() const;
00065
00066 private:
00067 Int_t mModule;
00068 Int_t mNumberOfCells;
00069 Float_t mEta;
00070 Float_t mPhi;
00071 Float_t mEnergy;
00072 Float_t mSigma;
00073 Int_t mPID;
00074 Int_t mEnergyPID;
00075 Int_t mMcPID;
00076 StPtrVecPhmdHit mHits;
00077
00078 ClassDef(StPhmdCluster,1)
00079 };
00080
00081 ostream &operator<<(ostream&, StPhmdCluster&);
00082
00083
00084 inline int StPhmdCluster::module() const {return mModule;}
00085 inline int StPhmdCluster::numberOfCells() const {return mNumberOfCells;}
00086 inline float StPhmdCluster::eta() const {return mEta;}
00087 inline float StPhmdCluster::phi() const {return mPhi;}
00088 inline float StPhmdCluster::energy() const {return mEnergy;}
00089 inline float StPhmdCluster::sigma() const {return mSigma;}
00090 inline int StPhmdCluster::energyPid() const {return mEnergyPID;}
00091 inline int StPhmdCluster::pid() const {return mPID;}
00092 inline int StPhmdCluster::mcPid() const {return mMcPID;}
00093
00094 inline void StPhmdCluster::setModule(int var) {mModule=var;}
00095 inline void StPhmdCluster::setNumberOfCells(int var) {mNumberOfCells=var;}
00096 inline void StPhmdCluster::setEta(float var) {mEta=var;}
00097 inline void StPhmdCluster::setPhi(float var) {mPhi=var;}
00098 inline void StPhmdCluster::setEnergy(float var) {mEnergy=var;}
00099 inline void StPhmdCluster::setSigma(float var) {mSigma=var;}
00100 inline void StPhmdCluster::setEnergyPid(int var) {mEnergyPID=var;}
00101 inline void StPhmdCluster::setPid(int var) {mPID=var;}
00102 inline void StPhmdCluster::setMcPid(int var) {mMcPID=var;}
00103
00104 ostream& operator<<(ostream &, const StPhmdCluster&);
00105
00106 #endif
00107
00108
00109
00110
00111
00112
00113