81 std::string patternsDirNameUnstriped = fp.fullPath();
82 m_patternsDir = patternsDirNameUnstriped.substr(0,patternsDirNameUnstriped.find_last_of(
"/")+1);
108 auto pL1RPCConfig = std::make_unique<L1RPCConfig>();
110 pL1RPCConfig->setPPT(
m_ppt);
113 int scCnt = 0, sgCnt = 0;
118 else if(
m_ppt == 12) {
122 else if(
m_ppt == 144) {
132 for (
int logSector = 0; logSector < scCnt; ++logSector) {
133 for (
int logSegment = 0; logSegment < sgCnt; ++logSegment) {
135 std::stringstream
fname;
137 <<
"pacPat_t" << tower
143 LogDebug(
"RPCTriggerConfig") <<
"Parsing: " << fname.str() <<std::endl;
146 parser.
parse(fname.str());
149 for (
unsigned int ip=0; ip<npats.size(); ip++) {
150 npats[ip].setCoords(tower,logSector,logSegment);
151 pL1RPCConfig->m_pats.push_back(npats[ip]);
155 for (
unsigned int iq=0; iq<nquals.size(); iq++) {
156 nquals[iq].m_tower=tower;
157 nquals[iq].m_logsector=logSector;
158 nquals[iq].m_logsegment=logSegment;
159 pL1RPCConfig->m_quals.push_back(nquals[iq]);
163 <<
" RPCPatterns: " << npats.size()
164 <<
" qualities: "<< nquals.size()
174 return pL1RPCConfig ;
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
T getUntrackedParameter(std::string const &, T const &) const
std::vector< RPCPattern > RPCPatVec
const RPCPattern::RPCPatVec & getPatternsVec(const RPCConst::l1RpcConeCrdnts &coneCrds) const
static const int m_TOWER_COUNT
Only half of the detector.
~RPCTriggerConfig() override
std::vector< TQuality > TQualityVec
std::string m_patternsDir
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
const RPCPattern::TQualityVec & getQualityVec() const
RPCTriggerConfig(const edm::ParameterSet &)
std::unique_ptr< L1RPCConfig > ReturnType
void parse(std::string fileName)
ReturnType produce(const L1RPCConfigRcd &)