StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StRichSpectra.cxx
1 /***************************************************************************
2  *
3  * $Id: StRichSpectra.cxx,v 2.3 2002/02/22 03:02:12 ullrich Exp $
4  *
5  * Author: Brian Lasiuk, Dec 14, 2002
6  ***************************************************************************
7  *
8  * Description: Output from StRichSpectraMaker for uDST storage
9  *
10  ***************************************************************************
11  * $Log: StRichSpectra.cxx,v $
12  * Revision 2.3 2002/02/22 03:02:12 ullrich
13  * Fixed bug in constructor.
14  *
15  * Revision 2.2 2002/02/19 16:54:33 ullrich
16  * Minor changes - code not altered.
17  *
18  * Revision 2.1 2002/02/19 04:24:02 lasiuk
19  * addition of StRichSpectra information for uDST purposes
20  *
21  **************************************************************************/
22 #include "StRichSpectra.h"
23 
24 static const char rcsid[] = "$Id: StRichSpectra.cxx,v 2.3 2002/02/22 03:02:12 ullrich Exp $";
25 
26 ClassImp(StRichSpectra)
27 
28 StRichSpectra::StRichSpectra(int v) : mVersion(v) {/*nopt*/}
29 
30 StRichSpectra::~StRichSpectra() {/*nopt*/}
31 
32 StRichSpectra::StRichSpectra(float x, float y, float dx, float dy,
33  float cdx, float cdy, float theta, float sigma,
34  int nopho, float pan, int ppho, int totphotons,
35  float mas, float lir, float li, float alpha,
36  int flag, float reserved,
37  float dpi, float dk, float dp,
38  int ndpi, int ndk, int ndp,
39  int version)
40  : mExtrapolatedX(x) ,mExtrapolatedY(y), mDx(dx), mDy(dy), mCdx(cdx), mCdy(cdy),
41  mCherenkovAngle(theta), mCherenkovAngleSigma(sigma), mNumberOfPhotons(nopho),
42  mPeakAngle(pan), mPeakPhotons(ppho), mTotalPhotons(totphotons),
43  mMassSquared(mas), mLineIntegralRatio(lir), mLineIntegral(li), mAlpha(alpha),
44  mFlag(flag), mReserved(reserved),
45  mDpi(dpi), mDk(dk), mDp(dp),
46  mNDpi(ndpi), mNDk(ndk), mNDp(ndp),
47  mVersion(version)
48 {/*nopt*/}
49 
50 ostream&
51 operator<<(ostream& os, const StRichSpectra& t)
52 {
53  return (os << "StRichSpectra::>"
54  << "\n\tExtrapolatedX: " << t.getExtrapolatedX() << ", " << t.getExtrapolatedY()
55  << "\n\tResidualX: " << t.getExtrapolatedXResidual() << ", " << t.getExtrapolatedYResidual()
56  << "\n\tCorr Residual: " << t.getCorrectedExtrapolatedXResidual() << ", " << t.getCorrectedExtrapolatedYResidual()
57  << "\n\tCherenkovAngle: " << t.getCherenkovAngle() << "+/-" << t.getCherenkovSigma() << " (" << t.getCherenkovPhotons() << ")"
58  << "\n\tPeakAngle " << t.getPeakAngle() << " (" << t.getTotalPhotons() << ")"
59  << "\n\tMass2 " << t.getMassSquared()
60  << "\n\tLineIntegral " << t.getLineIntegralRatio() << "-->" << t.getLineIntegral()
61  << "\n\tAlpha " << t.getAlpha()
62  << "\n\tFlag " << t.getFlag()
63  << "\n\treserved " << t.getReserved()
64  << "\n\tversion " << t.getVersion());
65 }