00001 // ===================================================================== 00002 // $Id: TReadoutSection.cc,v 1.4 2004/03/07 10:30:33 goiwai Exp $ 00003 // $Name: CLDAQ-1-14-03 $ 00004 // $Log: TReadoutSection.cc,v $ 00005 // Revision 1.4 2004/03/07 10:30:33 goiwai 00006 // ROOTに組みこむためのおまじないマクロを埋めこみました。 00007 // 全てにおいて完全に動作するわけではありません。 00008 // 00009 // Revision 1.3 2003/10/06 16:39:00 goiwai 00010 // *** empty log message *** 00011 // 00012 // Revision 1.2 2003/07/30 16:20:11 goiwai 00013 // ファイルにコミットログをつけることにしました. 00014 // 00015 // ===================================================================== 00016 #include "TReadoutSection.hh" 00017 #include "TDataSection.hh" 00018 00019 TReadoutSection::TReadoutSection( const Tstring& id ) 00020 : TReadoutIdentification( id ), TReadoutSegmentList() 00021 {;} 00022 00023 TReadoutSection::TReadoutSection( const TReadoutSection& right ) 00024 : TReadoutIdentification( right ), TReadoutSegmentList( right ) 00025 {;} 00026 00027 TReadoutSection::~TReadoutSection() 00028 {;} 00029 00030 TDataSection TReadoutSection::Read() 00031 { 00032 TDataSection section( theID ); 00033 00034 for ( Tsize_t i = 0; i < size(); i ++ ) { 00035 section.push_back( ( (*this)[ i ] ).Read() ); 00036 } 00037 00038 return section; 00039 } 00040 00041 const TReadoutSection& TReadoutSection::operator=( const TReadoutSection& right ) 00042 { 00043 *( (TReadoutIdentification*)this ) = *( (TReadoutIdentification*)(&right) ); 00044 *( (TReadoutSegmentList*)this ) = *( (TReadoutSegmentList*)(&right) ); 00045 return *this; 00046 } 00047 00048 Tbool TReadoutSection::operator==( const TReadoutSection& right ) const 00049 { 00050 Tbool ret = Ttrue; 00051 ret &= ( *( (TReadoutIdentification*)this ) == *( (TReadoutIdentification*)(&right) ) ); 00052 ret &= ( *( (TReadoutSegmentList*)this ) == *( (TReadoutSegmentList*)(&right) ) ); 00053 return ret; 00054 } 00055 00056 Tbool TReadoutSection::operator!=( const TReadoutSection& right ) const 00057 { 00058 Tbool ret = Tfalse; 00059 ret |= ( *( (TReadoutIdentification*)this ) != *( (TReadoutIdentification*)(&right) ) ); 00060 ret |= ( *( (TReadoutSegmentList*)this ) != *( (TReadoutSegmentList*)(&right) ) ); 00061 return ret; 00062 } 00063 00064 #ifdef __CLDAQ_ROOT_DLL 00065 ClassImp(TReadoutSection) 00066 #endif