CMS 3D CMS Logo

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.

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:35 2009 for CMSSW by  doxygen 1.5.4