00001
00002 #ifndef LHCBEVENT_RECEVENT_H
00003 #define LHCBEVENT_RECEVENT_H 1
00004
00005
00006
00007 #include <iostream>
00008 #include "GaudiKernel/Kernel.h"
00009 #include "GaudiKernel/StreamBuffer.h"
00010 #include "GaudiKernel/DataObject.h"
00011 #include "GlastEvent/TopLevel/Definitions.h"
00012
00013
00014
00015 extern const CLID& CLID_RecEvent;
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 class RecEvent : public DataObject {
00032
00033 public:
00035 RecEvent( const char* name = "RecEvent" )
00036 : DataObject(name) { }
00038 virtual ~RecEvent() { }
00039
00041 virtual const CLID& clID() const { return RecEvent::classID(); }
00042 static const CLID& classID() { return CLID_RecEvent; }
00043
00045 virtual StreamBuffer& serialize( StreamBuffer& s ) const;
00047 virtual StreamBuffer& serialize( StreamBuffer& s );
00048
00050 friend std::ostream& operator<< ( std::ostream& s, const RecEvent& obj ) {
00051 return obj.fillStream(s);
00052 }
00054 virtual std::ostream& fillStream( std::ostream& s ) const;
00055
00056 private:
00058 double m_dummy;
00059
00060 };
00061
00062
00063
00064
00065
00066
00067
00069 inline StreamBuffer& RecEvent::serialize( StreamBuffer& s ) const {
00070 DataObject::serialize(s);
00071 return s << m_dummy;
00072 }
00073
00074
00076 inline StreamBuffer& RecEvent::serialize( StreamBuffer& s ) {
00077 DataObject::serialize(s);
00078 return s >> m_dummy;
00079 }
00080
00081
00083 inline std::ostream& RecEvent::fillStream( std::ostream& s ) const {
00084 return s
00085 << "class RecEvent :"
00086 << "\n Dummy = "
00087 << GlastEventField( GlastEvent::field12 )
00088 << m_dummy;
00089 }
00090
00091
00092 #endif // LHCBEVENT_RECEVENT_H