CMS 3D CMS Logo

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 
19 
21 //------------------------------------------------------------------------------
22 
23 class RPCLogCone {
24 public:
30  typedef std::map<int, std::vector<int> > TLogPlane;
31 
33  RPCLogCone();
34 
36  RPCLogCone(int m_tower, int logSector, int logSegment);
37 
39  RPCLogCone(const RPCLogHit &logHit);
40 
42  RPCLogCone(const unsigned long long &pat, int tower, int logSector, int logSegment);
43 
45  unsigned long long getCompressedCone();
46 
48  bool addLogHit(const RPCLogHit &logHit);
49 
50  TLogPlane getLogPlane(int logPlane) const;
51 
53  int getHitsCnt(int logPlane) const;
54 
56  void setLogStrip(int logPlane, int logStripNum, int m_digiIdx);
57 
59  void setLogStrip(int logPlane, int logStripNum);
60 
62  bool getLogStripState(int logPlane, unsigned int logStripNum) const;
63 
66  std::vector<int> getLogStripDigisIdxs(int logPlane, unsigned int logStripNum) const;
67 
68  void setMuonCode(int code);
69 
70  int getMuonCode() const;
71 
72  void setMuonSign(int sign);
73 
74  int getMuonSign() const;
75 
77  void shift(int pos);
78 
79  bool isPlaneFired(int logPlane) const;
80 
81  int getFiredPlanesCnt() const;
82 
84  int possibleTrigger() const;
85 
86  int getTower() const;
87 
88  int getLogSector() const;
89 
90  int getLogSegment() const;
91 
93 
94  void setIdx(int index);
95 
96  int getIdx() const;
97 
98  std::string toString() const;
99 
100 private:
102  std::vector<TLogPlane> m_LogPlanesVec;
103 
107  std::vector<std::vector<int> > m_DigisIdx;
108 
110 
112 
114 
116  int m_Index;
117 };
118 
119 typedef std::vector<RPCLogCone> L1RpcLogConesVec;
120 #endif
int getLogSegment() const
Definition: RPCLogCone.cc:166
std::map< int, std::vector< int > > TLogPlane
Definition: RPCLogCone.h:30
The coordinates of Logic Cone: m_Tower, m_LogSector, m_LogSegment.
Definition: RPCConst.h:118
std::string toString() const
Definition: RPCLogCone.cc:96
RPCLogCone()
Default constructor. No hits, no muon.
Definition: RPCLogCone.cc:19
void setMuonSign(int sign)
Definition: RPCLogCone.cc:158
void setMuonCode(int code)
sets pt code of muon that fired the strips */
Definition: RPCLogCone.cc:153
void shift(int pos)
Changes fired LogStrips: from "stripNum" to "stripNum + pos".
Definition: RPCLogCone.cc:126
TLogPlane getLogPlane(int logPlane) const
Definition: RPCLogCone.cc:147
int getHitsCnt(int logPlane) const
Gets fired strips count in given logPlane.
Definition: RPCLogCone.cc:150
int getIdx() const
Definition: RPCLogCone.cc:172
Definition: HeavyIon.h:7
int getMuonSign() const
Definition: RPCLogCone.cc:160
RPCConst::l1RpcConeCrdnts m_ConeCrdnts
Definition: RPCLogCone.h:109
std::vector< std::vector< int > > m_DigisIdx
Definition: RPCLogCone.h:107
bool getLogStripState(int logPlane, unsigned int logStripNum) const
Definition: RPCLogCone.cc:184
RPCConst::l1RpcConeCrdnts getConeCrdnts() const
Definition: RPCLogCone.cc:168
int getFiredPlanesCnt() const
Definition: RPCLogCone.cc:217
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:174
void setIdx(int index)
Definition: RPCLogCone.cc:170
bool addLogHit(const RPCLogHit &logHit)
Adds next logHit .
Definition: RPCLogCone.cc:193
std::vector< TLogPlane > m_LogPlanesVec
Logic Planes.
Definition: RPCLogCone.h:102
int m_MuonCode
Definition: RPCLogCone.h:111
int m_MuonSign
Definition: RPCLogCone.h:113
std::vector< int > getLogStripDigisIdxs(int logPlane, unsigned int logStripNum) const
Definition: RPCLogCone.cc:202
unsigned long long getCompressedCone()
Compresses cone. Throws exception, if there is more than one hit in any logplane. ...
Definition: RPCLogCone.cc:72
int getTower() const
Definition: RPCLogCone.cc:162
int getMuonCode() const
Definition: RPCLogCone.cc:156
int possibleTrigger() const
Definition: RPCLogCone.cc:226
int getLogSector() const
Definition: RPCLogCone.cc:164
int m_Index
m_Index in LogConesVec stored by L1RpcTrigg
Definition: RPCLogCone.h:116
std::vector< RPCLogCone > L1RpcLogConesVec
Definition: RPCLogCone.h:119
bool isPlaneFired(int logPlane) const
Definition: RPCLogCone.cc:210