CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
CSCCFEBData.cc File Reference
#include "DataFormats/MuonDetId/interface/CSCDetId.h"
#include "EventFilter/CSCRawToDigi/interface/CSCCFEBData.h"
#include "EventFilter/CSCRawToDigi/interface/CSCCFEBTimeSlice.h"
#include "EventFilter/CSCRawToDigi/interface/CSCBadCFEBTimeSlice.h"
#include "DataFormats/CSCDigi/interface/CSCStripDigi.h"
#include "DataFormats/CSCDigi/interface/CSCCFEBStatusDigi.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <cassert>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const CSCCFEBData &data)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CSCCFEBData data 
)

Definition at line 301 of file CSCCFEBData.cc.

References CSCCFEBData::adcCounts(), CSCCFEBData::boardNumber_, CSCCFEBData::nTimeSamples(), and strip().

302 {
303  os << "printing CFEB data sample by sample " << std::endl;
304  for(unsigned ilayer = 1; ilayer <= 6; ++ilayer)
305  {
306  for(unsigned channel = 1; channel <= 16; ++channel)
307  {
308  unsigned strip = channel + data.boardNumber_*16;
309  os << "Strip " << strip << " ";
310  for(unsigned timeBin = 0; timeBin < data.nTimeSamples(); ++timeBin)
311  {
312  os << data.adcCounts(ilayer, channel, timeBin) << " " ;
313  }
314  os << std::endl;
315  }
316  }
317  return os;
318 }
void strip(std::string &input, const std::string &blanks=" \n\t")
Definition: stringTools.cc:16
unsigned adcCounts(unsigned layer, unsigned channel, unsigned timeBin) const
Definition: CSCCFEBData.cc:114
unsigned nTimeSamples() const
Definition: CSCCFEBData.h:21
unsigned boardNumber_
Definition: CSCCFEBData.h:64