00001 /*************************************************************************** 00002 * 00003 * $Id: StRichPixel.cxx,v 2.5 2001/04/05 04:00:53 ullrich Exp $ 00004 * 00005 * Author: Thomas Ullrich, July 1999 00006 *************************************************************************** 00007 * 00008 * Description: 00009 * 00010 *************************************************************************** 00011 * 00012 * $Log: StRichPixel.cxx,v $ 00013 * Revision 2.5 2001/04/05 04:00:53 ullrich 00014 * Replaced all (U)Long_t by (U)Int_t and all redundant ROOT typedefs. 00015 * 00016 * Revision 2.4 2000/01/13 21:06:19 lasiuk 00017 * add rich pixel info/containers 00018 * 00019 * Revision 2.3 2000/01/10 17:12:21 lasiuk 00020 * remove dst_rch_pixel dependency; 00021 * change stored data to a single long; 00022 * modify unpacking routines; 00023 * 00024 * Revision 2.2 1999/10/28 22:26:22 ullrich 00025 * Adapted new StArray version. First version to compile on Linux and Sun. 00026 * 00027 * Revision 2.1 1999/10/13 19:45:05 ullrich 00028 * Initial Revision 00029 * 00030 **************************************************************************/ 00031 #include "StRichPixel.h" 00032 00033 static const char rcsid[] = "$Id: StRichPixel.cxx,v 2.5 2001/04/05 04:00:53 ullrich Exp $"; 00034 00035 ClassImp(StRichPixel) 00036 00037 StRichPixel::StRichPixel() 00038 : mPackedData(0) 00039 { /* nopt */ } 00040 00041 StRichPixel::StRichPixel(unsigned int rawData) 00042 : mPackedData(rawData) 00043 { /* noop */ } 00044 00045 StRichPixel::~StRichPixel() { /* noop */ } 00046 00047 int 00048 StRichPixel::operator==(const StRichPixel& p) const 00049 { 00050 return (p.mPackedData == mPackedData); 00051 } 00052 00053 int 00054 StRichPixel::operator!=(const StRichPixel& p) const 00055 { 00056 return !(*this == p); // use operator==() 00057 } 00058
1.5.9