/search.css" rel="stylesheet" type="text/css"/> /search.js">
00001 /* 00002 * DaqBlock.cc 00003 * DaqBlock 00004 * 00005 * Created by Simon Patton on 3/2/11. 00006 * Copyright 2011 DayaBay Collaboration. All rights reserved. 00007 * 00008 */ 00009 00010 #include "Event/DaqBlock.h" 00011 00012 using DayaBay::DaqBlock; 00013 00014 unsigned int DaqBlock::size() const { 00015 if (0 == m_bytes) { 00016 return 0; 00017 } else { 00018 return m_bytes->size(); 00019 } 00020 } 00021 00022 std::ostream& DaqBlock::fillStream(std::ostream& s) const { 00023 s << std::endl; 00024 s << "{ " << "Length : "<< size() << std::endl; 00025 s << std::endl; 00026 s << " }"; 00027 return s; 00028 }