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 9 of file RPCPattern.cc.

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().

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
25 }
char m_LogSegment
Definition: RPCPattern.h:113
char m_Code
Muons ptCode.
Definition: RPCPattern.h:119
void setStripTo(int logPlane, int stripTo)
Definition: RPCPattern.cc:47
static const int m_NOT_CONECTED
Definition: RPCPattern.h:60
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
char m_LogSector
Definition: RPCPattern.h:112
void setStripFrom(int logPlane, int stripFrom)
Definition: RPCPattern.cc:45
char m_QualityTabNumber
Definition: RPCPattern.h:131
static const int m_LAST_PLANE
Definition: RPCPattern.h:59
short m_Number
m_Number of pattern in m_PAC&#39;s patterns set.
Definition: RPCPattern.h:134
static const int m_FIRST_PLANE
Definition: RPCPattern.h:58
TPatternType m_PatternType
Definition: RPCPattern.h:124
char m_Sign
Muon&#39;s sign.
Definition: RPCPattern.h:116
char m_Tower
Definition: RPCPattern.h:111

◆ RPCPattern() [2/2]

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

Definition at line 27 of file RPCPattern.cc.

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, hgcalTBTopologyTester_cfi::sector, setStripFrom(), setStripTo(), and l1tHGCalTowerProducer_cfi::tower.

27  {
28  m_Number = -1; //empty pattern
29  m_Tower = tower;
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
43 }
char m_LogSegment
Definition: RPCPattern.h:113
char m_Code
Muons ptCode.
Definition: RPCPattern.h:119
void setStripTo(int logPlane, int stripTo)
Definition: RPCPattern.cc:47
static const int m_NOT_CONECTED
Definition: RPCPattern.h:60
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
char m_LogSector
Definition: RPCPattern.h:112
void setStripFrom(int logPlane, int stripFrom)
Definition: RPCPattern.cc:45
char m_QualityTabNumber
Definition: RPCPattern.h:131
static const int m_LAST_PLANE
Definition: RPCPattern.h:59
short m_Number
m_Number of pattern in m_PAC&#39;s patterns set.
Definition: RPCPattern.h:134
static const int m_FIRST_PLANE
Definition: RPCPattern.h:58
TPatternType m_PatternType
Definition: RPCPattern.h:124
char m_Sign
Muon&#39;s sign.
Definition: RPCPattern.h:116
char m_Tower
Definition: RPCPattern.h:111

Member Function Documentation

◆ getCode()

int RPCPattern::getCode ( ) const

Definition at line 63 of file RPCPattern.cc.

References m_Code.

63 { return m_Code; }
char m_Code
Muons ptCode.
Definition: RPCPattern.h:119

◆ getLogSector()

int RPCPattern::getLogSector ( ) const

Definition at line 60 of file RPCPattern.cc.

References m_LogSector.

60 { return m_LogSector; }
char m_LogSector
Definition: RPCPattern.h:112

◆ getLogSegment()

int RPCPattern::getLogSegment ( ) const

Definition at line 61 of file RPCPattern.cc.

References m_LogSegment.

61 { return m_LogSegment; }
char m_LogSegment
Definition: RPCPattern.h:113

◆ getNumber()

int RPCPattern::getNumber ( ) const

Definition at line 67 of file RPCPattern.cc.

References m_Number.

67 { return m_Number; }
short m_Number
m_Number of pattern in m_PAC&#39;s patterns set.
Definition: RPCPattern.h:134

◆ getPatternType()

RPCPattern::TPatternType RPCPattern::getPatternType ( ) const

Definition at line 69 of file RPCPattern.cc.

References m_PatternType.

69 { return m_PatternType; }
TPatternType m_PatternType
Definition: RPCPattern.h:124

◆ getQualityTabNumber()

int RPCPattern::getQualityTabNumber ( ) const

Definition at line 73 of file RPCPattern.cc.

References m_QualityTabNumber.

73 { return m_QualityTabNumber; }
char m_QualityTabNumber
Definition: RPCPattern.h:131

◆ getRefGroup()

int RPCPattern::getRefGroup ( ) const

Definition at line 71 of file RPCPattern.cc.

References m_RefGroup.

