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

IrfAcdHit.h

Go to the documentation of this file.
00001 
00002 #ifndef IrfAcdHit_H
00003 #define IrfAcdHit_H 1
00004 
00005 // Include files
00006 #include <iostream>
00007 #include "GaudiKernel/Kernel.h"
00008 #include "GaudiKernel/StreamBuffer.h"
00009 #include "GaudiKernel/ContainedObject.h"
00010 #include "GlastEvent/TopLevel/Definitions.h"
00011 
00012 // Externals 
00013 extern const CLID& CLID_IrfAcdHit;
00014 
00024 class IrfAcdHit : virtual public ContainedObject  {  
00025     
00026 public:
00028     IrfAcdHit() { }
00029     
00031     virtual ~IrfAcdHit() { }
00032     
00034     virtual const CLID& clID() const   { return IrfAcdHit::classID(); }
00035     static const CLID& classID()       { return CLID_IrfAcdHit; }
00036     
00038     unsigned int id () const           { return m_id; }
00039     void setId (long value)            { m_id = value; }
00040     
00042     float energy () const              { return m_energy; }
00044     void setEnergy (float value)        { m_energy = value; }
00045     
00047     virtual StreamBuffer& serialize( StreamBuffer& s );
00048     virtual StreamBuffer& serialize( StreamBuffer& s ) const;
00049     virtual std::ostream& fillStream( std::ostream& s ) const;
00050     
00051 private:
00052     unsigned int         m_id;
00053     float                m_energy;
00054 };
00055 
00056 inline StreamBuffer& IrfAcdHit::serialize( StreamBuffer& s ) const                 {
00057     ContainedObject::serialize(s);
00058     return s
00059         << m_id
00060         << m_energy
00061         ;
00062 }
00063 
00064 
00065 inline StreamBuffer& IrfAcdHit::serialize( StreamBuffer& s )                       {
00066     ContainedObject::serialize(s);
00067     return s
00068         >> m_id
00069         >> m_energy
00070         ;
00071 }
00072 
00073 
00074 inline std::ostream& IrfAcdHit::fillStream( std::ostream& s ) const                {
00075     return s
00076         << "class IrfAcdHit :"
00077         << "\n    Energy    = "
00078         //  << LHCbEventFloatFormat( LHCbEvent::width, LHCbEvent::precision )
00079         << m_energy
00080         << "\n    Cell ID   = " << m_id;
00081 }
00082 
00083 
00085 template <class TYPE> class ObjectVector;
00086 typedef ObjectVector<IrfAcdHit>     IrfAcdHitVector;
00087 template <class TYPE> class ObjectList;
00088 typedef ObjectList<IrfAcdHit>       IrfAcdHitList;
00089 
00090 
00091 #endif    // IrfAcdHit_H

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