14 : id_(_config.getParameter<
std::
string>(
"identifier"))
15 , data_tag_(_config.getParameter<
std::
string>(
"dataTag"))
16 , since_run_(_config.getParameter<unsigned long long>(
"sinceRun"))
17 , input_file_(_config.getParameter<
edm::
FileInPath>(
"inputFile").fullPath())
18 , wheel_fed_(_config.getParameter<
std::vector<
int> >(
"wheelFED"))
19 , wheel_sector_amc_(
std::vector<
std::vector<
int> >(5,
std::vector<
int>(12, 0)))
20 , txt_file_(_config.getUntrackedParameter<
std::
string>(
"txtFile",
""))
22 std::vector<long long> _wheel_sector_amc_packed(_config.
getParameter<std::vector<long long> >(
"wheelSectorAMC"));
24 for (std::vector<long long>::const_iterator _sector_amc_packed = _wheel_sector_amc_packed.begin()
25 ; _sector_amc_packed != _wheel_sector_amc_packed.end() ; ++_sector_amc_packed, ++_sector_amc)
26 for (
unsigned int _sector = 0 ; _sector < 12 ; ++_sector)
27 _sector_amc->at(_sector) = ((*_sector_amc_packed) >> (11*4-4*_sector)) & 0xf;
35 edm::LogInfo(
"RPCTwinMuxLinkMapHandler") <<
"getNewObjects";
39 <<
", older than most recent tag" << _tag_info.
lastInterval.first;
42 int _wheel, _fed, _sector, _amc_number, _tm_input;
46 = _twinmux_link_map_object->
getMap();
50 std::istringstream _conv;
54 _input_file >> _tm_name >> _tm_name >> _tm_input >> _link_name;
55 std::getline(_input_file, _line);
60 _next = _tm_name.find_first_not_of(
"+-0123456789", _pos);
62 _conv.str(_tm_name.substr(_pos, _next - _pos));
66 _next = _tm_name.find_first_not_of(
"+-0123456789", _pos);
67 if (_next == std::string::npos)
68 _next = _tm_name.size();
70 _conv.str(_tm_name.substr(_pos, _next - _pos));
78 _twinmux_link_map.insert(std::pair<RPCAMCLink, RPCLBLink>(
RPCAMCLink(_fed, _amc_number, _tm_input)
81 _input_file >> _tm_name >> _tm_name >> _tm_input >> _link_name;
82 std::getline(_input_file, _line);
87 edm::LogInfo(
"RPCTwinMuxLinkMapHandler") <<
"Fill txtFile";
89 for (RPCAMCLinkMap::map_type::const_iterator _link = _twinmux_link_map.begin()
90 ; _link != _twinmux_link_map.end() ; ++_link) {
91 _ofstream << _link->first <<
": " << _link->second << std::endl;
95 edm::LogInfo(
"RPCTwinMuxLinkMapHandler") <<
"Add to transfer list";
std::vector< std::vector< int > > wheel_sector_amc_
T getParameter(std::string const &) const
~RPCTwinMuxLinkMapHandler()
OldContainer m_to_transfer
cond::ValidityInterval lastInterval
RPCTwinMuxLinkMapHandler(edm::ParameterSet const &_config)
std::map< RPCAMCLink, RPCLBLink > map_type
static void parse(std::string const &_name, RPCLBLink &_lb_link)
std::vector< int > wheel_fed_
cond::TagInfo_t const & tagInfo() const