CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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, int quality, int sign, int patternNum, unsigned short firedPlanes);
23 
25  RPCMuon(int ptCode, int quality, int sign, int patternNum, unsigned short firedPlanes);
26 
28 
29  void setConeCrdnts(const RPCConst::l1RpcConeCrdnts& coneCrdnts);
30 
31  int getTower() const;
32 
33  int getLogSector() const;
34 
35  int getLogSegment() const;
36 
37  void setPtCode(int ptCode);
38 
39  int getPtCode() const;
40 
41  void setQuality(int quality);
42 
43  int getQuality() const;
44 
45  void setSign(int sign);
46 
47  int getSign() const;
48 
49  int getPatternNum() const;
50 
51  void setPatternNum(int patternNum);
52 
53  void setLogConeIdx(int logConeIdx);
54 
56  int getLogConeIdx() const;
57 
59  unsigned short getFiredPlanes() const;
60 
61  void setRefStripNum(int refStripNum);
62 
68  int getRefStripNum() const;
69 
70 
71  struct TDigiLink {
72  TDigiLink(short int l, short int d) : m_layer(l), m_digiIdx(d) {};
73  short int m_layer;
74  short int m_digiIdx; // vec?
75  };
76 
77  typedef std::vector<TDigiLink > TDigiLinkVec;
78 
81 
82 protected:
85 
87  unsigned int m_PtCode;
88 
90  unsigned int m_Quality;
91 
93  unsigned int m_Sign;
94 
97 
99 
101  unsigned short m_FiredPlanes;
102 
104 
105 
107 
108 };
109 
110 typedef std::vector<RPCMuon> L1RpcMuonsVec;
111 #endif
std::vector< RPCMuon > L1RpcMuonsVec
Definition: RPCMuon.h:110
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
void setDigiIdxVec(TDigiLinkVec d)
Definition: RPCMuon.h:80
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
std::vector< TDigiLink > TDigiLinkVec
Definition: RPCMuon.h:77
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
TDigiLinkVec m_digiIdxVec
Definition: RPCMuon.h:106
int m_LogConeIdx
Definition: RPCMuon.h:98
int getPatternNum() const
Definition: RPCMuon.cc:76
TDigiLinkVec getDigiIdxVec()
Definition: RPCMuon.h:79
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