CMS 3D CMS Logo

Functions
EcalElectronicsMapper.cc File Reference
#include <cassert>
#include <FWCore/MessageLogger/interface/MessageLogger.h>
#include <EventFilter/EcalRawToDigi/interface/EcalElectronicsMapper.h>
#include <Geometry/EcalMapping/interface/EcalElectronicsMapping.h>
#include <DataFormats/EcalDigi/interface/EBSrFlag.h>
#include <DataFormats/EcalDigi/interface/EESrFlag.h>
#include <EventFilter/EcalRawToDigi/interface/DCCDataUnpacker.h>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &o, const EcalElectronicsMapper &aMapper_)
 

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  o,
const EcalElectronicsMapper aMapper_ 
)

Print current map

Definition at line 347 of file EcalElectronicsMapper.cc.

References EcalElectronicsMapper::myDCCMap_, EcalTangentSkim_cfg::o, and EcalElectronicsMapper::pathToMapFile_.

347  {
348  //print class information
349  o << "---------------------------------------------------------";
350 
351  if (aMapper_.pathToMapFile_.empty()) {
352  o << "No correct input for DCC map has been given yet...";
353  } else {
354  o << "DCC Map (Map file: " << aMapper_.pathToMapFile_ << " )"
355  << "SM id\t\tDCCid ";
356 
357  //get DCC map and iterator
358  std::map<unsigned int, unsigned int> aMap;
359  aMap = aMapper_.myDCCMap_;
360  std::map<unsigned int, unsigned int>::iterator iter;
361 
362  //print info contained in map
363  for (iter = aMap.begin(); iter != aMap.end(); iter++)
364  o << iter->first << "\t\t" << iter->second;
365  }
366 
367  o << "---------------------------------------------------------";
368  return o;
369 }
std::map< unsigned int, unsigned int > myDCCMap_