StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StRichMCInfo.cxx
1 /***************************************************************************
2  *
3  * $Id: StRichMCInfo.cxx,v 2.2 2001/04/05 04:00:53 ullrich Exp $
4  *
5  * Author: Brian Lasiuk, May 2000
6  ***************************************************************************
7  *
8  * Description:
9  *
10  ***************************************************************************
11  *
12  * $Log: StRichMCInfo.cxx,v $
13  * Revision 2.2 2001/04/05 04:00:53 ullrich
14  * Replaced all (U)Long_t by (U)Int_t and all redundant ROOT typedefs.
15  *
16  * Revision 2.1 2000/05/22 21:44:35 ullrich
17  * Initial Revision
18  *
19  **************************************************************************/
20 #include "StRichMCInfo.h"
21 
22 static const char rcsid[] = "$Id: StRichMCInfo.cxx,v 2.2 2001/04/05 04:00:53 ullrich Exp $";
23 
24 ClassImp(StRichMCInfo)
25 
27  : mId(-1), mGid(-1), mTrackp(-1), mCharge(-1), mProcess(-1)
28 { /* noop */ }
29 
30 StRichMCInfo::StRichMCInfo(int id, int gid, int trk,
31  float q, int pro)
32  : mId(id), mGid(gid), mTrackp(trk), mCharge(q), mProcess(pro)
33 { /* noop */ }
34 
35 StRichMCInfo::~StRichMCInfo() { /* noop */ }
36 
37 int
38 StRichMCInfo::operator==(const StRichMCInfo& p) const
39 {
40  return (p.id() == mId &&
41  p.gid() == mGid &&
42  p.trackp() == mTrackp &&
43  p.charge() == mCharge &&
44  p.process() == mProcess);
45 }
46 
47 int
48 StRichMCInfo::operator!=(const StRichMCInfo& p) const
49 {
50  return !(*this == p); // use operator==()
51 }