CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
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(), SiStripEnumsAndStrings::granularity(), SiStripHistoTitle::granularity(), SiStripEnumsAndStrings::histoType(), SiStripHistoTitle::histoType(), SiStripEnumsAndStrings::keyType(), SiStripHistoTitle::keyType(), SiStripHistoTitle::keyValue(), SiStripEnumsAndStrings::runType(), SiStripHistoTitle::runType(), and SiStripHistoTitle::title().

177  {
178  std::stringstream ss;
179  ss << "[SiStripHistoTitle::print]" << std::endl
180  << " Title : " << title.title() << std::endl
181  << " HistoType : " << SiStripEnumsAndStrings::histoType( title.histoType() ) << std::endl
182  << " RunType : " << SiStripEnumsAndStrings::runType( title.runType() ) << std::endl
183  << " KeyType : " << SiStripEnumsAndStrings::keyType( title.keyType() ) << std::endl
184  << " KeyValue (hex) : " << std::hex << std::setfill('0') << std::setw(8) << title.keyValue() << std::dec << std::endl
185  << " Granularity : " << SiStripEnumsAndStrings::granularity( title.granularity() ) << std::endl
186  << " Channel : " << title.channel() << std::endl
187  << " ExtraInfo : ";
188  if ( title.extraInfo() != "" ) { ss << "\"" << title.extraInfo() << "\""; }
189  else { ss << "(none)"; }
190  os << ss.str();
191  return os;
192 }
static std::string granularity(const sistrip::Granularity &)
static std::string runType(const sistrip::RunType &)
static std::string histoType(const sistrip::HistoType &)
static std::string keyType(const sistrip::KeyType &)