test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TPatternsGroup.cc
Go to the documentation of this file.
2 
3 //called by addPattern
4 void TPatternsGroup::updateShape(const RPCPattern::RPCPatVec::const_iterator& pattern) {
5  for(int logPlane = RPCConst::m_FIRST_PLANE; logPlane <= RPCConst::m_LAST_PLANE; logPlane++) {
6  if (pattern->getStripFrom(logPlane) != RPCConst::m_NOT_CONECTED) {
7  int fromBit = pattern->getStripFrom(logPlane);
8  int toBit = pattern->getStripTo(logPlane);
9  for (int bitNumber = fromBit; bitNumber < toBit; bitNumber++)
10  m_GroupShape.setLogStrip(logPlane, bitNumber);
11  }
12  }
13 }
19 void TPatternsGroup::addPattern(const RPCPattern::RPCPatVec::const_iterator& pattern){
20  updateShape(pattern);
21  m_PatternsItVec.push_back(pattern);
22 }
23 
24 // Simple setters and getters
26  m_PatternsGroupType = patternsGroupType;
27 }
28 
30  m_GroupDescription = groupDescription;
31 }
32 
34  return m_GroupDescription;
35 }
36 
38  return m_PatternsGroupType;
39 }
std::string getGroupDescription() const
RPCLogCone m_GroupShape
void addPattern(const RPCPattern::RPCPatVec::const_iterator &pattern)
static const int m_LAST_PLANE
Use ase a last index in loops.
Definition: RPCConst.h:57
void setPatternsGroupType(RPCPattern::TPatternType patternsGroupType)
std::vector< RPCPattern::RPCPatVec::const_iterator > m_PatternsItVec
&lt; Vector of itereator on m_PatternsVec in Pac.
void setGroupDescription(std::string groupDescription)
char TPatternType
Definition: RPCPattern.h:56
std::string m_GroupDescription
void setLogStrip(int logPlane, int logStripNum, int m_digiIdx)
Set logic strip as fired. m_digiIdx - index of digi in digis vector stored by L1RpcTrigg.
Definition: RPCLogCone.cc:200
static const int m_FIRST_PLANE
Use ase a first index in loops.
Definition: RPCConst.h:56
void updateShape(const RPCPattern::RPCPatVec::const_iterator &pattern)
Updates m_GroupShape, i.e. sets to true strips belonging to the pattern. Coleed in addPattern() ...
RPCPattern::TPatternType m_PatternsGroupType
static const int m_NOT_CONECTED
Denotes Logic m_Strips that is not valid (f.e. in Patterns denotes, that in given plane the pattern i...
Definition: RPCConst.h:95
RPCPattern::TPatternType getPatternsGroupType() const