CMS 3D CMS Logo

TPatternsGroup Class Reference

Description: <one line="" class="" summary>="">. More...

#include <src/L1Trigger/interface/TPatternsGroup.h>

Inheritance diagram for TPatternsGroup:

TEPatternsGroup TTPatternsGroup

List of all members.

Public Member Functions

void addPattern (const RPCPattern::RPCPatVec::const_iterator &pattern)
 The pattern is added to the m_PatternsVec, the m_GroupShape is updated (updateShape() is called).
std::string getGroupDescription () const
RPCPattern::TPatternType getPatternsGroupType () const
void setGroupDescription (std::string groupDescription)
void setPatternsGroupType (RPCPattern::TPatternType patternsGroupType)
void updateShape (const RPCPattern::RPCPatVec::const_iterator &pattern)
 Updates m_GroupShape, i.e. sets to true strips belonging to the pattern. Coleed in addPattern().

Protected Attributes

std::string m_GroupDescription
RPCLogCone m_GroupShape
RPCPattern::TPatternType m_PatternsGroupType
std::vector
< RPCPattern::RPCPatVec::const_iterator > 
m_PatternsItVec
 < Vector of itereator on m_PatternsVec in Pac.

Friends

class RPCPac
class RPCPacData


Detailed Description

Description: <one line="" class="" summary>="">.

Basic class for storing grouped patterns inside Pac.

Usage: <usage>

In group (object of class TPatternsGroup) the patterns belonging to given group are stored in m_PatternsVec. These patterns are use in trigger algorithm

Definition at line 22 of file TPatternsGroup.h.


Member Function Documentation

void TPatternsGroup::addPattern ( const RPCPattern::RPCPatVec::const_iterator &  pattern  ) 

The pattern is added to the m_PatternsVec, the m_GroupShape is updated (updateShape() is called).

Definition at line 19 of file TPatternsGroup.cc.

References m_PatternsItVec, and updateShape().

Referenced by RPCPacData::insertPatterns(), and TEPatternsGroup::TEPatternsGroup().

00019                                                                                {
00020   updateShape(pattern);
00021   m_PatternsItVec.push_back(pattern);
00022 }

std::string TPatternsGroup::getGroupDescription (  )  const

Definition at line 33 of file TPatternsGroup.cc.

References m_GroupDescription.

Referenced by RPCPacData::getPatternsGroupDescription().

00033                                                     { 
00034   return m_GroupDescription; 
00035 }

RPCPattern::TPatternType TPatternsGroup::getPatternsGroupType (  )  const

Definition at line 37 of file TPatternsGroup.cc.

References m_PatternsGroupType.

00037                                                                   { 
00038   return m_PatternsGroupType; 
00039 }

void TPatternsGroup::setGroupDescription ( std::string  groupDescription  ) 

Definition at line 29 of file TPatternsGroup.cc.

References m_GroupDescription.

Referenced by RPCPacData::insertPatterns(), and RPCPacData::RPCPacData().

00029                                                                   { 
00030   m_GroupDescription = groupDescription; 
00031 }

void TPatternsGroup::setPatternsGroupType ( RPCPattern::TPatternType  patternsGroupType  ) 

Definition at line 25 of file TPatternsGroup.cc.

References m_PatternsGroupType.

00025                                                                                  { 
00026   m_PatternsGroupType = patternsGroupType; 
00027 }

void TPatternsGroup::updateShape ( const RPCPattern::RPCPatVec::const_iterator &  pattern  ) 

Updates m_GroupShape, i.e. sets to true strips belonging to the pattern. Coleed in addPattern().

Definition at line 4 of file TPatternsGroup.cc.

References RPCConst::m_FIRST_PLANE, m_GroupShape, RPCConst::m_LAST_PLANE, RPCConst::m_NOT_CONECTED, and RPCLogCone::setLogStrip().

Referenced by addPattern().

00004                                                                                  {
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 }


Friends And Related Function Documentation

friend class RPCPac [friend]

Reimplemented in TEPatternsGroup.

Definition at line 24 of file TPatternsGroup.h.

friend class RPCPacData [friend]

Reimplemented in TTPatternsGroup.

Definition at line 23 of file TPatternsGroup.h.


Member Data Documentation

std::string TPatternsGroup::m_GroupDescription [protected]

Definition at line 50 of file TPatternsGroup.h.

Referenced by getGroupDescription(), and setGroupDescription().

RPCLogCone TPatternsGroup::m_GroupShape [protected]

Definition at line 48 of file TPatternsGroup.h.

Referenced by RPCPacData::getTPatternsGroupShape(), and updateShape().

RPCPattern::TPatternType TPatternsGroup::m_PatternsGroupType [protected]

Definition at line 41 of file TPatternsGroup.h.

Referenced by getPatternsGroupType(), setPatternsGroupType(), TEPatternsGroup::TEPatternsGroup(), and TTPatternsGroup::TTPatternsGroup().

std::vector<RPCPattern::RPCPatVec::const_iterator> TPatternsGroup::m_PatternsItVec [protected]

< Vector of itereator on m_PatternsVec in Pac.

Set LogStrips denotes strips beloging to the group.

Definition at line 47 of file TPatternsGroup.h.

Referenced by addPattern(), TEPatternsGroup::check(), TEPatternsGroup::operator<(), RPCPac::run(), and RPCPac::runTrackPatternsGroup().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:33:52 2009 for CMSSW by  doxygen 1.5.4