00001 #include "L1Trigger/RPCTrigger/interface/TPatternsGroup.h" 00002 00003 //called by addPattern 00004 void TPatternsGroup::updateShape(const RPCPattern::RPCPatVec::const_iterator& pattern) { 00005 for(int logPlane = RPCConst::m_FIRST_PLANE; logPlane <= RPCConst::m_LAST_PLANE; logPlane++) { 00006 if (pattern->getStripFrom(logPlane) != RPCConst::m_NOT_CONECTED) { 00007 int fromBit = pattern->getStripFrom(logPlane); 00008 int toBit = pattern->getStripTo(logPlane); 00009 for (int bitNumber = fromBit; bitNumber < toBit; bitNumber++) 00010 m_GroupShape.setLogStrip(logPlane, bitNumber); 00011 } 00012 } 00013 } 00019 void TPatternsGroup::addPattern(const RPCPattern::RPCPatVec::const_iterator& pattern){ 00020 updateShape(pattern); 00021 m_PatternsItVec.push_back(pattern); 00022 } 00023 00024 // Simple setters and getters 00025 void TPatternsGroup::setPatternsGroupType(RPCPattern::TPatternType patternsGroupType){ 00026 m_PatternsGroupType = patternsGroupType; 00027 } 00028 00029 void TPatternsGroup::setGroupDescription(std::string groupDescription){ 00030 m_GroupDescription = groupDescription; 00031 } 00032 00033 std::string TPatternsGroup::getGroupDescription() const { 00034 return m_GroupDescription; 00035 } 00036 00037 RPCPattern::TPatternType TPatternsGroup::getPatternsGroupType() const { 00038 return m_PatternsGroupType; 00039 }