CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes | Friends
TPatternsGroup Class Reference

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

Inheritance diagram for TPatternsGroup:
TEPatternsGroup TTPatternsGroup

Public Member Functions

void addPattern (const RPCPattern::RPCPatVec::const_iterator &pattern)
 
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() More...
 

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. More...
 

Friends

class RPCPac
 
class RPCPacData
 

Detailed Description

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

Usage: <usage>

Basic class for storing grouped patterns inside Pac. 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

◆ addPattern()

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.

19  {
21  m_PatternsItVec.push_back(pattern);
22 }

References m_PatternsItVec, topSingleLeptonDQM_PU_cfi::pattern, and updateShape().

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

◆ getGroupDescription()

std::string TPatternsGroup::getGroupDescription ( ) const

Definition at line 31 of file TPatternsGroup.cc.

31 { return m_GroupDescription; }

References m_GroupDescription.

Referenced by RPCPacData::getPatternsGroupDescription().

◆ getPatternsGroupType()

RPCPattern::TPatternType TPatternsGroup::getPatternsGroupType ( ) const

Definition at line 33 of file TPatternsGroup.cc.

33 { return m_PatternsGroupType; }

References m_PatternsGroupType.

◆ setGroupDescription()

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

Definition at line 29 of file TPatternsGroup.cc.

29 { m_GroupDescription = groupDescription; }

References m_GroupDescription.

Referenced by RPCPacData::insertPatterns().

◆ setPatternsGroupType()

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

Definition at line 25 of file TPatternsGroup.cc.

25  {
26  m_PatternsGroupType = patternsGroupType;
27 }

References m_PatternsGroupType.

◆ updateShape()

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.

4  {
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++)
11  }
12  }
13 }

References L1TBPTX_cfi::bitNumber, RPCConst::m_FIRST_PLANE, m_GroupShape, RPCConst::m_LAST_PLANE, RPCConst::m_NOT_CONECTED, topSingleLeptonDQM_PU_cfi::pattern, and RPCLogCone::setLogStrip().

Referenced by addPattern().

Friends And Related Function Documentation

◆ RPCPac

friend class RPCPac
friend

Definition at line 24 of file TPatternsGroup.h.

◆ RPCPacData

friend class RPCPacData
friend

Definition at line 23 of file TPatternsGroup.h.

Member Data Documentation

◆ m_GroupDescription

std::string TPatternsGroup::m_GroupDescription
protected

Definition at line 50 of file TPatternsGroup.h.

Referenced by getGroupDescription(), and setGroupDescription().

◆ m_GroupShape

RPCLogCone TPatternsGroup::m_GroupShape
protected

Definition at line 48 of file TPatternsGroup.h.

Referenced by updateShape().

◆ m_PatternsGroupType

RPCPattern::TPatternType TPatternsGroup::m_PatternsGroupType
protected

◆ m_PatternsItVec

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 45 of file TPatternsGroup.h.

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

RPCConst::m_NOT_CONECTED
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:94
TPatternsGroup::updateShape
void updateShape(const RPCPattern::RPCPatVec::const_iterator &pattern)
Updates m_GroupShape, i.e. sets to true strips belonging to the pattern. Coleed in addPattern()
Definition: TPatternsGroup.cc:4
TPatternsGroup::m_PatternsGroupType
RPCPattern::TPatternType m_PatternsGroupType
Definition: TPatternsGroup.h:41
RPCConst::m_FIRST_PLANE
static const int m_FIRST_PLANE
Use ase a first index in loops.
Definition: RPCConst.h:55
TPatternsGroup::m_GroupShape
RPCLogCone m_GroupShape
Definition: TPatternsGroup.h:48
topSingleLeptonDQM_PU_cfi.pattern
pattern
Definition: topSingleLeptonDQM_PU_cfi.py:39
RPCLogCone::setLogStrip
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:173
TPatternsGroup::m_PatternsItVec
std::vector< RPCPattern::RPCPatVec::const_iterator > m_PatternsItVec
< Vector of itereator on m_PatternsVec in Pac.
Definition: TPatternsGroup.h:45
L1TBPTX_cfi.bitNumber
bitNumber
Definition: L1TBPTX_cfi.py:26
TPatternsGroup::m_GroupDescription
std::string m_GroupDescription
Definition: TPatternsGroup.h:50
RPCConst::m_LAST_PLANE
static const int m_LAST_PLANE
Use ase a last index in loops.
Definition: RPCConst.h:56