Description: container for the HCAL electronics map
Usage:
Definition at line 34 of file HcalEmap.h.
int HcalEmap::read_map |
( |
std::string |
filename | ) |
|
Definition at line 28 of file HcalEmap.cc.
References gather_cfg::cout, HcalEmap::HcalEmapRow::crate, HcalEmap::HcalEmapRow::dcc, HcalEmap::HcalEmapRow::fiber, HcalEmap::HcalEmapRow::fiberchan, HcalEmap::HcalEmapRow::idepth, HcalEmap::HcalEmapRow::ieta, recoMuon::in, HcalEmap::HcalEmapRow::iphi, groupFilesInBlocks::lines, HcalEmap::HcalEmapRow::rawId, HcalEmap::HcalEmapRow::slot, HcalEmap::HcalEmapRow::spigot, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by HcalEmap().
35 std::cout <<
"Unable to open file with the electronic map: " <<
filename << std::endl;
38 std::cout <<
"File with the electronic map opened successfully: " <<
filename << std::endl;
40 while (getline( inFile, _row )) {
46 const char * _format =
"%d %d %d %s %d %d %d %d %s %d %d %d";
47 _read = sscanf( _row . c_str(), _format,
49 &(aRow.crate), &(aRow.slot),
52 &(aRow.spigot),&(aRow.fiber),&(aRow.fiberchan),
54 &(aRow.ieta), &(aRow.iphi), &(aRow.idepth) );
58 aRow . subdet .append( subdet );
59 aRow . topbottom .append( fpga );
61 map . push_back( aRow );
65 std::cout <<
"HcalEmap: " << lines <<
" lines read" << std::endl;
std::vector< HcalEmapRow > map