81 std::string patternsDirNameUnstriped = fp.fullPath();
82 m_patternsDir = patternsDirNameUnstriped.substr(0,patternsDirNameUnstriped.find_last_of(
"/")+1);
107 auto pL1RPCConfig = std::make_unique<L1RPCConfig>();
109 pL1RPCConfig->setPPT(
m_ppt);
112 int scCnt = 0, sgCnt = 0;
117 else if(
m_ppt == 12) {
121 else if(
m_ppt == 144) {
131 for (
int logSector = 0; logSector < scCnt; ++logSector) {
132 for (
int logSegment = 0; logSegment < sgCnt; ++logSegment) {
134 std::stringstream
fname;
136 <<
"pacPat_t" << tower
142 LogDebug(
"RPCTriggerConfig") <<
"Parsing: " << fname.str() <<std::endl;
145 parser.
parse(fname.str());
148 for (
unsigned int ip=0; ip<npats.size(); ip++) {
149 npats[ip].setCoords(tower,logSector,logSegment);
150 pL1RPCConfig->m_pats.push_back(npats[ip]);
154 for (
unsigned int iq=0; iq<nquals.size(); iq++) {
155 nquals[iq].m_tower=tower;
156 nquals[iq].m_logsector=logSector;
157 nquals[iq].m_logsegment=logSegment;
158 pL1RPCConfig->m_quals.push_back(nquals[iq]);
162 <<
" RPCPatterns: " << npats.size()
163 <<
" qualities: "<< nquals.size()
173 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 &)