CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
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; }
char m_LogSegment
Definition: RPCPattern.h:113
void setRefGroup(int refGroup)
Definition: RPCPattern.cc:89
char m_Code
Muons ptCode.
Definition: RPCPattern.h:119
int getStripTo(int logPlane) const
Next-to-last strip in range.
Definition: RPCPattern.cc:55
int getLogSegment() const
Definition: RPCPattern.cc:61
int getLogSector() const
Definition: RPCPattern.cc:60
void setStripTo(int logPlane, int stripTo)
Definition: RPCPattern.cc:47
static const int m_NOT_CONECTED
Definition: RPCPattern.h:60
int getNumber() const
Definition: RPCPattern.cc:67
RPCLogicalStrip m_Strips[m_LOGPLANES_COUNT]
LogicalStrip for every LogPlane.
Definition: RPCPattern.h:108
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
void setPatternType(TPatternType patternType)
Definition: RPCPattern.cc:87
void setCoords(int tower, int sector, int segment)
Definition: RPCPattern.cc:75
char m_LogSector
Definition: RPCPattern.h:112
unsigned char m_StripFrom
First strip in range.
Definition: RPCPattern.h:29
RPCPattern()
Default Constructor. Empty pattern, no muon, all planes m_NOT_CONECTED.
Definition: RPCPattern.cc:9
void setStripFrom(int logPlane, int stripFrom)
Definition: RPCPattern.cc:45
char m_QualityTabNumber
Definition: RPCPattern.h:131
char TPatternType
Definition: RPCPattern.h:54
int getStripFrom(int logPlane) const
First strip in range.
Definition: RPCPattern.cc:50
static const int m_LAST_PLANE
Definition: RPCPattern.h:59
void setNumber(int a)
Definition: RPCPattern.cc:85
void setQualityTabNumber(int qualityTabNumber)
Definition: RPCPattern.cc:91
short m_Number
m_Number of pattern in m_PAC&#39;s patterns set.
Definition: RPCPattern.h:134
int getQualityTabNumber() const
Definition: RPCPattern.cc:73
int getSign() const
Definition: RPCPattern.cc:65
void setSign(int a)
Definition: RPCPattern.cc:83
void setCode(int a)
Definition: RPCPattern.cc:81
int getRefGroup() const
Definition: RPCPattern.cc:71
unsigned char m_StripTo
Next-to-last strip in range.
Definition: RPCPattern.h:31
double a
Definition: hdecay.h:119
TPatternType getPatternType() const
Definition: RPCPattern.cc:69
int getCode() const
Definition: RPCPattern.cc:63
int getTower() const
Definition: RPCPattern.cc:59
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