CMS 3D CMS Logo

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 330 of file CSCCFEBData.cc.

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

331 {
332  os << "printing CFEB data sample by sample " << std::endl;
333  for(unsigned ilayer = 1; ilayer <= 6; ++ilayer)
334  {
335  for(unsigned channel = 1; channel <= 16; ++channel)
336  {
337  unsigned strip = channel + data.boardNumber_*16;
338  os << "Strip " << strip << " ";
339  for(unsigned timeBin = 0; timeBin < data.nTimeSamples(); ++timeBin)
340  {
341  os << data.adcCounts(ilayer, channel, timeBin) << " " ;
342  }
343  os << std::endl;
344  }
345  }
346  return os;
347 }
unsigned adcCounts(unsigned layer, unsigned channel, unsigned timeBin) const
Definition: CSCCFEBData.cc:117
unsigned nTimeSamples() const
Definition: CSCCFEBData.h:21
unsigned boardNumber_
Definition: CSCCFEBData.h:71