00001
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040 #ifndef StTpcPixel_hh
00041 #define StTpcPixel_hh
00042
00043 #include "StObject.h"
00044 #include "Stiostream.h"
00045 #include "StEnumerations.h"
00046
00047 class StTpcPixel : public StObject {
00048 public:
00049 StTpcPixel(unsigned char Detector = 0, unsigned char Sector = 0, unsigned char Row = 0,
00050 unsigned char Pad = 0, unsigned short TimeBin = 0,unsigned short Adc=0,
00051 unsigned short IdTruth=0, short Id=0) :
00052 mDetector(Detector), mSector(Sector), mRow(Row),
00053 mPad(Pad), mTimeBin(TimeBin), mAdc(Adc), mIdTruth(IdTruth), mId(Id) {}
00054 virtual ~StTpcPixel() {}
00055 unsigned char detector() const;
00056 unsigned char sector() const;
00057 unsigned char padrow() const;
00058 unsigned char pad() const;
00059 unsigned short timebin() const;
00060 unsigned short adc() const;
00061 unsigned short idTruth() const;
00062 short id() const;
00063 virtual void Print(Option_t *option="") const;
00064
00065 protected:
00066
00067
00068
00069 UChar_t mDetector;
00070 UChar_t mSector;
00071 UChar_t mRow;
00072 UChar_t mPad;
00073 UShort_t mTimeBin;
00074 UShort_t mAdc;
00075 UShort_t mIdTruth;
00076 Short_t mId;
00077 ClassDef(StTpcPixel,1)
00078 };
00079
00080 inline UChar_t StTpcPixel::detector() const {return mDetector;}
00081 inline UChar_t StTpcPixel::sector() const {return mSector;}
00082 inline UChar_t StTpcPixel::padrow() const {return mRow;}
00083 inline UChar_t StTpcPixel::pad() const {return mPad;}
00084 inline UShort_t StTpcPixel::timebin() const {return mTimeBin;}
00085 inline UShort_t StTpcPixel::adc() const {return mAdc;}
00086 inline UShort_t StTpcPixel::idTruth() const {return mIdTruth;}
00087 inline Short_t StTpcPixel::id() const {return mId;}
00088
00089 ostream& operator<< (ostream&, const StTpcPixel&);
00090 #endif