test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RPCLogCone.h
Go to the documentation of this file.
1 #ifndef L1Trigger_RPCLogCone_h
2 #define L1Trigger_RPCLogCone_h
3 
13 #include <vector>
14 #include <string>
15 #include <set>
16 #include <map>
17 
18 
19 
21 
23 //------------------------------------------------------------------------------
24 
25 class RPCLogCone {
26 public:
27 
28 
34  typedef std::map<int, std::vector<int> > TLogPlane;
35 
37  RPCLogCone();
38 
40  RPCLogCone(int m_tower, int logSector, int logSegment);
41 
43  RPCLogCone(const RPCLogHit &logHit);
44 
46  RPCLogCone(const unsigned long long &pat, int tower, int logSector, int logSegment);
47 
49  unsigned long long getCompressedCone();
50 
52  bool addLogHit(const RPCLogHit &logHit);
53 
54  TLogPlane getLogPlane(int logPlane) const;
55 
57  int getHitsCnt(int logPlane) const;
58 
60  void setLogStrip(int logPlane, int logStripNum, int m_digiIdx);
61 
63  void setLogStrip(int logPlane, int logStripNum);
64 
66  bool getLogStripState(int logPlane, unsigned int logStripNum) const;
67 
70  std::vector<int> getLogStripDigisIdxs(int logPlane, unsigned int logStripNum) const;
71 
72  void setMuonCode(int code);
73 
74  int getMuonCode() const;
75 
76  void setMuonSign(int sign);
77 
78  int getMuonSign() const;
79 
81  void shift(int pos);
82 
83  bool isPlaneFired(int logPlane) const;
84 
85  int getFiredPlanesCnt() const;
86 
88  int possibleTrigger() const;
89 
90  int getTower() const;
91 
92  int getLogSector() const;
93 
94  int getLogSegment() const;
95 
97 
98  void setIdx(int index);
99 
100  int getIdx() const;
101 
102  std::string toString() const;
103 
104 
105 
106 
107 private:
109  std::vector<TLogPlane> m_LogPlanesVec;
110 
114  std::vector<std::vector<int> > m_DigisIdx;
115 
117 
119 
121 
123  int m_Index;
124 };
125 
126 typedef std::vector<RPCLogCone> L1RpcLogConesVec;
127 #endif
128 
std::map< int, std::vector< int > > TLogPlane
Definition: RPCLogCone.h:34
The coordinates of Logic Cone: m_Tower, m_LogSector, m_LogSegment.
Definition: RPCConst.h:119
int getMuonCode() const
Definition: RPCLogCone.cc:182
bool getLogStripState(int logPlane, unsigned int logStripNum) const
Definition: RPCLogCone.cc:211
RPCLogCone()
Default constructor. No hits, no muon.
Definition: RPCLogCone.cc:19
void setMuonSign(int sign)
Definition: RPCLogCone.cc:184
void setMuonCode(int code)
sets pt code of muon that fired the strips */
Definition: RPCLogCone.cc:179
void shift(int pos)
Changes fired LogStrips: from &quot;stripNum&quot; to &quot;stripNum + pos&quot;.
Definition: RPCLogCone.cc:145
std::string toString() const
Definition: RPCLogCone.cc:110
int getLogSegment() const
Definition: RPCLogCone.cc:192
bool isPlaneFired(int logPlane) const
Definition: RPCLogCone.cc:244
int getFiredPlanesCnt() const
Definition: RPCLogCone.cc:251
RPCConst::l1RpcConeCrdnts m_ConeCrdnts
Definition: RPCLogCone.h:116
TLogPlane getLogPlane(int logPlane) const
Definition: RPCLogCone.cc:169
std::vector< std::vector< int > > m_DigisIdx
Definition: RPCLogCone.h:114
int getTower() const
Definition: RPCLogCone.cc:188
int getMuonSign() const
Definition: RPCLogCone.cc:186
int getIdx() const
Definition: RPCLogCone.cc:198
int getHitsCnt(int logPlane) const
Gets fired strips count in given logPlane.
Definition: RPCLogCone.cc:174
int getLogSector() const
Definition: RPCLogCone.cc:190
void setLogStrip(int logPlane, int logStripNum, int m_digiIdx)
Set logic strip as fired. m_digiIdx - index of digi in digis vector stored by L1RpcTrigg.
Definition: RPCLogCone.cc:200
void setIdx(int index)
Definition: RPCLogCone.cc:196
bool addLogHit(const RPCLogHit &logHit)
Adds next logHit .
Definition: RPCLogCone.cc:221
std::vector< TLogPlane > m_LogPlanesVec
Logic Planes.
Definition: RPCLogCone.h:109
int m_MuonCode
Definition: RPCLogCone.h:118
int m_MuonSign
Definition: RPCLogCone.h:120
RPCConst::l1RpcConeCrdnts getConeCrdnts() const
Definition: RPCLogCone.cc:194
unsigned long long getCompressedCone()
Compresses cone. Throws exception, if there is more than one hit in any logplane. ...
Definition: RPCLogCone.cc:80
std::vector< int > getLogStripDigisIdxs(int logPlane, unsigned int logStripNum) const
Definition: RPCLogCone.cc:235
int possibleTrigger() const
Definition: RPCLogCone.cc:263
int m_Index
m_Index in LogConesVec stored by L1RpcTrigg
Definition: RPCLogCone.h:123
std::vector< RPCLogCone > L1RpcLogConesVec
Definition: RPCLogCone.h:126