CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2_patch1/src/DataFormats/SiStripCommon/interface/SiStripHistoTitle.h File Reference

#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 &)

Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const SiStripHistoTitle  
)

Debug info for class.

Definition at line 177 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;
}