CMS 3D CMS Logo

RPCPattern.cc
Go to the documentation of this file.
1 /*******************************************************************************
2 * *
3 * Karol Bunkowski *
4 * Warsaw University 2002 *
5 * *
6 *******************************************************************************/
8 
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 }
26 
27 RPCPattern::RPCPattern(int tower, int sector, int segment) {
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
43 }
44 
45 void RPCPattern::setStripFrom(int logPlane, int stripFrom) { m_Strips[logPlane].m_StripFrom = stripFrom; }
46 
47 void RPCPattern::setStripTo(int logPlane, int stripTo) { m_Strips[logPlane].m_StripTo = stripTo; }
48 
50 int RPCPattern::getStripFrom(int logPlane) const { //logic srtip
51  return m_Strips[logPlane].m_StripFrom;
52 }
53 
55 int RPCPattern::getStripTo(int logPlane) const { //logic srtip
56  return m_Strips[logPlane].m_StripTo;
57 }
58 
59 int RPCPattern::getTower() const { return m_Tower; }
60 int RPCPattern::getLogSector() const { return m_LogSector; }
61 int RPCPattern::getLogSegment() const { return m_LogSegment; }
62 
63 int RPCPattern::getCode() const { return m_Code; }
64 
65 int RPCPattern::getSign() const { return m_Sign; }
66 
67 int RPCPattern::getNumber() const { return m_Number; }
68 
70 
71 int RPCPattern::getRefGroup() const { return m_RefGroup; }
72 
74 
75 void RPCPattern::setCoords(int tower, int sector, int segment) {
76  m_Tower = tower;
77  m_LogSector = sector;
78  m_LogSegment = segment;
79 }
80 
81 void RPCPattern::setCode(int a) { m_Code = a; }
82 
83 void RPCPattern::setSign(int a) { m_Sign = a; }
84 
85 void RPCPattern::setNumber(int a) { m_Number = a; }
86 
87 void RPCPattern::setPatternType(TPatternType patternType) { m_PatternType = patternType; }
88 
89 void RPCPattern::setRefGroup(int refGroup) { m_RefGroup = refGroup; }
90 
91 void RPCPattern::setQualityTabNumber(int qualityTabNumber) { m_QualityTabNumber = qualityTabNumber; }
RPCPattern::m_QualityTabNumber
char m_QualityTabNumber
Definition: RPCPattern.h:131
RPCPattern::TPatternType
char TPatternType
Definition: RPCPattern.h:54
RPCPattern::setSign
void setSign(int a)
Definition: RPCPattern.cc:82
RPCPattern::getCode
int getCode() const
Definition: RPCPattern.cc:62
RPCPattern::setCode
void setCode(int a)
Definition: RPCPattern.cc:80
hgcalTowerProducer_cfi.tower
tower
Definition: hgcalTowerProducer_cfi.py:4
RPCPattern::getStripTo
int getStripTo(int logPlane) const
Next-to-last strip in range.
Definition: RPCPattern.cc:54
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::getLogSegment
int getLogSegment() const
Definition: RPCPattern.cc:60
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::setRefGroup
void setRefGroup(int refGroup)
Definition: RPCPattern.cc:88
a
double a
Definition: hdecay.h:119
RPCPattern::setStripTo
void setStripTo(int logPlane, int stripTo)
Definition: RPCPattern.cc:46
RPCPattern::getStripFrom
int getStripFrom(int logPlane) const
First strip in range.
Definition: RPCPattern.cc:49
RPCPattern::getSign
int getSign() const
Definition: RPCPattern.cc:64
RPCPattern::m_Strips
RPCLogicalStrip m_Strips[m_LOGPLANES_COUNT]
LogicalStrip for every LogPlane.
Definition: RPCPattern.h:108
RPCPattern::setCoords
void setCoords(int tower, int sector, int segment)
Definition: RPCPattern.cc:74
RPCPattern::m_Tower
char m_Tower
Definition: RPCPattern.h:111
RPCPattern::getQualityTabNumber
int getQualityTabNumber() const
Definition: RPCPattern.cc:72
RPCPattern::getRefGroup
int getRefGroup() const
Definition: RPCPattern.cc:70
RPCPattern.h
RPCPattern::getNumber
int getNumber() const
Definition: RPCPattern.cc:66
RPCPattern::setPatternType
void setPatternType(TPatternType patternType)
Definition: RPCPattern.cc:86
RPCPattern::m_Code
char m_Code
Muons ptCode.
Definition: RPCPattern.h:119
RPCPattern::getLogSector
int getLogSector() const
Definition: RPCPattern.cc:59
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::getTower
int getTower() const
Definition: RPCPattern.cc:58
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::setNumber
void setNumber(int a)
Definition: RPCPattern.cc:84
RPCPattern::getPatternType
TPatternType getPatternType() const
Definition: RPCPattern.cc:68
RPCPattern::m_LogSector
char m_LogSector
Definition: RPCPattern.h:112
RPCPattern::setQualityTabNumber
void setQualityTabNumber(int qualityTabNumber)
Definition: RPCPattern.cc:90
RPCPattern::RPCPattern
RPCPattern()
Default Constructor. Empty pattern, no muon, all planes m_NOT_CONECTED.
Definition: RPCPattern.cc:8