StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTofMCInfo.h
1 
5 /***************************************************************************
6  *
7  * $Id: StTofMCInfo.h,v 2.3 2003/05/21 18:23:18 ullrich Exp $
8  *
9  * Author: Wei-Ming Zhang, April 2001
10  ***************************************************************************
11  *
12  * Description:
13  *
14  ***************************************************************************
15  *
16  * $Log: StTofMCInfo.h,v $
17  * Revision 2.3 2003/05/21 18:23:18 ullrich
18  * Major Revision of ToF classes (F. Geurts)
19  *
20  * Revision 2.2 2002/02/22 22:56:51 jeromel
21  * Doxygen basic documentation in all header files. None of this is required
22  * for QM production.
23  *
24  * Revision 2.1 2001/04/27 21:40:34 ullrich
25  * Initial Revision.
26  *
27  **************************************************************************/
28 #ifndef StTofMCInfo_hh
29 #define StTofMCInfo_hh
30 
31 #include "StObject.h"
32 
33 class StTofMCInfo : public StObject {
34 public:
35  StTofMCInfo();
36  StTofMCInfo(int, int, int, float, int, float,
37  float, float, float, float, float, float,
38  float);
39 
40  int operator==(const StTofMCInfo& MCInfo) const;
41  int operator!=(const StTofMCInfo& MCInfo) const;
42 
43 public:
44  Int_t mTrkId;
45  Int_t mGId;
46  Int_t mNHits;
47  Int_t mNPhe;
48  Float_t mDe;
49  Float_t mPTot;
50  Float_t mDs;
51  Float_t mSLength;
52  Float_t mPmLength;
53  Float_t mTof;
54  Float_t mTime;
55  Float_t mMTime;
56  Float_t mMTimeL;
57 
58  ClassDef(StTofMCInfo,2)
59 };
60 
61 inline int StTofMCInfo::operator==(const StTofMCInfo& MCInfo) const
62 {
63  return ((mTrkId == MCInfo.mTrkId) && (mGId == MCInfo.mGId) &&
64  (mNHits == MCInfo.mNHits) && (mNPhe == MCInfo.mNPhe));
65 }
66 
67 inline int StTofMCInfo::operator!=(const StTofMCInfo& MCInfo) const
68 {
69  return !(*this == MCInfo); // use operator==()
70 }
71 
72 ostream& operator<<(ostream& os, const StTofMCInfo& MCInfo);
73 
74 #endif