StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTofMCInfo.cxx
1 /***************************************************************************
2  *
3  * $Id: StTofMCInfo.cxx,v 2.3 2003/09/02 17:58:06 perev Exp $
4  *
5  * Author: Wei-Ming Zhang, April 2001
6  ***************************************************************************
7  *
8  * Description:
9  *
10  ***************************************************************************
11  *
12  * $Log: StTofMCInfo.cxx,v $
13  * Revision 2.3 2003/09/02 17:58:06 perev
14  * gcc 3.2 updates + WarnOff
15  *
16  * Revision 2.2 2003/05/21 18:23:18 ullrich
17  * Major Revision of ToF classes (F. Geurts)
18  *
19  * Revision 2.1 2001/04/27 21:40:34 ullrich
20  * Initial Revision.
21  *
22  **************************************************************************/
23 #include <Stiostream.h>
24 #include "StTofMCInfo.h"
25 
26 static const char rcsid[] = "$Id: StTofMCInfo.cxx,v 2.3 2003/09/02 17:58:06 perev Exp $";
27 
28 ClassImp(StTofMCInfo)
29 
31  : mTrkId(0), mGId(0), mNHits(0), mNPhe(0), mDe(0), mPTot(0),
32  mDs(0), mSLength(0), mPmLength(0), mTof(0), mTime(0), mMTime(0),
33  mMTimeL(0) {/* noop */ }
34 
35 StTofMCInfo::StTofMCInfo(int trkId, int gId, int nHits,
36  float de, int nPhe, float pTot,
37  float ds, float sLength, float pmLenght,
38  float tof, float time, float mTime,
39  float mTimeL)
40  : mTrkId(trkId), mGId(gId), mNHits(nHits), mNPhe(nPhe),
41  mDe(de), mPTot(pTot), mDs(ds), mSLength(sLength),
42  mPmLength(pmLenght), mTof(tof), mTime(time), mMTime(mTime),
43  mMTimeL(mTimeL) {/* noop */ }
44 
45 ostream& operator<<(ostream& os, const StTofMCInfo& MCInfo)
46 {
47  return (os << " trkId= " << MCInfo.mTrkId << ", gId= " << MCInfo.mGId
48  << ", nHits= " << MCInfo.mNHits << ", nPhe= " << MCInfo.mNPhe
49  << ", tof: " << MCInfo.mTof);
50 }
Definition: tof.h:15