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
void setDigiIdxVec(const TDigiLinkVec &d)
Definition: RPCMuon.h:83
RPCConst::l1RpcConeCrdnts getConeCrdnts() const
Definition: RPCMuon.cc:53
std::vector< RPCMuon > L1RpcMuonsVec
Definition: RPCMuon.h:111
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:118
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
d
Definition: ztail.py:151
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
std::vector< TDigiLink > TDigiLinkVec
Definition: RPCMuon.h:80
TDigiLinkVec getDigiIdxVec() const
Definition: RPCMuon.h:82
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
TDigiLinkVec m_digiIdxVec
Definition: RPCMuon.h:108
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