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

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

Print current map

Definition at line 317 of file EcalElectronicsMapper.cc.

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

317  {
318  //print class information
319  o << "---------------------------------------------------------";
320 
321  if(aMapper_.pathToMapFile_.empty()){
322  o << "No correct input for DCC map has been given yet...";
323  }
324  else{
325  o << "DCC Map (Map file: " << aMapper_.pathToMapFile_ << " )" << "SM id\t\tDCCid ";
326 
327  //get DCC map and iterator
328  std::map<unsigned int ,unsigned int > aMap;
329  aMap=aMapper_.myDCCMap_;
330  std::map<unsigned int ,unsigned int >::iterator iter;
331 
332  //print info contained in map
333  for(iter = aMap.begin(); iter != aMap.end(); iter++)
334  o << iter->first << "\t\t" << iter->second;
335  }
336 
337  o << "---------------------------------------------------------";
338  return o;
339 }
std::map< unsigned int, unsigned int > myDCCMap_