36 std::cout <<
"Unable to open file with the electronic map: " << filename << std::endl;
39 std::cout <<
"File with the electronic map opened successfully: " << filename << std::endl;
41 while ( getline( inFile, _row ) > 0 ){
47 const char * _format =
"%d %d %d %s %d %d %d %d %s %d %d %d";
48 _read = sscanf( _row . c_str(), _format,
59 aRow . subdet .append( subdet );
60 aRow . topbottom .append( fpga );
62 map . push_back( aRow );
66 std::cout <<
"HcalEmap: " << lines <<
" lines read" << std::endl;
80 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)