CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | Friends
RPCPattern Class Reference

#include <RPCPattern.h>

Classes

class  RPCLogicalStrip
 
struct  TQuality
 

Public Types

typedef std::vector< RPCPatternRPCPatVec
 
typedef char TPatternType
 
typedef std::vector< TQualityTQualityVec
 

Public Member Functions

int getCode () const
 
int getLogSector () const
 
int getLogSegment () const
 
int getNumber () const
 
TPatternType getPatternType () const
 
int getQualityTabNumber () const
 
int getRefGroup () const
 
int getSign () const
 
int getStripFrom (int logPlane) const
 First strip in range. More...
 
int getStripTo (int logPlane) const
 Next-to-last strip in range. More...
 
int getTower () const
 
 RPCPattern ()
 Default Constructor. Empty pattern, no muon, all planes m_NOT_CONECTED. More...
 
 RPCPattern (int tower, int sector, int segment)
 
void setCode (int a)
 
void setCoords (int tower, int sector, int segment)
 
void setNumber (int a)
 
void setPatternType (TPatternType patternType)
 
void setQualityTabNumber (int qualityTabNumber)
 
void setRefGroup (int refGroup)
 
void setSign (int a)
 
void setStripFrom (int logPlane, int stripFrom)
 
void setStripTo (int logPlane, int stripTo)
 

Static Public Attributes

static const int m_FIRST_PLANE = 0
 
static const int m_LAST_PLANE = 5
 
static const int m_LOGPLANES_COUNT = 6
 
static const int m_NOT_CONECTED = 99
 
static const TPatternType PAT_TYPE_E = 1
 
static const TPatternType PAT_TYPE_T = 0
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

char m_Code
 Muons ptCode. More...
 
char m_LogSector
 
char m_LogSegment
 
short m_Number
 m_Number of pattern in m_PAC's patterns set. More...
 
TPatternType m_PatternType
 
char m_QualityTabNumber
 
char m_RefGroup
 If pattern is of type PAT_TYPE_E, denotes the index of group to which this pattern belongs. More...
 
char m_Sign
 Muon's sign. More...
 
RPCLogicalStrip m_Strips [m_LOGPLANES_COUNT]
 LogicalStrip for every LogPlane. More...
 
char m_Tower
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Definition of single pattern of muon track, i.e. strips range for every plane, muon sign and ptCode, etc.

Author
Karol Bunkowski (Warsaw)

Definition at line 16 of file RPCPattern.h.

Member Typedef Documentation

◆ RPCPatVec

typedef std::vector<RPCPattern> RPCPattern::RPCPatVec

Definition at line 36 of file RPCPattern.h.

◆ TPatternType

Definition at line 54 of file RPCPattern.h.

◆ TQualityVec

typedef std::vector<TQuality> RPCPattern::TQualityVec

Definition at line 49 of file RPCPattern.h.

Constructor & Destructor Documentation

◆ RPCPattern() [1/2]

RPCPattern::RPCPattern ( )

Default Constructor. Empty pattern, no muon, all planes m_NOT_CONECTED.

Definition at line 8 of file RPCPattern.cc.

