CMS 3D CMS Logo

RPCMuon.cc
Go to the documentation of this file.
2 //---------------------------------------------------------------------------
3 
4 //#############################################################################################
5 //
7 //
8 //#############################################################################################
10  m_PtCode = 0;
11  m_Quality = 0;
12  m_Sign = 0;
13 
14  m_PatternNum = -1;
15  m_RefStripNum = -1;
16 }
17 //#############################################################################################
18 //
20 //
21 //#############################################################################################
23  int ptCode,
24  int quality,
25  int sign,
26  int patternNum,
27  unsigned short firedPlanes) {
28  m_ConeCrdnts = coneCrdnts;
29  m_PtCode = ptCode;
31  m_Sign = sign;
32  m_PatternNum = patternNum;
33  m_FiredPlanes = firedPlanes;
34 }
35 //#############################################################################################
36 //
38 //
39 //#############################################################################################
40 RPCMuon::RPCMuon(int ptCode, int quality, int sign, int patternNum, unsigned short firedPlanes) {
42  m_PtCode = ptCode;
44  m_Sign = sign;
45  m_PatternNum = patternNum;
46  m_FiredPlanes = firedPlanes;
47 }
48 //#############################################################################################
49 //
50 // Simple getters and setters
51 //
52 //#############################################################################################
54 
55 void RPCMuon::setConeCrdnts(const RPCConst::l1RpcConeCrdnts& coneCrdnts) { m_ConeCrdnts = coneCrdnts; }
56 
57 int RPCMuon::getTower() const { return m_ConeCrdnts.m_Tower; }
58 
60 
62 
63 void RPCMuon::setPtCode(int ptCode) { m_PtCode = ptCode; }
64 
65 int RPCMuon::getPtCode() const { return m_PtCode; }
66 
68 
69 int RPCMuon::getQuality() const { return m_Quality; }
70 
71 void RPCMuon::setSign(int sign) { m_Sign = sign; }
72 
73 int RPCMuon::getSign() const { return m_Sign; }
74 
75 int RPCMuon::getPatternNum() const { return m_PatternNum; }
76 
77 void RPCMuon::setPatternNum(int patternNum) { m_PatternNum = patternNum; }
78 
79 void RPCMuon::setLogConeIdx(int logConeIdx) { m_LogConeIdx = logConeIdx; }
80 
82 int RPCMuon::getLogConeIdx() const { return m_LogConeIdx; }
83 
85 unsigned short RPCMuon::getFiredPlanes() const { return m_FiredPlanes; }
86 
87 void RPCMuon::setRefStripNum(int refStripNum) { m_RefStripNum = refStripNum; }
88 
94 int RPCMuon::getRefStripNum() const { return m_RefStripNum; }
RPCConst::l1RpcConeCrdnts getConeCrdnts() const
Definition: RPCMuon.cc:53
RPCMuon()
Default constructor. No muon.
Definition: RPCMuon.cc:9
unsigned short getFiredPlanes() const
bits of this number denotes fired planes that conform to pattern pattern
Definition: RPCMuon.cc:85
The coordinates of Logic Cone: m_Tower, m_LogSector, m_LogSegment.
Definition: RPCConst.h:117
unsigned short m_FiredPlanes
bits of this number denotes fired planes that conform to pattern pattern
Definition: RPCMuon.h:104
int getRefStripNum() const
Definition: RPCMuon.cc:94
unsigned int m_PtCode
5 bits, 0-31.
Definition: RPCMuon.h:90
unsigned int m_Sign
1 bit, 0 - negative, 1 - positive.
Definition: RPCMuon.h:96
string quality
int m_PatternNum
number of pattern (in given Pac), that was fit to this muon.
Definition: RPCMuon.h:99
RPCConst::l1RpcConeCrdnts m_ConeCrdnts
The coordinates of LogCone, in which the muon was found.
Definition: RPCMuon.h:83
int getTower() const
Definition: RPCMuon.cc:57
int m_RefStripNum
Definition: RPCMuon.h:106
int getLogSegment() const
Definition: RPCMuon.cc:61
void setConeCrdnts(const RPCConst::l1RpcConeCrdnts &coneCrdnts)
Definition: RPCMuon.cc:55
void setQuality(int quality)
Definition: RPCMuon.cc:67
int getSign() const
Definition: RPCMuon.cc:73
void setLogConeIdx(int logConeIdx)
Definition: RPCMuon.cc:79
int getLogConeIdx() const
the index in LogConesVec stored in L1RpcTrigg (accessed by GetActiveCones)
Definition: RPCMuon.cc:82
void setPtCode(int ptCode)
Definition: RPCMuon.cc:63
void setPatternNum(int patternNum)
Definition: RPCMuon.cc:77
int getPtCode() const
Definition: RPCMuon.cc:65
int getQuality() const
Definition: RPCMuon.cc:69
void setRefStripNum(int refStripNum)
Definition: RPCMuon.cc:87
int m_LogConeIdx
Definition: RPCMuon.h:101
int getLogSector() const
Definition: RPCMuon.cc:59
unsigned int m_Quality
3 bits, 0-7.
Definition: RPCMuon.h:93
void setSign(int sign)
Definition: RPCMuon.cc:71
int getPatternNum() const
Definition: RPCMuon.cc:75