23 #include "boost/shared_ptr.hpp"
83 std::string patternsDirNameUnstriped = fp.fullPath();
84 m_patternsDir = patternsDirNameUnstriped.substr(0,patternsDirNameUnstriped.find_last_of(
"/")+1);
109 using namespace edm::es;
110 std::auto_ptr<L1RPCConfig> pL1RPCConfig = std::auto_ptr<L1RPCConfig>(
new L1RPCConfig() );
112 pL1RPCConfig->setPPT(
m_ppt);
115 int scCnt = 0, sgCnt = 0;
120 else if(
m_ppt == 12) {
124 else if(
m_ppt == 144) {
134 for (
int logSector = 0; logSector < scCnt; ++logSector) {
135 for (
int logSegment = 0; logSegment < sgCnt; ++logSegment) {
137 std::stringstream
fname;
139 <<
"pacPat_t" << tower
145 LogDebug(
"RPCTriggerConfig") <<
"Parsing: " << fname.str() <<std::endl;
148 parser.
parse(fname.str());
151 for (
unsigned int ip=0; ip<npats.size(); ip++) {
152 npats[ip].setCoords(tower,logSector,logSegment);
153 pL1RPCConfig->m_pats.push_back(npats[ip]);
157 for (
unsigned int iq=0; iq<nquals.size(); iq++) {
158 nquals[iq].m_tower=tower;
159 nquals[iq].m_logsector=logSector;
160 nquals[iq].m_logsegment=logSegment;
161 pL1RPCConfig->m_quals.push_back(nquals[iq]);
165 <<
" RPCPatterns: " << npats.size()
166 <<
" qualities: "<< nquals.size()
176 return pL1RPCConfig ;
T getUntrackedParameter(std::string const &, T const &) const
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
std::vector< RPCPattern > RPCPatVec
const RPCPattern::RPCPatVec & getPatternsVec(const RPCConst::l1RpcConeCrdnts &coneCrds) const
std::auto_ptr< L1RPCConfig > ReturnType
static const int m_TOWER_COUNT
Only half of the detector.
std::vector< TQuality > TQualityVec
std::string m_patternsDir
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
const RPCPattern::TQualityVec & getQualityVec() const
RPCTriggerConfig(const edm::ParameterSet &)
void parse(std::string fileName)
ReturnType produce(const L1RPCConfigRcd &)