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