CMS 3D CMS Logo

Functions
EcalElectronicsMapper.cc File Reference
#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 346 of file EcalElectronicsMapper.cc.

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

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

EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:36
EcalElectronicsMapper::pathToMapFile_
std::string pathToMapFile_
Definition: EcalElectronicsMapper.h:179
EcalElectronicsMapper::myDCCMap_
std::map< unsigned int, unsigned int > myDCCMap_
Definition: EcalElectronicsMapper.h:185