CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_5_3_10/src/EventFilter/CSCRawToDigi/src/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().

{
  os << "printing CFEB data sample by sample " << std::endl;
  for(unsigned ilayer = 1; ilayer <= 6; ++ilayer) 
    {
      for(unsigned channel = 1; channel <= 16; ++channel) 
        {
          unsigned strip = channel + data.boardNumber_*16;
          os << "Strip " << strip << " ";
          for(unsigned timeBin = 0; timeBin < data.nTimeSamples(); ++timeBin)
            {
              os << data.adcCounts(ilayer, channel, timeBin) << " " ;
            }
          os << std::endl;
        }
    }
  return os;
}