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,
58 aRow . subdet .append( subdet );
59 aRow . topbottom .append( fpga );
61 map . push_back( aRow );
65 std::cout <<
"HcalEmap: " << lines <<
" lines read" << std::endl;
79 return rawId < other.
rawId;
int test_read_map(std::string filename)
std::vector< HcalEmap::HcalEmapRow > & get_map(void)
bool operator<(const HcalEmapRow &other) const
int read_map(std::string filename)