00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #include <Stiostream.h>
00024 #include "StTofMCInfo.h"
00025
00026 static const char rcsid[] = "$Id: StTofMCInfo.cxx,v 2.3 2003/09/02 17:58:06 perev Exp $";
00027
00028 ClassImp(StTofMCInfo)
00029
00030 StTofMCInfo::StTofMCInfo()
00031 : mTrkId(0), mGId(0), mNHits(0), mNPhe(0), mDe(0), mPTot(0),
00032 mDs(0), mSLength(0), mPmLength(0), mTof(0), mTime(0), mMTime(0),
00033 mMTimeL(0) { }
00034
00035 StTofMCInfo::StTofMCInfo(int trkId, int gId, int nHits,
00036 float de, int nPhe, float pTot,
00037 float ds, float sLength, float pmLenght,
00038 float tof, float time, float mTime,
00039 float mTimeL)
00040 : mTrkId(trkId), mGId(gId), mNHits(nHits), mNPhe(nPhe),
00041 mDe(de), mPTot(pTot), mDs(ds), mSLength(sLength),
00042 mPmLength(pmLenght), mTof(tof), mTime(time), mMTime(mTime),
00043 mMTimeL(mTimeL) { }
00044
00045 ostream& operator<<(ostream& os, const StTofMCInfo& MCInfo)
00046 {
00047 return (os << " trkId= " << MCInfo.mTrkId << ", gId= " << MCInfo.mGId
00048 << ", nHits= " << MCInfo.mNHits << ", nPhe= " << MCInfo.mNPhe
00049 << ", tof: " << MCInfo.mTof);
00050 }