71 { return 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

◆ getSign()

int RPCPattern::getSign ( ) const

Definition at line 65 of file RPCPattern.cc.

References m_Sign.

65 { return m_Sign; }
char m_Sign
Muon&#39;s sign.
Definition: RPCPattern.h:116

◆ getStripFrom()

int RPCPattern::getStripFrom ( int  logPlane) const

First strip in range.

Definition at line 50 of file RPCPattern.cc.

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

50  { //logic srtip
51  return m_Strips[logPlane].m_StripFrom;
52 }
RPCLogicalStrip m_Strips[m_LOGPLANES_COUNT]
LogicalStrip for every LogPlane.
Definition: RPCPattern.h:108
unsigned char m_StripFrom
First strip in range.
Definition: RPCPattern.h:29

◆ getStripTo()

int RPCPattern::getStripTo ( int  logPlane) const

Next-to-last strip in range.

Definition at line 55 of file RPCPattern.cc.

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

55  { //logic srtip
56  return m_Strips[logPlane].m_StripTo;
57 }
RPCLogicalStrip m_Strips[m_LOGPLANES_COUNT]
LogicalStrip for every LogPlane.
Definition: RPCPattern.h:108
unsigned char m_StripTo
Next-to-last strip in range.
Definition: RPCPattern.h:31

◆ getTower()

int RPCPattern::getTower ( ) const

Definition at line 59 of file RPCPattern.cc.

References m_Tower.

59 { return m_Tower; }
char m_Tower
Definition: RPCPattern.h:111

◆ serialize()

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

◆ setCode()

void RPCPattern::setCode ( int  a)

Definition at line 81 of file RPCPattern.cc.

References a, and m_Code.

81 { m_Code = a; }
char m_Code
Muons ptCode.
Definition: RPCPattern.h:119
double a
Definition: hdecay.h:119

◆ setCoords()

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

◆ setNumber()

void RPCPattern::setNumber ( int  a)

Definition at line 85 of file RPCPattern.cc.

References a, and m_Number.

85 { m_Number = a; }
short m_Number
m_Number of pattern in m_PAC&#39;s patterns set.
Definition: RPCPattern.h:134
double a
Definition: hdecay.h:119

◆ setPatternType()

void RPCPattern::setPatternType ( TPatternType  patternType)

Definition at line 87 of file RPCPattern.cc.

References m_PatternType.

87 { m_PatternType = patternType; }
TPatternType m_PatternType
Definition: RPCPattern.h:124

◆ setQualityTabNumber()

void RPCPattern::setQualityTabNumber ( int  qualityTabNumber)

Definition at line 91 of file RPCPattern.cc.

References m_QualityTabNumber.

91 { m_QualityTabNumber = qualityTabNumber; }
char m_QualityTabNumber
Definition: RPCPattern.h:131

◆ setRefGroup()

void RPCPattern::setRefGroup ( int  refGroup)

Definition at line 89 of file RPCPattern.cc.

References m_RefGroup.

89 { m_RefGroup = 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

◆ setSign()

void RPCPattern::setSign ( int  a)

Definition at line 83 of file RPCPattern.cc.

References a, and m_Sign.

83 { m_Sign = a; }
double a
Definition: hdecay.h:119
char m_Sign
Muon&#39;s sign.
Definition: RPCPattern.h:116

◆ setStripFrom()

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

Definition at line 45 of file RPCPattern.cc.

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

Referenced by RPCPattern().

45 { m_Strips[logPlane].m_StripFrom = stripFrom; }
RPCLogicalStrip m_Strips[m_LOGPLANES_COUNT]
LogicalStrip for every LogPlane.
Definition: RPCPattern.h:108
unsigned char m_StripFrom
First strip in range.
Definition: RPCPattern.h:29

◆ setStripTo()

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

Definition at line 47 of file RPCPattern.cc.

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

Referenced by RPCPattern().

47 { m_Strips[logPlane].m_StripTo = stripTo; }
RPCLogicalStrip m_Strips[m_LOGPLANES_COUNT]
LogicalStrip for every LogPlane.
Definition: RPCPattern.h:108
unsigned char m_StripTo
Next-to-last strip in range.
Definition: RPCPattern.h:31

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 getLogSector(), RPCPattern(), and setCoords().

◆ m_LogSegment

char RPCPattern::m_LogSegment
private

Definition at line 113 of file RPCPattern.h.

Referenced by getLogSegment(), 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 getStripFrom(), getStripTo(), setStripFrom(), and setStripTo().

◆ m_Tower

char RPCPattern::m_Tower
private

Definition at line 111 of file RPCPattern.h.

Referenced by getTower(), 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