CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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) {
46  m_Strips[logPlane].m_StripFrom = stripFrom;
47 }
48 
49 void RPCPattern::setStripTo(int logPlane, int stripTo) { m_Strips[logPlane].m_StripTo = stripTo; }
50 
52 int RPCPattern::getStripFrom(int logPlane) const { //logic srtip
53  return m_Strips[logPlane].m_StripFrom;
54 }
55 
57 int RPCPattern::getStripTo(int logPlane) const { //logic srtip
58  return m_Strips[logPlane].m_StripTo;
59 }
60 
61 int RPCPattern::getTower() const{ return m_Tower; }
62 int RPCPattern::getLogSector() const{ return m_LogSector; }
64 
65 int RPCPattern::getCode() const{ return m_Code; }
66 
67 int RPCPattern::getSign() const{ return m_Sign; }
68 
69 int RPCPattern::getNumber() const{ return m_Number; }
70 
72 
73 int RPCPattern::getRefGroup() const { return m_RefGroup; }
74 
76 
77 void RPCPattern::setCoords(int tower, int sector, int segment) {
78  m_Tower = tower;
79  m_LogSector = sector;
80  m_LogSegment = segment;
81 }
82 
83 void RPCPattern::setCode(int a) { m_Code = a;}
84 
85 void RPCPattern::setSign(int a) { m_Sign = a;}
86 
88 
89 void RPCPattern::setPatternType(TPatternType patternType) { m_PatternType = patternType;}
90 
91 void RPCPattern::setRefGroup(int refGroup) { m_RefGroup = refGroup; }
92 
93 void RPCPattern::setQualityTabNumber(int qualityTabNumber) { m_QualityTabNumber = qualityTabNumber;}
char m_LogSegment
Definition: RPCPattern.h:110
void setRefGroup(int refGroup)
Definition: RPCPattern.cc:91
char m_Code
Muons ptCode.
Definition: RPCPattern.h:116
int getStripTo(int logPlane) const
Next-to-last strip in range.
Definition: RPCPattern.cc:57
int getLogSegment() const
Definition: RPCPattern.cc:63
int getLogSector() const
Definition: RPCPattern.cc:62
void setStripTo(int logPlane, int stripTo)
Definition: RPCPattern.cc:49
static const int m_NOT_CONECTED
Definition: RPCPattern.h:56
int getNumber() const
Definition: RPCPattern.cc:69
RPCLogicalStrip m_Strips[m_LOGPLANES_COUNT]
LogicalStrip for every LogPlane.
Definition: RPCPattern.h:105
char m_RefGroup
If pattern is of type PAT_TYPE_E, denotes the index of group to which this pattern belongs...
Definition: RPCPattern.h:124
void setPatternType(TPatternType patternType)
Definition: RPCPattern.cc:89
void setCoords(int tower, int sector, int segment)
Definition: RPCPattern.cc:77
char m_LogSector
Definition: RPCPattern.h:109
unsigned char m_StripFrom
First strip in range.
Definition: RPCPattern.h:27
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:128
char TPatternType
Definition: RPCPattern.h:50
int getStripFrom(int logPlane) const
First strip in range.
Definition: RPCPattern.cc:52
static const int m_LAST_PLANE
Definition: RPCPattern.h:55
void setNumber(int a)
Definition: RPCPattern.cc:87
void setQualityTabNumber(int qualityTabNumber)
Definition: RPCPattern.cc:93
short m_Number
m_Number of pattern in m_PAC&#39;s patterns set.
Definition: RPCPattern.h:131
int getQualityTabNumber() const
Definition: RPCPattern.cc:75
int getSign() const
Definition: RPCPattern.cc:67
void setSign(int a)
Definition: RPCPattern.cc:85
void setCode(int a)
Definition: RPCPattern.cc:83
int getRefGroup() const
Definition: RPCPattern.cc:73
unsigned char m_StripTo
Next-to-last strip in range.
Definition: RPCPattern.h:29
double a
Definition: hdecay.h:121
TPatternType getPatternType() const
Definition: RPCPattern.cc:71
int getCode() const
Definition: RPCPattern.cc:65
int getTower() const
Definition: RPCPattern.cc:61
static const int m_FIRST_PLANE
Definition: RPCPattern.h:54
TPatternType m_PatternType
Definition: RPCPattern.h:121
char m_Sign
Muon&#39;s sign.
Definition: RPCPattern.h:113
char m_Tower
Definition: RPCPattern.h:108