Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:21:41

0001 #include "L1Trigger/RPCTrigger/interface/TPatternsGroup.h"
0002 
0003 //called by addPattern
0004 void TPatternsGroup::updateShape(const RPCPattern::RPCPatVec::const_iterator& pattern) {
0005   for (int logPlane = RPCConst::m_FIRST_PLANE; logPlane <= RPCConst::m_LAST_PLANE; logPlane++) {
0006     if (pattern->getStripFrom(logPlane) != RPCConst::m_NOT_CONECTED) {
0007       int fromBit = pattern->getStripFrom(logPlane);
0008       int toBit = pattern->getStripTo(logPlane);
0009       for (int bitNumber = fromBit; bitNumber < toBit; bitNumber++)
0010         m_GroupShape.setLogStrip(logPlane, bitNumber);
0011     }
0012   }
0013 }
0014 /**
0015  *
0016  *The pattern is added to the m_PatternsVec, the m_GroupShape is updated (updateShape() is called).
0017  *
0018  */
0019 void TPatternsGroup::addPattern(const RPCPattern::RPCPatVec::const_iterator& pattern) {
0020   updateShape(pattern);
0021   m_PatternsItVec.push_back(pattern);
0022 }
0023 
0024 // Simple setters and getters
0025 void TPatternsGroup::setPatternsGroupType(RPCPattern::TPatternType patternsGroupType) {
0026   m_PatternsGroupType = patternsGroupType;
0027 }
0028 
0029 void TPatternsGroup::setGroupDescription(std::string groupDescription) { m_GroupDescription = groupDescription; }
0030 
0031 std::string TPatternsGroup::getGroupDescription() const { return m_GroupDescription; }
0032 
0033 RPCPattern::TPatternType TPatternsGroup::getPatternsGroupType() const { return m_PatternsGroupType; }