00001
00002 #ifndef LHCBEVENT_SUMMARYPID_H
00003 #define LHCBEVENT_SUMMARYPID_H 1
00004
00005
00006
00007 #include <iostream>
00008 #include "GaudiKernel/StreamBuffer.h"
00009 #include "GlastEvent/TopLevel/Definitions.h"
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 class SummaryPID {
00029
00030 public:
00031
00032
00033 SummaryPID( long pValue, long antipValue )
00034 : m_pIDCode(pValue),
00035 m_antiPIDCode(antipValue) { }
00036 SummaryPID()
00037 : m_pIDCode(0),
00038 m_antiPIDCode(0) { }
00039
00040 ~SummaryPID() { }
00041
00042
00043
00044 long pIDCode() const {
00045 return m_pIDCode;
00046 }
00047
00049 void setPIDCode( long value ) {
00050 m_pIDCode = value;
00051 }
00052
00053
00054
00055 long antiPIDCode() const {
00056 return m_antiPIDCode;
00057 }
00058
00060 void setAntiPIDCode( long value ) {
00061 m_antiPIDCode = value;
00062 }
00063
00065 friend StreamBuffer& operator<< ( StreamBuffer& s, const SummaryPID& obj ) {
00066 return s
00067 << obj.m_pIDCode
00068 << obj.m_antiPIDCode;
00069 }
00070
00072 friend StreamBuffer& operator>> ( StreamBuffer& s, SummaryPID& obj ) {
00073 return s
00074 >> obj.m_pIDCode
00075 >> obj.m_antiPIDCode;
00076 }
00077
00079 friend std::ostream& operator<< ( std::ostream& s, const SummaryPID& obj ) {
00080 return obj.fillStream(s);
00081 }
00083 std::ostream& fillStream( std::ostream& s ) const {
00084 return s
00085 << "class SummaryPID : ( "
00086 << GlastEventField( GlastEvent::field5 )
00087 << m_pIDCode << ", "
00088 << GlastEventField( GlastEvent::field5 )
00089 << m_antiPIDCode << " )";
00090 }
00091
00092 private:
00093
00094 long m_pIDCode;
00095 long m_antiPIDCode;
00096
00097 };
00098
00099
00100 #endif // LHCBEVENT_PARTICLEID_H