CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
SiStripHistoTitle.cc File Reference
#include "DataFormats/SiStripCommon/interface/SiStripHistoTitle.h"
#include "DataFormats/SiStripCommon/interface/SiStripKey.h"
#include "DataFormats/SiStripCommon/interface/Constants.h"
#include "DataFormats/SiStripCommon/interface/SiStripFedKey.h"
#include "DataFormats/SiStripCommon/interface/SiStripFecKey.h"
#include "DataFormats/SiStripCommon/interface/SiStripEnumsAndStrings.h"
#include <iostream>
#include <iomanip>

Go to the source code of this file.

Functions

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

Function Documentation

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

Debug info for class.

Definition at line 176 of file SiStripHistoTitle.cc.

References SiStripHistoTitle::channel(), TauDecayModes::dec, SiStripHistoTitle::extraInfo(), SiStripEnumsAndStrings::granularity(), SiStripHistoTitle::granularity(), SiStripEnumsAndStrings::histoType(), SiStripHistoTitle::histoType(), SiStripEnumsAndStrings::keyType(), SiStripHistoTitle::keyType(), SiStripHistoTitle::keyValue(), SiStripEnumsAndStrings::runType(), SiStripHistoTitle::runType(), contentValuesCheck::ss, and SiStripHistoTitle::title().

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