CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_5_3_3/src/CondFormats/CSCObjects/src/CSCDBGains.cc File Reference

#include "CondFormats/CSCObjects/interface/CSCDBGains.h"
#include "DataFormats/MuonDetId/interface/CSCIndexer.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const CSCDBGains &cscDbGains)

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CSCDBGains cscDbGains 
)

Definition at line 14 of file CSCDBGains.cc.

References CSCIndexer::detIdFromStripChannelIndex(), CSCDBGains::gains, and i.

{
  CSCIndexer indexer;
  for(size_t i = 0; i < cscDbGains.gains.size(); ++i)
  {
    std::pair<CSCDetId, CSCIndexer::IndexType> indexPair = indexer.detIdFromStripChannelIndex(i);
    os << indexPair.first << " strip:" << indexPair.second 
       << " slope:" << cscDbGains.gains[i].gain_slope << "\n";
  }
  return os;
}