StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StRichMCPixel.cxx
1 /***************************************************************************
2  *
3  * $Id: StRichMCPixel.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: StRichMCPixel.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:41 ullrich
17  * Initial Revision
18  *
19  **************************************************************************/
20 #include "StRichMCPixel.h"
21 
22 static const char rcsid[] = "$Id: StRichMCPixel.cxx,v 2.2 2001/04/05 04:00:53 ullrich Exp $";
23 
24 ClassImp(StRichMCPixel)
25 
27  : StRichPixel(0)
28 { /* noop */ }
29 
30 StRichMCPixel::StRichMCPixel(unsigned int rawData)
31  : StRichPixel(rawData)
32 { /* noop */ }
33 
34 StRichMCPixel::StRichMCPixel(unsigned int packedData, const StSPtrVecRichMCInfo& mcinfo)
35  : StRichPixel(packedData), mInfo(mcinfo)
36 { /* noop */ }
37 
38 StRichMCPixel::~StRichMCPixel() { /* noop */ }
39 
40 int
41 StRichMCPixel::operator==(const StRichMCPixel& p) const
42 {
43  return (p.mPackedData == mPackedData);
44 }
45 
46 int
47 StRichMCPixel::operator!=(const StRichMCPixel& p) const
48 {
49  return !(*this == p); // use operator==()
50 }
51