CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
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.

15 {
16  CSCIndexer indexer;
17  for(size_t i = 0; i < cscDbGains.gains.size(); ++i)
18  {
19  std::pair<CSCDetId, CSCIndexer::IndexType> indexPair = indexer.detIdFromStripChannelIndex(i);
20  os << indexPair.first << " strip:" << indexPair.second
21  << " slope:" << cscDbGains.gains[i].gain_slope << "\n";
22  }
23  return os;
24 }
std::pair< CSCDetId, IndexType > detIdFromStripChannelIndex(LongIndexType ichi) const
Definition: CSCIndexer.cc:129
int i
Definition: DBlmapReader.cc:9
GainContainer gains
Definition: CSCDBGains.h:27