Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

RecEvent.h

Go to the documentation of this file.
00001 // $Header: /nfs/slac/g/glast/ground/cvs/GlastEvent/GlastEvent/TopLevel/RecEvent.h,v 1.2 2001/04/18 19:07:26 igable Exp $
00002 #ifndef LHCBEVENT_RECEVENT_H
00003 #define LHCBEVENT_RECEVENT_H 1
00004 
00005 
00006 // Include files
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 // Externals 
00015 extern const CLID& CLID_RecEvent;
00016 
00017 
00018 //------------------------------------------------------------------------------
00019 //
00020 // ClassName:   RecEvent
00021 //  
00022 // Description: Essential information of the reconstructed event
00023 //              It can be identified by "/Event/Rec"
00024 //
00025 // Author:      Pavel Binko
00026 // Changes:     P.Binko 19/10/1999 : Formating of ASCII output
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 // Inline code must be outside the class definition
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

Generated at Wed Nov 21 12:22:49 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000