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
RPCLogCone::getLogStripState
bool getLogStripState(int logPlane, unsigned int logStripNum) const
Definition: RPCLogCone.cc:183
RPCLogCone::shift
void shift(int pos)
Changes fired LogStrips: from "stripNum" to "stripNum + pos".
Definition: RPCLogCone.cc:125
RPCLogCone::m_LogPlanesVec
std::vector< TLogPlane > m_LogPlanesVec
Logic Planes.
Definition: RPCLogCone.h:102
RPCLogCone::m_MuonSign
int m_MuonSign
Definition: RPCLogCone.h:113
RPCLogCone::getTower
int getTower() const
Definition: RPCLogCone.cc:161
RPCLogCone::getIdx
int getIdx() const
Definition: RPCLogCone.cc:171
pos
Definition: PixelAliasList.h:18
hgcalTowerProducer_cfi.tower
tower
Definition: hgcalTowerProducer_cfi.py:4
Validation_hcalonly_cfi.sign
sign
Definition: Validation_hcalonly_cfi.py:32
RPCLogCone::getLogStripDigisIdxs
std::vector< int > getLogStripDigisIdxs(int logPlane, unsigned int logStripNum) const
Definition: RPCLogCone.cc:201
RPCLogCone::addLogHit
bool addLogHit(const RPCLogHit &logHit)
Adds next logHit .
Definition: RPCLogCone.cc:192
RPCLogCone::getCompressedCone
unsigned long long getCompressedCone()
Compresses cone. Throws exception, if there is more than one hit in any logplane.
Definition: RPCLogCone.cc:71
RPCConst.h
RPCLogCone
Definition: RPCLogCone.h:23
RPCLogCone::getFiredPlanesCnt
int getFiredPlanesCnt() const
Definition: RPCLogCone.cc:216
RPCLogHit
Definition: RPCLogHit.h:20
RPCConst::l1RpcConeCrdnts
The coordinates of Logic Cone: m_Tower, m_LogSector, m_LogSegment.
Definition: RPCConst.h:118
RPCLogCone::setMuonCode
void setMuonCode(int code)
sets pt code of muon that fired the strips *‍/
Definition: RPCLogCone.cc:152
RPCLogCone::setIdx
void setIdx(int index)
Definition: RPCLogCone.cc:169
RPCLogCone::getLogSector
int getLogSector() const
Definition: RPCLogCone.cc:163
RPCLogCone::TLogPlane
std::map< int, std::vector< int > > TLogPlane
Definition: RPCLogCone.h:30
RPCLogCone::getLogPlane
TLogPlane getLogPlane(int logPlane) const
Definition: RPCLogCone.cc:146
RPCLogCone::getLogSegment
int getLogSegment() const
Definition: RPCLogCone.cc:165
RPCLogCone::isPlaneFired
bool isPlaneFired(int logPlane) const
Definition: RPCLogCone.cc:209
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
RPCLogCone::getMuonSign
int getMuonSign() const
Definition: RPCLogCone.cc:159
RPCLogCone::m_ConeCrdnts
RPCConst::l1RpcConeCrdnts m_ConeCrdnts
Definition: RPCLogCone.h:109
RPCLogCone::getHitsCnt
int getHitsCnt(int logPlane) const
Gets fired strips count in given logPlane.
Definition: RPCLogCone.cc:149
RPCLogCone::getMuonCode
int getMuonCode() const
Definition: RPCLogCone.cc:155
RPCLogCone::possibleTrigger
int possibleTrigger() const
Definition: RPCLogCone.cc:225
RPCLogCone::setLogStrip
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:173
pat
Definition: HeavyIon.h:7
RPCLogCone::toString
std::string toString() const
Definition: RPCLogCone.cc:95
L1RpcLogConesVec
std::vector< RPCLogCone > L1RpcLogConesVec
Definition: RPCLogCone.h:119
RPCLogCone::m_DigisIdx
std::vector< std::vector< int > > m_DigisIdx
Definition: RPCLogCone.h:107
RPCLogCone::setMuonSign
void setMuonSign(int sign)
Definition: RPCLogCone.cc:157
RPCLogCone::getConeCrdnts
RPCConst::l1RpcConeCrdnts getConeCrdnts() const
Definition: RPCLogCone.cc:167
RPCLogCone::m_Index
int m_Index
m_Index in LogConesVec stored by L1RpcTrigg
Definition: RPCLogCone.h:116
RPCLogCone::RPCLogCone
RPCLogCone()
Default constructor. No hits, no muon.
Definition: RPCLogCone.cc:18
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
RPCLogHit.h
RPCLogCone::m_MuonCode
int m_MuonCode
Definition: RPCLogCone.h:111