00001
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #ifndef StRichSpectra_hh
00034 #define StRichSpectra_hh
00035
00036 #include <Stiostream.h>
00037 #include <float.h>
00038 #include "StObject.h"
00039
00040 class StRichSpectra : public StObject {
00041 public:
00042 StRichSpectra(int v=-999);
00043 ~StRichSpectra();
00044 StRichSpectra(float,float,float,float,float,float,
00045 float,float,int,float,int,int,
00046 float,float,float,float,int,float,
00047 float, float, float,
00048 int, int, int,
00049 int=-999);
00050
00051
00052
00053
00054 void setExtrapolatedPosition(float, float);
00055 void setExtrapolatedResidual(float, float);
00056 void setCorrectedExtrapolatedResidual(float, float);
00057 void setCherenkovAngle(float);
00058 void setCherenkovSigma(float);
00059 void setCherenkovPhotons(int);
00060 void setPeakAngle(float);
00061 void setPeakPhotons(int);
00062 void setTotalPhotons(int);
00063 void setMassSquared(float);
00064 void setLineIntegralRatio(float);
00065 void setLineIntegral(float);
00066 void setAlpha(float);
00067 void setFlag(int);
00068 void setReserved(float);
00069
00070 void setMeanD(float pi=FLT_MAX, float k=FLT_MAX, float p=FLT_MAX);
00071 void setNumberOfD(int pi=-100, int k=-100, int p=-100);
00072 void setVersion(int);
00073
00074 float getExtrapolatedX() const;
00075 float getExtrapolatedY() const;
00076 float getExtrapolatedXResidual() const;
00077 float getExtrapolatedYResidual() const;
00078 float getCorrectedExtrapolatedXResidual() const;
00079 float getCorrectedExtrapolatedYResidual() const;
00080 float getCherenkovAngle() const;
00081 float getCherenkovSigma() const;
00082 int getCherenkovPhotons() const;
00083 float getPeakAngle() const;
00084 int getPeakPhotons() const;
00085 int getTotalPhotons() const;
00086 float getMassSquared() const;
00087 float getLineIntegralRatio() const;
00088 float getLineIntegral() const;
00089 float getAlpha() const;
00090 int getFlag() const;
00091 float getMeanDpi() const;
00092 float getMeanDk() const;
00093 float getMeanDp() const;
00094 int getMeanDnpi() const;
00095 int getMeanDnk() const;
00096 int getMeanDnp() const;
00097
00098 float getReserved() const;
00099 int getVersion() const;
00100
00101 protected:
00102 Float_t mExtrapolatedX;
00103 Float_t mExtrapolatedY;
00104 Float_t mDx;
00105 Float_t mDy;
00106 Float_t mCdx;
00107 Float_t mCdy;
00108 Float_t mCherenkovAngle;
00109 Float_t mCherenkovAngleSigma;
00110 Int_t mNumberOfPhotons;
00111 Float_t mPeakAngle;
00112 Int_t mPeakPhotons;
00113 Int_t mTotalPhotons;
00114 Float_t mMassSquared;
00115 Float_t mLineIntegralRatio;
00116 Float_t mLineIntegral;
00117 Float_t mAlpha;
00118 Int_t mFlag;
00119 Float_t mReserved;
00120
00121 Float_t mDpi, mDk, mDp;
00122 Int_t mNDpi, mNDk, mNDp;
00123
00124 Int_t mVersion;
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135 virtual const char *GetCVS() const {
00136 static const char cvs[]=
00137 "Tag $Name: $ $Id $ built "__DATE__" "__TIME__ ;
00138 return cvs;
00139 }
00140 private:
00141 ClassDef(StRichSpectra, 1)
00142 };
00143
00144 inline void StRichSpectra::setExtrapolatedPosition(float x, float y) {mExtrapolatedX = x;mExtrapolatedY=y;}
00145 inline void StRichSpectra::setExtrapolatedResidual(float dx, float dy) {mDx=dx;mDy=dy;}
00146 inline void StRichSpectra::setCorrectedExtrapolatedResidual(float dx, float dy) {mCdx=dx;mCdy=dy;}
00147 inline void StRichSpectra::setCherenkovAngle(float theta) {mCherenkovAngle=theta;}
00148 inline void StRichSpectra::setCherenkovSigma(float s) {mCherenkovAngleSigma=s;}
00149 inline void StRichSpectra::setCherenkovPhotons(int n) {mNumberOfPhotons=n;}
00150 inline void StRichSpectra::setPeakAngle(float pa) {mPeakAngle=pa;}
00151 inline void StRichSpectra::setPeakPhotons(int np) {mPeakPhotons=np;}
00152 inline void StRichSpectra::setTotalPhotons(int tp) {mTotalPhotons=tp;}
00153 inline void StRichSpectra::setMassSquared(float m2) {mMassSquared=m2;}
00154 inline void StRichSpectra::setLineIntegralRatio(float lir) {mLineIntegralRatio=lir;}
00155 inline void StRichSpectra::setLineIntegral(float li) {mLineIntegral = li;}
00156 inline void StRichSpectra::setAlpha(float alpha) {mAlpha=alpha;}
00157 inline void StRichSpectra::setFlag(int f) {mFlag = f;}
00158 inline void StRichSpectra::setMeanD(float pi, float k, float p) {mDpi=pi; mDk=k, mDp=p;}
00159 inline void StRichSpectra::setNumberOfD(int pi, int k, int p) {mNDpi=pi; mNDk=k; mNDp=p;}
00160 inline void StRichSpectra::setReserved(float r) {mReserved = r;}
00161 inline void StRichSpectra::setVersion(int v) {mVersion = v;}
00162
00163 inline float StRichSpectra::getExtrapolatedX() const {return mExtrapolatedX;}
00164 inline float StRichSpectra::getExtrapolatedY() const {return mExtrapolatedY;}
00165 inline float StRichSpectra::getExtrapolatedXResidual() const {return mDx;}
00166 inline float StRichSpectra::getExtrapolatedYResidual() const {return mDy;}
00167 inline float StRichSpectra::getCorrectedExtrapolatedXResidual() const {return mCdx;}
00168 inline float StRichSpectra::getCorrectedExtrapolatedYResidual() const {return mCdy;}
00169 inline float StRichSpectra::getCherenkovAngle() const {return mCherenkovAngle;}
00170 inline float StRichSpectra::getCherenkovSigma() const {return mCherenkovAngleSigma;}
00171 inline int StRichSpectra::getCherenkovPhotons() const {return mNumberOfPhotons;}
00172 inline float StRichSpectra::getPeakAngle() const {return mPeakAngle;}
00173 inline int StRichSpectra::getPeakPhotons() const {return mPeakPhotons;}
00174 inline int StRichSpectra::getTotalPhotons() const {return mTotalPhotons;}
00175 inline float StRichSpectra::getMassSquared() const {return mMassSquared;}
00176 inline float StRichSpectra::getLineIntegralRatio() const {return mLineIntegralRatio;}
00177 inline float StRichSpectra::getLineIntegral() const {return mLineIntegral;}
00178 inline float StRichSpectra::getAlpha() const {return mAlpha;}
00179 inline int StRichSpectra::getFlag() const {return mFlag;}
00180 inline float StRichSpectra::getMeanDpi() const { return mDpi; }
00181 inline float StRichSpectra::getMeanDk() const { return mDk; }
00182 inline float StRichSpectra::getMeanDp() const { return mDp; }
00183 inline int StRichSpectra::getMeanDnpi() const { return mNDpi; }
00184 inline int StRichSpectra::getMeanDnk() const { return mNDk; }
00185 inline int StRichSpectra::getMeanDnp() const { return mNDp; }
00186
00187 inline float StRichSpectra::getReserved() const {return mReserved;}
00188 inline int StRichSpectra::getVersion() const {return mVersion;}
00189
00190
00191 ostream& operator<<(ostream&, const StRichSpectra&);
00192 #endif