00001 #ifndef IMPL_TPCHITIMPL_H
00002 #define IMPL_TPCHITIMPL_H 1
00003
00004 #include "EVENT/TPCHit.h"
00005 #include "AccessChecked.h"
00006
00007 namespace IMPL {
00008
00015 class TPCHitImpl : public EVENT::TPCHit , public AccessChecked {
00016
00017 public:
00018
00021 TPCHitImpl() ;
00022
00024 TPCHitImpl(const TPCHitImpl&) = default ;
00025
00027 TPCHitImpl& operator=(const TPCHitImpl&) = default ;
00028
00030 virtual ~TPCHitImpl() ;
00031
00032 virtual int id() const { return simpleUID() ; }
00033
00036 virtual int getCellID() const;
00037
00040 virtual float getTime() const;
00041
00044 virtual float getCharge() const;
00045
00048 virtual int getQuality() const;
00049
00054 virtual int getNRawDataWords()const;
00055
00060 virtual int getRawDataWord(int i) const;
00061
00064 virtual void setCellID(int cellID) ;
00065
00068 virtual void setTime(float time);
00069
00072 virtual void setCharge(float charge);
00073
00076 virtual void setQuality(int quality);
00077
00080 virtual void setRawData(const int* raw, int size ) ;
00081
00082 protected:
00085 virtual void initRawArray(int size) ;
00086
00087
00088 int _cellID ;
00089 float _time ;
00090 float _charge ;
00091 int _quality ;
00092 int _rawSize ;
00093 int* _rawArray ;
00094
00095 };
00096 }
00097 #endif