9  {
10  m_Number = -1; //empty pattern
11  m_Tower = 0;
12  m_LogSector = 0;
13  m_LogSegment = 0;
14  m_Code = 0;
15  m_Sign = 0;
16  m_RefGroup = 0;
18  m_PatternType = 0;
19 
20  for (int logPlane = m_FIRST_PLANE; logPlane <= m_LAST_PLANE; logPlane++) {
21  setStripFrom(logPlane, m_NOT_CONECTED);
22  setStripTo(logPlane, m_NOT_CONECTED + 1);
23  }
24  //other parameters unset

References m_Code, m_FIRST_PLANE, m_LAST_PLANE, m_LogSector, m_LogSegment, m_NOT_CONECTED, m_Number, m_PatternType, m_QualityTabNumber, m_RefGroup, m_Sign, m_Tower, setStripFrom(), and setStripTo().

◆ RPCPattern() [2/2]

RPCPattern::RPCPattern ( int  tower,
int  sector,
int  segment 
)

Definition at line 26 of file RPCPattern.cc.

27  {
28  m_Number = -1; //empty pattern
29  m_Tower = tower;
30  m_LogSector = sector;
31  m_LogSegment = segment;
32  m_Code = 0;
33  m_Sign = 0;
34  m_RefGroup = 0;
36  m_PatternType = 0;
37 
38  for (int logPlane = m_FIRST_PLANE; logPlane <= m_LAST_PLANE; logPlane++) {
39  setStripFrom(logPlane, m_NOT_CONECTED);
40  setStripTo(logPlane, m_NOT_CONECTED + 1);
41  }
42  //other parameters unset

References m_Code, m_FIRST_PLANE, m_LAST_PLANE, m_LogSector, m_LogSegment, m_NOT_CONECTED, m_Number, m_PatternType, m_QualityTabNumber, m_RefGroup, m_Sign, m_Tower, setStripFrom(), setStripTo(), and hgcalTowerProducer_cfi::tower.

Member Function Documentation

◆ getCode()

int RPCPattern::getCode ( ) const

Definition at line 62 of file RPCPattern.cc.

References m_Code.

◆ getLogSector()

int RPCPattern::getLogSector ( ) const

Definition at line 59 of file RPCPattern.cc.

59 { return m_Tower; }

References m_Tower.

◆ getLogSegment()

int RPCPattern::getLogSegment ( ) const

Definition at line 60 of file RPCPattern.cc.

60 { return m_LogSector; }

References m_LogSector.

◆ getNumber()

int RPCPattern::getNumber ( ) const

Definition at line 66 of file RPCPattern.cc.

References m_Number.

◆ getPatternType()

RPCPattern::TPatternType RPCPattern::getPatternType ( ) const

Definition at line 68 of file RPCPattern.cc.

References m_PatternType.

◆ getQualityTabNumber()

int RPCPattern::getQualityTabNumber ( ) const

Definition at line 72 of file RPCPattern.cc.

References m_QualityTabNumber.

◆ getRefGroup()

int RPCPattern::getRefGroup ( ) const

Definition at line 70 of file RPCPattern.cc.

References m_RefGroup.

◆ getSign()

int RPCPattern::getSign ( ) const

Definition at line 64 of file RPCPattern.cc.

References m_Sign.

◆ getStripFrom()

int RPCPattern::getStripFrom ( int  logPlane) const

First strip in range.

Definition at line 49 of file RPCPattern.cc.

50  { //logic srtip
51  return m_Strips[logPlane].m_StripFrom;

◆ getStripTo()

int RPCPattern::getStripTo ( int  logPlane) const

Next-to-last strip in range.

Definition at line 54 of file RPCPattern.cc.

55  { //logic srtip
56  return m_Strips[logPlane].m_StripTo;

◆ getTower()

int RPCPattern::getTower ( ) const

Definition at line 58 of file RPCPattern.cc.

◆ serialize()

template<class Archive >
void RPCPattern::serialize ( Archive &  ar,
const unsigned int  version 
)
private

◆ setCode()

void RPCPattern::setCode ( int  a)

Definition at line 80 of file RPCPattern.cc.

References a, and m_Code.

◆ setCoords()

void RPCPattern::setCoords ( int  tower,
int  sector,
int  segment 
)

Definition at line 74 of file RPCPattern.cc.

75  {
76  m_Tower = tower;
77  m_LogSector = sector;
78  m_LogSegment = segment;

References m_LogSector, m_LogSegment, m_Tower, and hgcalTowerProducer_cfi::tower.

◆ setNumber()

void RPCPattern::setNumber ( int  a)

Definition at line 84 of file RPCPattern.cc.

References a, and m_Number.

◆ setPatternType()

void RPCPattern::setPatternType ( TPatternType  patternType)

Definition at line 86 of file RPCPattern.cc.

References m_PatternType.

◆ setQualityTabNumber()

void RPCPattern::setQualityTabNumber ( int  qualityTabNumber)

Definition at line 90 of file RPCPattern.cc.

References m_QualityTabNumber.

◆ setRefGroup()

void RPCPattern::setRefGroup ( int  refGroup)

Definition at line 88 of file RPCPattern.cc.

References m_RefGroup.

◆ setSign()

void RPCPattern::setSign ( int  a)

Definition at line 82 of file RPCPattern.cc.

References a, and m_Sign.

◆ setStripFrom()

void RPCPattern::setStripFrom ( int  logPlane,
int  stripFrom 
)

Definition at line 44 of file RPCPattern.cc.

References RPCPattern::RPCLogicalStrip::m_StripFrom, and m_Strips.

Referenced by RPCPattern().

◆ setStripTo()

void RPCPattern::setStripTo ( int  logPlane,
int  stripTo 
)

Definition at line 46 of file RPCPattern.cc.

References m_Strips, and RPCPattern::RPCLogicalStrip::m_StripTo.

Referenced by RPCPattern().

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 136 of file RPCPattern.h.

◆ cond::serialization::access

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 136 of file RPCPattern.h.

Member Data Documentation

◆ m_Code

char RPCPattern::m_Code
private

Muons ptCode.

Definition at line 119 of file RPCPattern.h.

Referenced by getCode(), RPCPattern(), and setCode().

◆ m_FIRST_PLANE

const int RPCPattern::m_FIRST_PLANE = 0
static

Definition at line 58 of file RPCPattern.h.

Referenced by RPCPattern().

◆ m_LAST_PLANE

const int RPCPattern::m_LAST_PLANE = 5
static

Definition at line 59 of file RPCPattern.h.

Referenced by RPCPattern().

◆ m_LOGPLANES_COUNT

const int RPCPattern::m_LOGPLANES_COUNT = 6
static

Definition at line 57 of file RPCPattern.h.

◆ m_LogSector

char RPCPattern::m_LogSector
private

Definition at line 112 of file RPCPattern.h.

Referenced by getLogSegment(), RPCPattern(), and setCoords().

◆ m_LogSegment

char RPCPattern::m_LogSegment
private

Definition at line 113 of file RPCPattern.h.

Referenced by RPCPattern(), and setCoords().

◆ m_NOT_CONECTED

const int RPCPattern::m_NOT_CONECTED = 99
static

Definition at line 60 of file RPCPattern.h.

Referenced by RPCPattern().

◆ m_Number

short RPCPattern::m_Number
private

m_Number of pattern in m_PAC's patterns set.

Definition at line 134 of file RPCPattern.h.

Referenced by getNumber(), RPCPattern(), and setNumber().

◆ m_PatternType

TPatternType RPCPattern::m_PatternType
private

The m_PAC algorith that should be used for given Pattern. PAT_TYPE_T - Basic (clasic), PAT_TYPE_E - "impoved" (economic).

See also
"Pattern Comparator Trigger Algorithm – implementation in FPGA"

Definition at line 124 of file RPCPattern.h.

Referenced by getPatternType(), RPCPattern(), and setPatternType().

◆ m_QualityTabNumber

char RPCPattern::m_QualityTabNumber
private

The index of quality table that should be used for given pattern. The quality table is defined at the beginig of each patterns file

Definition at line 131 of file RPCPattern.h.

Referenced by getQualityTabNumber(), RPCPattern(), and setQualityTabNumber().

◆ m_RefGroup

char RPCPattern::m_RefGroup
private

If pattern is of type PAT_TYPE_E, denotes the index of group to which this pattern belongs.

Definition at line 127 of file RPCPattern.h.

Referenced by getRefGroup(), RPCPattern(), and setRefGroup().

◆ m_Sign

char RPCPattern::m_Sign
private

Muon's sign.

Definition at line 116 of file RPCPattern.h.

Referenced by getSign(), RPCPattern(), and setSign().

◆ m_Strips

RPCLogicalStrip RPCPattern::m_Strips[m_LOGPLANES_COUNT]
private

LogicalStrip for every LogPlane.

Definition at line 108 of file RPCPattern.h.

Referenced by setStripFrom(), and setStripTo().

◆ m_Tower

char RPCPattern::m_Tower
private

Definition at line 111 of file RPCPattern.h.

Referenced by getLogSector(), RPCPattern(), and setCoords().

◆ PAT_TYPE_E

const TPatternType RPCPattern::PAT_TYPE_E = 1
static

◆ PAT_TYPE_T

const TPatternType RPCPattern::PAT_TYPE_T = 0
static
RPCPattern::m_QualityTabNumber
char m_QualityTabNumber
Definition: RPCPattern.h:131
hgcalTowerProducer_cfi.tower
tower
Definition: hgcalTowerProducer_cfi.py:3
RPCPattern::RPCLogicalStrip::m_StripFrom
unsigned char m_StripFrom
First strip in range.
Definition: RPCPattern.h:29
RPCPattern::m_Sign
char m_Sign
Muon's sign.
Definition: RPCPattern.h:116
RPCPattern::m_PatternType
TPatternType m_PatternType
Definition: RPCPattern.h:124
RPCPattern::m_FIRST_PLANE
static const int m_FIRST_PLANE
Definition: RPCPattern.h:58
RPCPattern::m_LogSegment
char m_LogSegment
Definition: RPCPattern.h:113
RPCPattern::setStripTo
void setStripTo(int logPlane, int stripTo)
Definition: RPCPattern.cc:46
RPCPattern::m_Strips
RPCLogicalStrip m_Strips[m_LOGPLANES_COUNT]
LogicalStrip for every LogPlane.
Definition: RPCPattern.h:108
RPCPattern::m_Tower
char m_Tower
Definition: RPCPattern.h:111
RPCPattern::m_Code
char m_Code
Muons ptCode.
Definition: RPCPattern.h:119
RPCPattern::m_RefGroup
char m_RefGroup
If pattern is of type PAT_TYPE_E, denotes the index of group to which this pattern belongs.
Definition: RPCPattern.h:127
RPCPattern::m_NOT_CONECTED
static const int m_NOT_CONECTED
Definition: RPCPattern.h:60
RPCPattern::RPCLogicalStrip::m_StripTo
unsigned char m_StripTo
Next-to-last strip in range.
Definition: RPCPattern.h:31
RPCPattern::setStripFrom
void setStripFrom(int logPlane, int stripFrom)
Definition: RPCPattern.cc:44
RPCPattern::m_Number
short m_Number
m_Number of pattern in m_PAC's patterns set.
Definition: RPCPattern.h:134
RPCPattern::m_LAST_PLANE
static const int m_LAST_PLANE
Definition: RPCPattern.h:59
RPCPattern::m_LogSector
char m_LogSector
Definition: RPCPattern.h:112