00001 #ifndef __PXXSourceID4B__H__ 00002 #define __PXXSourceID4B__H__ 00003 00013 00014 #include "payloads-unpacker/base/PXXObject.h" 00015 #include "payloads-unpacker/payloads/PXXISourceID.h" 00016 00017 class PXXSourceID4B : public PXXObject, public PXXISourceID 00018 { 00019 public: 00020 00021 SET_LOGGER("PXXSourceID4B"); 00022 00023 /* 00024 * Constructor. Set default source ID as -1 00025 */ 00026 PXXSourceID4B(Int32b_t sourceid = -1); 00027 //------------------------------------------------------------------------------ 00028 00029 /* 00030 * Destructor 00031 */ 00032 virtual ~PXXSourceID4B() {} 00033 //------------------------------------------------------------------------------ 00034 00038 virtual Int32b_t GetSourceID() const; 00039 //------------------------------------------------------------------------------ 00040 00044 virtual void SetSourceID(Int32b_t id) { fISourceID_ = id; } 00045 //------------------------------------------------------------------------------ 00046 00047 private: 00048 00049 Int32b_t fISourceID_; // int source id 00050 00051 ClassDef(PXXSourceID4B, 0) // interface of SourceID 00052 }; 00053 00054 #ifdef __USEROOT__ // compile with ROOT 00055 typedef PXXSourceID4B* PXXSourceID4BPtr; 00056 #else // compile with IceTray 00057 typedef shared_ptr<PXXSourceID4B> PXXSourceID4BPtr; 00058 #endif 00059 00060 #endif // __PXXSourceID4B__H__