#include <iostream>
Go to the source code of this file.
Classes | |
class | CastorCTDCHeader |
Functions | |
std::ostream & | operator<< (std::ostream &, const CastorCTDCHeader &head) |
std::ostream& operator<< | ( | std::ostream & | , |
const CastorCTDCHeader & | head | ||
) |
Definition at line 97 of file CastorCTDCHeader.cc.
References CastorCTDCHeader::getSpigotDataLength(), CastorCTDCHeader::getSpigotEnabled(), CastorCTDCHeader::getSpigotErrorBits(), CastorCTDCHeader::getSpigotPresent(), CastorCTDCHeader::getSpigotValid(), i, asciidump::s, and CastorCTDCHeader::SPIGOT_COUNT.
{ for (int i=0; i<CastorCTDCHeader::SPIGOT_COUNT+1; i++) { s << "Spigot " << i << " : " << head.getSpigotDataLength(i) << " bytes, "; if (head.getSpigotEnabled(i)) s << "E"; if (head.getSpigotPresent(i)) s << "P"; if (head.getSpigotValid(i)) s << "V"; s << ". Error codes: " << std::hex << int(head.getSpigotErrorBits(i)) << std::dec; s << std::endl; } return s; }