CMS 3D CMS Logo

RPCMuon.h
Go to the documentation of this file.
1 #ifndef L1Trigger_RPCMuon_h
2 #define L1Trigger_RPCMuon_h
3 
13 #include <vector>
14 //---------------------------------------------------------------------------
15 class RPCMuon {
16 public:
18  RPCMuon();
19 
21  RPCMuon(const RPCConst::l1RpcConeCrdnts coneCrdnts,
22  int ptCode,
23  int quality,
24  int sign,
25  int patternNum,
26  unsigned short firedPlanes);
27 
29  RPCMuon(int ptCode, int quality, int sign, int patternNum, unsigned short firedPlanes);
30 
32 
33  void setConeCrdnts(const RPCConst::l1RpcConeCrdnts& coneCrdnts);
34 
35  int getTower() const;
36 
37  int getLogSector() const;
38 
39  int getLogSegment() const;
40 
41  void setPtCode(int ptCode);
42 
43  int getPtCode() const;
44 
45  void setQuality(int quality);
46 
47  int getQuality() const;
48 
49  void setSign(int sign);
50 
51  int getSign() const;
52 
53  int getPatternNum() const;
54 
55  void setPatternNum(int patternNum);
56 
57  void setLogConeIdx(int logConeIdx);
58 
60  int getLogConeIdx() const;
61 
63  unsigned short getFiredPlanes() const;
64 
65  void setRefStripNum(int refStripNum);
66 
72  int getRefStripNum() const;
73 
74  struct TDigiLink {
75  TDigiLink(short int l, short int d) : m_layer(l), m_digiIdx(d){};
76  short int m_layer;
77  short int m_digiIdx; // vec?
78  };
79 
80  typedef std::vector<TDigiLink> TDigiLinkVec;
81 
83  void setDigiIdxVec(const TDigiLinkVec& d) { m_digiIdxVec = d; };
84 
85 protected:
88 
90  unsigned int m_PtCode;
91 
93  unsigned int m_Quality;
94 
96  unsigned int m_Sign;
97 
100 
102 
104  unsigned short m_FiredPlanes;
105 
107 
109 };
110 
111 typedef std::vector<RPCMuon> L1RpcMuonsVec;
112 #endif
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::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.h
RPCMuon::getDigiIdxVec
TDigiLinkVec getDigiIdxVec() const
Definition: RPCMuon.h:82
quality
const uint32_t *__restrict__ Quality * quality
Definition: CAHitNtupletGeneratorKernelsImpl.h:122
RPCMuon::m_digiIdxVec
TDigiLinkVec m_digiIdxVec
Definition: RPCMuon.h:108
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
RPCMuon::setConeCrdnts
void setConeCrdnts(const RPCConst::l1RpcConeCrdnts &coneCrdnts)
Definition: RPCMuon.cc:55
RPCMuon
Definition: RPCMuon.h:15
RPCMuon::m_RefStripNum
int m_RefStripNum
Definition: RPCMuon.h:106
RPCMuon::getQuality
int getQuality() const
Definition: RPCMuon.cc:69
cmsLHEtoEOSManager.l
l
Definition: cmsLHEtoEOSManager.py:204
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
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
RPCMuon::TDigiLinkVec
std::vector< TDigiLink > TDigiLinkVec
Definition: RPCMuon.h:80
ztail.d
d
Definition: ztail.py:151
RPCMuon::setDigiIdxVec
void setDigiIdxVec(const TDigiLinkVec &d)
Definition: RPCMuon.h:83
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
L1RpcMuonsVec
std::vector< RPCMuon > L1RpcMuonsVec
Definition: RPCMuon.h:111