Definition at line 65 of file LMap.cc.
References _lmap, _table, LMapRow::adc, prof2calltree::count, gather_cfg::cout, LMapRow::crate, LMapRow::dcc, LMapRow::dcc_sl, LMapRow::depth, LMapRow::det, LMapRow::dphi, LMapRow::eta, LMapRow::fedid, LMapRow::fi_ch, HcalBarrel, HcalEndcap, HcalForward, HcalOther, HcalOuter, LMapRow::htr, LMapRow::htr_fi, recoMuon::in, beamvalidation::lines, LMapRow::phi, LMapRow::pixel, LMapRow::qie, DetId::rawId(), LMapRow::rctcar, LMapRow::rctcon, LMapRow::rctcra, LMapRow::rm, LMapRow::rm_fi, LMapRow::side, LMapRow::slb, LMapRow::spigo, and LMapRow::wedge.
Referenced by python.Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::goto(), and python.Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::setFilterBranches().
74 std::cout <<
"Unable to open file with the logical map: " << map_file << std::endl;
78 std::cout <<
"File with the logical map opened successfully: " << map_file << std::endl;
81 while ( getline( inFile, _row ) > 0 )
92 const char * let_code =
"Z";
97 const char * _format =
" %d %d %d %d %d %s %s %d %d %d %d %d %d %d %d %d %s %d %d %d %d %d %s %s %s %d %d %d %s %d";
98 _read = sscanf( _row . c_str(), _format,
108 slbin, slbin2, slnam,
113 else if (
type ==
"HO" )
115 const char * _format =
" %d %d %d %d %d %s %s %d %d %d %d %d %d %d %s %d %d %s %d %d %d %d %d";
116 _read = sscanf( _row . c_str(), _format,
136 std::string _det(det);
137 if ( _det.find(
"HB") != std::string::npos ) aRow . det =
HcalBarrel;
138 else if ( _det.find(
"HE") != std::string::npos ) aRow . det =
HcalEndcap;
139 else if ( _det.find(
"HF") != std::string::npos ) aRow . det =
HcalForward;
140 else if ( _det.find(
"HO") != std::string::npos ) aRow . det =
HcalOuter;
143 aRow . rbx .append( rbx );
144 aRow . fpga .append( fpga );
145 aRow . slbin .append( slbin );
146 aRow . slbin2 .append( slbin2 );
147 aRow . slnam .append( slnam );
148 aRow . rctnam .append( rctnam );
149 aRow . let_code .append( let_code );
151 _table . push_back( aRow );
155 _lmap[_hdid.rawId()] = aRow;
160 std::cout <<
"LMap: " << lines . getCount() <<
" lines read" << std::endl;
std::map< int, LMapRow > _lmap
std::vector< LMapRow > _table