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, int quality, int sign,
24  int patternNum, unsigned short firedPlanes)
25 {
26  m_ConeCrdnts = coneCrdnts;
27  m_PtCode = ptCode;
29  m_Sign = sign;
30  m_PatternNum = patternNum;
31  m_FiredPlanes = firedPlanes;
32 }
33 //#############################################################################################
34 //
36 //
37 //#############################################################################################
38 RPCMuon::RPCMuon(int ptCode, int quality, int sign, int patternNum, unsigned short firedPlanes) {
39 
41  m_PtCode = ptCode;
43  m_Sign = sign;
44  m_PatternNum = patternNum;
45  m_FiredPlanes = firedPlanes;
46 }
47 //#############################################################################################
48 //
49 // Simple getters and setters
50 //
51 //#############################################################################################
53 
55  m_ConeCrdnts = coneCrdnts;
56 }
57 
58 int RPCMuon::getTower() const { return m_ConeCrdnts.m_Tower;}
59 
61 
63 
64 void RPCMuon::setPtCode(int ptCode) { m_PtCode = ptCode; }
65 
66 int RPCMuon::getPtCode() const { return m_PtCode; }
67 
69 
70 int RPCMuon::getQuality() const { return m_Quality; }
71 
72 void RPCMuon::setSign(int sign) { m_Sign = sign; }
73 
74 int RPCMuon::getSign() const { return m_Sign; }
75 
76 int RPCMuon::getPatternNum() const { return m_PatternNum; }
77 
78 void RPCMuon::setPatternNum(int patternNum) { m_PatternNum = patternNum; }
79 
80 void RPCMuon::setLogConeIdx(int logConeIdx) { m_LogConeIdx = logConeIdx; }
81 
83 int RPCMuon::getLogConeIdx() const { return m_LogConeIdx; }
84 
86 unsigned short RPCMuon::getFiredPlanes() const { return m_FiredPlanes; }
87 
88 void RPCMuon::setRefStripNum(int refStripNum) { m_RefStripNum = refStripNum; }
89 
95 int RPCMuon::getRefStripNum() const { return m_RefStripNum; }
RPCMuon()
Default constructor. No muon.
Definition: RPCMuon.cc:9
The coordinates of Logic Cone: m_Tower, m_LogSector, m_LogSegment.
Definition: RPCConst.h:119
int getQuality() const
Definition: RPCMuon.cc:70
unsigned short m_FiredPlanes
bits of this number denotes fired planes that conform to pattern pattern
Definition: RPCMuon.h:101
int getPtCode() const
Definition: RPCMuon.cc:66
unsigned short getFiredPlanes() const
bits of this number denotes fired planes that conform to pattern pattern
Definition: RPCMuon.cc:86
unsigned int m_PtCode
5 bits, 0-31.
Definition: RPCMuon.h:87
unsigned int m_Sign
1 bit, 0 - negative, 1 - positive.
Definition: RPCMuon.h:93
int m_PatternNum
number of pattern (in given Pac), that was fit to this muon.
Definition: RPCMuon.h:96
RPCConst::l1RpcConeCrdnts m_ConeCrdnts
The coordinates of LogCone, in which the muon was found.
Definition: RPCMuon.h:80
int m_RefStripNum
Definition: RPCMuon.h:103
RPCConst::l1RpcConeCrdnts getConeCrdnts() const
Definition: RPCMuon.cc:52
int getLogSector() const
Definition: RPCMuon.cc:60
int getLogSegment() const
Definition: RPCMuon.cc:62
void setConeCrdnts(const RPCConst::l1RpcConeCrdnts &coneCrdnts)
Definition: RPCMuon.cc:54
void setQuality(int quality)
Definition: RPCMuon.cc:68
int getRefStripNum() const
Definition: RPCMuon.cc:95
void setLogConeIdx(int logConeIdx)
Definition: RPCMuon.cc:80
void setPtCode(int ptCode)
Definition: RPCMuon.cc:64
int getTower() const
Definition: RPCMuon.cc:58
void setPatternNum(int patternNum)
Definition: RPCMuon.cc:78
void setRefStripNum(int refStripNum)
Definition: RPCMuon.cc:88
int getLogConeIdx() const
the index in LogConesVec stored in L1RpcTrigg (accessed by GetActiveCones)
Definition: RPCMuon.cc:83
int m_LogConeIdx
Definition: RPCMuon.h:98
int getPatternNum() const
Definition: RPCMuon.cc:76
unsigned int m_Quality
3 bits, 0-7.
Definition: RPCMuon.h:90
int getSign() const
Definition: RPCMuon.cc:74
void setSign(int sign)
Definition: RPCMuon.cc:72