#include "DataFormats/SiStripCommon/interface/SiStripConstants.h"
#include <ostream>
#include <sstream>
#include <string>
Go to the source code of this file.
Classes | |
class | SiStripHistoTitle |
Utility class that holds histogram title. More... | |
Functions | |
std::ostream & | operator<< (std::ostream &, const SiStripHistoTitle &) |
std::ostream& operator<< | ( | std::ostream & | , |
const SiStripHistoTitle & | |||
) |
Debug info for class.
Definition at line 178 of file SiStripHistoTitle.cc.
References SiStripHistoTitle::channel(), SiStripHistoTitle::extraInfo(), SiStripHistoTitle::granularity(), SiStripEnumsAndStrings::granularity(), SiStripHistoTitle::histoType(), SiStripEnumsAndStrings::histoType(), SiStripEnumsAndStrings::keyType(), SiStripHistoTitle::keyType(), SiStripHistoTitle::keyValue(), SiStripHistoTitle::runType(), SiStripEnumsAndStrings::runType(), and SiStripHistoTitle::title().
{ std::stringstream ss; ss << "[SiStripHistoTitle::print]" << std::endl << " Title : " << title.title() << std::endl << " HistoType : " << SiStripEnumsAndStrings::histoType( title.histoType() ) << std::endl << " RunType : " << SiStripEnumsAndStrings::runType( title.runType() ) << std::endl << " KeyType : " << SiStripEnumsAndStrings::keyType( title.keyType() ) << std::endl << " KeyValue (hex) : " << std::hex << std::setfill('0') << std::setw(8) << title.keyValue() << std::dec << std::endl << " Granularity : " << SiStripEnumsAndStrings::granularity( title.granularity() ) << std::endl << " Channel : " << title.channel() << std::endl << " ExtraInfo : "; if ( title.extraInfo() != "" ) { ss << "\"" << title.extraInfo() << "\""; } else { ss << "(none)"; } os << ss.str(); return os; }