00001 // $Header: /nfs/slac/g/glast/ground/cvs/GlastEvent/GlastEvent/Utilities/Classification.h,v 1.2 2001/04/18 19:07:26 igable Exp $ 00002 #ifndef LHCBEVENT_CLASSIFICATION_H 00003 #define LHCBEVENT_CLASSIFICATION_H 1 00004 00005 00006 // Include files 00007 #include <iostream> 00008 #include "GaudiKernel/StreamBuffer.h" 00009 #include "GlastEvent/TopLevel/Definitions.h" 00010 00011 00012 //------------------------------------------------------------------------------ 00013 // 00014 // ClassName: Classification 00015 // 00016 // Description: Placeholder for (sub)event classification 00017 // 00018 // Author: Pavel Binko 00019 // Changes: P.Binko 19/10/1999 : Formating of ASCII output 00020 // 00021 //------------------------------------------------------------------------------ 00022 00023 00024 class Classification { 00025 00026 public: 00027 00029 Classification (long eventType) 00030 : m_eventType(eventType) { } 00031 Classification() 00032 : m_eventType(0) { } 00034 ~Classification() { } 00035 00037 long eventType() const { 00038 return m_eventType; 00039 } 00041 void setEventType( long value ) { 00042 m_eventType = value; 00043 } 00044 00046 friend StreamBuffer& operator<< ( StreamBuffer& s, 00047 const Classification& obj ) { 00048 return s << obj.m_eventType; 00049 } 00051 friend StreamBuffer& operator>> ( StreamBuffer& s, 00052 Classification& obj ) { 00053 return s >> obj.m_eventType; 00054 } 00055 00057 friend std::ostream& operator<< ( std::ostream& s, 00058 const Classification& obj ) { 00059 return obj.fillStream(s); 00060 } 00062 std::ostream& fillStream( std::ostream& s ) const { 00063 return s << "class Classification : " 00064 << GlastEventField( GlastEvent::field4 ) 00065 << m_eventType; 00066 } 00067 00068 private: 00069 00071 long m_eventType; 00072 00073 }; 00074 00075 00076 #endif // LHCBEVENT_CLASSIFICATION_H
1.2.3 written by Dimitri van Heesch,
© 1997-2000