Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:20:27

0001 #include "L1Trigger/L1TCommon/interface/Mask.h"
0002 
0003 namespace l1t {
0004 
0005   Mask::Mask(std::string id, std::string procRole) {
0006     id_ = id;
0007     port_ = std::stoi(id.substr(id.find_last_not_of("0123456789") + 1));
0008     procRole_ = procRole;
0009   }
0010 
0011   void Mask::setPort(std::string id) {
0012     id_ = id;
0013     port_ = std::stoi(id.substr(id.find_last_not_of("0123456789") + 1));
0014   }
0015 
0016 }  // namespace l1t