CMS 3D CMS Logo

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

◆ operator<<()

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

Debug info for class.

Definition at line 186 of file SiStripHistoTitle.cc.

186  {
187  std::stringstream ss;
188  ss << "[SiStripHistoTitle::print]" << std::endl
189  << " Title : " << title.title() << std::endl
190  << " HistoType : " << SiStripEnumsAndStrings::histoType(title.histoType()) << std::endl
191  << " RunType : " << SiStripEnumsAndStrings::runType(title.runType()) << std::endl
192  << " KeyType : " << SiStripEnumsAndStrings::keyType(title.keyType()) << std::endl
193  << " KeyValue (hex) : " << std::hex << std::setfill('0') << std::setw(8) << title.keyValue() << std::dec
194  << std::endl
195  << " Granularity : " << SiStripEnumsAndStrings::granularity(title.granularity()) << std::endl
196  << " Channel : " << title.channel() << std::endl
197  << " ExtraInfo : ";
198  if (!title.extraInfo().empty()) {
199  ss << "\"" << title.extraInfo() << "\"";
200  } else {
201  ss << "(none)";
202  }
203  os << ss.str();
204  return os;
205 }

References TauDecayModes::dec, SiStripEnumsAndStrings::granularity(), SiStripEnumsAndStrings::histoType(), SiStripEnumsAndStrings::keyType(), SiStripEnumsAndStrings::runType(), contentValuesCheck::ss, and overlapproblemtsosanalyzer_cfi::title.

SiStripEnumsAndStrings::runType
static std::string runType(const sistrip::RunType &)
Definition: SiStripEnumsAndStrings.cc:39
SiStripEnumsAndStrings::histoType
static std::string histoType(const sistrip::HistoType &)
Definition: SiStripEnumsAndStrings.cc:517
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
SiStripEnumsAndStrings::granularity
static std::string granularity(const sistrip::Granularity &)
Definition: SiStripEnumsAndStrings.cc:265
overlapproblemtsosanalyzer_cfi.title
title
Definition: overlapproblemtsosanalyzer_cfi.py:7
TauDecayModes.dec
dec
Definition: TauDecayModes.py:143
SiStripEnumsAndStrings::keyType
static std::string keyType(const sistrip::KeyType &)
Definition: SiStripEnumsAndStrings.cc:231