StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StRichPixel.cxx
1 /***************************************************************************
2  *
3  * $Id: StRichPixel.cxx,v 2.5 2001/04/05 04:00:53 ullrich Exp $
4  *
5  * Author: Thomas Ullrich, July 1999
6  ***************************************************************************
7  *
8  * Description:
9  *
10  ***************************************************************************
11  *
12  * $Log: StRichPixel.cxx,v $
13  * Revision 2.5 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.4 2000/01/13 21:06:19 lasiuk
17  * add rich pixel info/containers
18  *
19  * Revision 2.3 2000/01/10 17:12:21 lasiuk
20  * remove dst_rch_pixel dependency;
21  * change stored data to a single long;
22  * modify unpacking routines;
23  *
24  * Revision 2.2 1999/10/28 22:26:22 ullrich
25  * Adapted new StArray version. First version to compile on Linux and Sun.
26  *
27  * Revision 2.1 1999/10/13 19:45:05 ullrich
28  * Initial Revision
29  *
30  **************************************************************************/
31 #include "StRichPixel.h"
32 
33 static const char rcsid[] = "$Id: StRichPixel.cxx,v 2.5 2001/04/05 04:00:53 ullrich Exp $";
34 
35 ClassImp(StRichPixel)
36 
38  : mPackedData(0)
39 { /* nopt */ }
40 
41 StRichPixel::StRichPixel(unsigned int rawData)
42  : mPackedData(rawData)
43 { /* noop */ }
44 
45 StRichPixel::~StRichPixel() { /* noop */ }
46 
47 int
48 StRichPixel::operator==(const StRichPixel& p) const
49 {
50  return (p.mPackedData == mPackedData);
51 }
52 
53 int
54 StRichPixel::operator!=(const StRichPixel& p) const
55 {
56  return !(*this == p); // use operator==()
57 }
58