CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 316 of file EcalElectronicsMapper.cc.

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

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