CMS 3D CMS Logo

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.

00015 {
00016   CSCIndexer indexer;
00017   for(size_t i = 0; i < cscDbGains.gains.size(); ++i)
00018   {
00019     std::pair<CSCDetId, CSCIndexer::IndexType> indexPair = indexer.detIdFromStripChannelIndex(i);
00020     os << indexPair.first << " strip:" << indexPair.second 
00021        << " slope:" << cscDbGains.gains[i].gain_slope << "\n";
00022   }
00023   return os;
00024 }


Generated on Tue Jun 9 17:51:42 2009 for CMSSW by  doxygen 1.5.4