00001 #ifndef __PXXDomHitEngineeringFormatPayload__H__ 00002 #define __PXXDomHitEngineeringFormatPayload__H__ 00003 00022 00023 #include "payloads-unpacker/payloads/PXXVPayload.h" 00024 #include "payloads-unpacker/payloads/PXXDomHitEngineeringFormatRecord.h" 00025 #include "payloads-unpacker/payloads/PXXDOMID8B.h" 00026 #include "payloads-unpacker/payloads/PXXSourceID4B.h" 00027 00028 class PXXDomHitEngineeringFormatPayload : public PXXVPayload 00029 { 00030 00031 public: 00032 00033 SET_LOGGER("PXXDomHitEngineeringFormatPayload"); 00034 00038 PXXDomHitEngineeringFormatPayload(); 00039 //------------------------------------------------------------------------------ 00040 00044 virtual ~PXXDomHitEngineeringFormatPayload(); 00045 //------------------------------------------------------------------------------ 00046 00050 virtual const PXXIDOMID &GetDOMID() const { return fTDOMID_; } 00051 //------------------------------------------------------------------------------ 00052 00056 virtual const PXXDomHitEngineeringFormatRecord& 00057 GetDomHitEngineeringFormatRecord() const 00058 { return fTDomHitEngFormatRecord_;} 00059 //------------------------------------------------------------------------------ 00060 00064 virtual void WriteProperties(); 00065 //------------------------------------------------------------------------------ 00066 00067 private: 00068 00078 virtual Int32b_t ReadData(); 00079 //------------------------------------------------------------------------------ 00080 00081 00082 private: 00083 00084 PXXDOMID8B fTDOMID_; // DOM ID 00085 PXXDomHitEngineeringFormatRecord fTDomHitEngFormatRecord_; // eng record 00086 00087 ClassDef(PXXDomHitEngineeringFormatPayload, 0) // interface to HitPayload 00088 00089 }; 00090 00091 #ifdef __USEROOT__ // compile with ROOT 00092 typedef PXXDomHitEngineeringFormatPayload* PXXDomHitEngineeringFormatPayloadPtr; 00093 #else // compile with IceTray 00094 typedef shared_ptr<PXXDomHitEngineeringFormatPayload> PXXDomHitEngineeringFormatPayloadPtr; 00095 #endif 00096 00097 #endif // __PXXDomHitEngineeringFormatPayload_H