CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
CSCCFEBData.cc File Reference
#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 "DataFormats/CSCDigi/interface/CSCConstants.h"
#include "DataFormats/MuonDetId/interface/CSCDetId.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 308 of file CSCCFEBData.cc.

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

308  {
309  os << "printing CFEB data sample by sample " << std::endl;
310  for (int ilayer = CSCDetId::minLayerId(); ilayer <= CSCDetId::maxLayerId(); ++ilayer) {
311  for (unsigned channel = 1; channel <= 16; ++channel) {
312  unsigned strip = channel + data.boardNumber_ * 16;
313  os << "Strip " << strip << " ";
314  for (unsigned timeBin = 0; timeBin < data.nTimeSamples(); ++timeBin) {
315  os << data.adcCounts(ilayer, channel, timeBin) << " ";
316  }
317  os << std::endl;
318  }
319  }
320  return os;
321 }
unsigned adcCounts(unsigned layer, unsigned channel, unsigned timeBin) const
Definition: CSCCFEBData.cc:110
unsigned nTimeSamples() const
Definition: CSCCFEBData.h:20
static int minLayerId()
Definition: CSCDetId.h:242
static int maxLayerId()
Definition: CSCDetId.h:243
unsigned boardNumber_
Definition: CSCCFEBData.h:69