00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #include "StRichSpectra.h"
00023
00024 static const char rcsid[] = "$Id: StRichSpectra.cxx,v 2.3 2002/02/22 03:02:12 ullrich Exp $";
00025
00026 ClassImp(StRichSpectra)
00027
00028 StRichSpectra::StRichSpectra(int v) : mVersion(v) {}
00029
00030 StRichSpectra::~StRichSpectra() {}
00031
00032 StRichSpectra::StRichSpectra(float x, float y, float dx, float dy,
00033 float cdx, float cdy, float theta, float sigma,
00034 int nopho, float pan, int ppho, int totphotons,
00035 float mas, float lir, float li, float alpha,
00036 int flag, float reserved,
00037 float dpi, float dk, float dp,
00038 int ndpi, int ndk, int ndp,
00039 int version)
00040 : mExtrapolatedX(x) ,mExtrapolatedY(y), mDx(dx), mDy(dy), mCdx(cdx), mCdy(cdy),
00041 mCherenkovAngle(theta), mCherenkovAngleSigma(sigma), mNumberOfPhotons(nopho),
00042 mPeakAngle(pan), mPeakPhotons(ppho), mTotalPhotons(totphotons),
00043 mMassSquared(mas), mLineIntegralRatio(lir), mLineIntegral(li), mAlpha(alpha),
00044 mFlag(flag), mReserved(reserved),
00045 mDpi(dpi), mDk(dk), mDp(dp),
00046 mNDpi(ndpi), mNDk(ndk), mNDp(ndp),
00047 mVersion(version)
00048 {}
00049
00050 ostream&
00051 operator<<(ostream& os, const StRichSpectra& t)
00052 {
00053 return (os << "StRichSpectra::>"
00054 << "\n\tExtrapolatedX: " << t.getExtrapolatedX() << ", " << t.getExtrapolatedY()
00055 << "\n\tResidualX: " << t.getExtrapolatedXResidual() << ", " << t.getExtrapolatedYResidual()
00056 << "\n\tCorr Residual: " << t.getCorrectedExtrapolatedXResidual() << ", " << t.getCorrectedExtrapolatedYResidual()
00057 << "\n\tCherenkovAngle: " << t.getCherenkovAngle() << "+/-" << t.getCherenkovSigma() << " (" << t.getCherenkovPhotons() << ")"
00058 << "\n\tPeakAngle " << t.getPeakAngle() << " (" << t.getTotalPhotons() << ")"
00059 << "\n\tMass2 " << t.getMassSquared()
00060 << "\n\tLineIntegral " << t.getLineIntegralRatio() << "-->" << t.getLineIntegral()
00061 << "\n\tAlpha " << t.getAlpha()
00062 << "\n\tFlag " << t.getFlag()
00063 << "\n\treserved " << t.getReserved()
00064 << "\n\tversion " << t.getVersion());
00065 }