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; }
RPCMuon::setLogConeIdx
void setLogConeIdx(int logConeIdx)
Definition: RPCMuon.cc:79
RPCMuon::m_Quality
unsigned int m_Quality
3 bits, 0-7.
Definition: RPCMuon.h:93
RPCMuon::getPatternNum
int getPatternNum() const
Definition: RPCMuon.cc:75
RPCMuon.h
RPCConst::l1RpcConeCrdnts::m_Tower
int m_Tower
Definition: RPCConst.h:119
RPCMuon::getPtCode
int getPtCode() const
Definition: RPCMuon.cc:65
RPCMuon::getRefStripNum
int getRefStripNum() const
Definition: RPCMuon.cc:94
RPCMuon::setPtCode
void setPtCode(int ptCode)
Definition: RPCMuon.cc:63
Validation_hcalonly_cfi.sign
sign
Definition: Validation_hcalonly_cfi.py:32
RPCMuon::setQuality
void setQuality(int quality)
Definition: RPCMuon.cc:67
RPCMuon::getLogConeIdx
int getLogConeIdx() const
the index in LogConesVec stored in L1RpcTrigg (accessed by GetActiveCones)
Definition: RPCMuon.cc:82
RPCConst::l1RpcConeCrdnts
The coordinates of Logic Cone: m_Tower, m_LogSector, m_LogSegment.
Definition: RPCConst.h:118
RPCMuon::m_LogConeIdx
int m_LogConeIdx
Definition: RPCMuon.h:101
RPCMuon::m_ConeCrdnts
RPCConst::l1RpcConeCrdnts m_ConeCrdnts
The coordinates of LogCone, in which the muon was found.
Definition: RPCMuon.h:83
RPCMuon::getLogSector
int getLogSector() const
Definition: RPCMuon.cc:59
RPCMuon::getFiredPlanes
unsigned short getFiredPlanes() const
bits of this number denotes fired planes that conform to pattern pattern
Definition: RPCMuon.cc:85
RPCMuon::getConeCrdnts
RPCConst::l1RpcConeCrdnts getConeCrdnts() const
Definition: RPCMuon.cc:53
RPCMuon::RPCMuon
RPCMuon()
Default constructor. No muon.
Definition: RPCMuon.cc:9
RPCConst::l1RpcConeCrdnts::m_LogSegment
int m_LogSegment
Definition: RPCConst.h:121
RPCMuon::setConeCrdnts
void setConeCrdnts(const RPCConst::l1RpcConeCrdnts &coneCrdnts)
Definition: RPCMuon.cc:55
RPCMuon::m_RefStripNum
int m_RefStripNum
Definition: RPCMuon.h:106
RPCMuon::getQuality
int getQuality() const
Definition: RPCMuon.cc:69
RPCMuon::getSign
int getSign() const
Definition: RPCMuon.cc:73
RPCMuon::setPatternNum
void setPatternNum(int patternNum)
Definition: RPCMuon.cc:77
RPCMuon::setSign
void setSign(int sign)
Definition: RPCMuon.cc:71
qcdUeDQM_cfi.quality
quality
Definition: qcdUeDQM_cfi.py:31
RPCMuon::getTower
int getTower() const
Definition: RPCMuon.cc:57
RPCMuon::setRefStripNum
void setRefStripNum(int refStripNum)
Definition: RPCMuon.cc:87
RPCMuon::m_FiredPlanes
unsigned short m_FiredPlanes
bits of this number denotes fired planes that conform to pattern pattern
Definition: RPCMuon.h:104
RPCConst::l1RpcConeCrdnts::m_LogSector
int m_LogSector
Definition: RPCConst.h:120
RPCMuon::m_Sign
unsigned int m_Sign
1 bit, 0 - negative, 1 - positive.
Definition: RPCMuon.h:96
RPCMuon::m_PtCode
unsigned int m_PtCode
5 bits, 0-31.
Definition: RPCMuon.h:90
RPCMuon::m_PatternNum
int m_PatternNum
number of pattern (in given Pac), that was fit to this muon.
Definition: RPCMuon.h:99
RPCMuon::getLogSegment
int getLogSegment() const
Definition: RPCMuon.cc:61