00001
00002
00003
00004
00005
00006
00008
00009 #ifndef CELLHIT_H
00010 #define CELLHIT_H
00011
00012 #include "TObject.h"
00013 #include "Geometry/PlaneGeo.h"
00014 #include "RawData/RawDigit.h"
00015
00016 namespace recobase {
00017
00018 class CellHit : public rawdata::RawDigit
00019 {
00020
00021 public:
00022 CellHit();
00023 ~CellHit();
00024
00025 virtual void Print(const Option_t*) const;
00026
00027
00028 unsigned short Status() const { return fStatus; }
00029 unsigned short Plane () const { return fPlane; }
00030 unsigned short Cell () const { return fCell; }
00031 geo::View_t View () const { return fView; }
00032 float PE () const { return fPE; }
00033 float PECorr() const { return fPECorr; }
00034 float TNS () const { return fTNS; }
00035
00036
00037 void SetStatus (unsigned short status ) { fStatus = status; }
00038 void SetStatusBits (unsigned short bits ) { fStatus |= bits; }
00039 void SetCell (unsigned short cell ) { fCell = cell; }
00040 void SetPlane (unsigned short plane ) { fPlane = plane; }
00041 void SetView (geo::View_t view ) { fView = view; }
00042 void SetPE (float pe ) { fPE = pe; }
00043 void SetPECorr (float pecorr ) { fPECorr = pecorr; }
00044 void SetTNS (float tns ) { fTNS = tns; }
00045
00046
00047 unsigned short fStatus;
00048 unsigned short fPlane;
00049 unsigned short fCell;
00050 geo::View_t fView;
00051 float fPE;
00052 float fPECorr;
00053 float fTNS;
00054
00055 ClassDef(CellHit, 4)
00056 };
00057 }
00058
00059 #endif // CELLHIT_H
00060