CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch2/src/CondFormats/CSCObjects/interface/CSCDBGains.h File Reference

#include "DataFormats/MuonDetId/interface/CSCDetId.h"
#include <iosfwd>
#include <vector>

Go to the source code of this file.

Classes

class  CSCDBGains
struct  CSCDBGains::Item

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;
}