#include <RPCLogCone.h>
Public Types | |
typedef std::map< int, std::vector< int > > | TLogPlane |
Public Member Functions | |
bool | addLogHit (const RPCLogHit &logHit) |
Adds next logHit . More... | |
unsigned long long | getCompressedCone () |
Compresses cone. Throws exception, if there is more than one hit in any logplane. More... | |
RPCConst::l1RpcConeCrdnts | getConeCrdnts () const |
int | getFiredPlanesCnt () const |
int | getHitsCnt (int logPlane) const |
Gets fired strips count in given logPlane. More... | |
int | getIdx () const |
TLogPlane | getLogPlane (int logPlane) const |
int | getLogSector () const |
int | getLogSegment () const |
std::vector< int > | getLogStripDigisIdxs (int logPlane, unsigned int logStripNum) const |
bool | getLogStripState (int logPlane, unsigned int logStripNum) const |
int | getMuonCode () const |
int | getMuonSign () const |
int | getTower () const |
bool | isPlaneFired (int logPlane) const |
int | possibleTrigger () const |
RPCLogCone () | |
Default constructor. No hits, no muon. More... | |
RPCLogCone (int m_tower, int logSector, int logSegment) | |
Constructor. Cone coordinates are set. More... | |
RPCLogCone (const RPCLogHit &logHit) | |
Constructor. One hit is added, cone coordinates are set from logHit. More... | |
RPCLogCone (const unsigned long long &pat, int tower, int logSector, int logSegment) | |
Constructor. The cone is built from unsigned long long. More... | |
void | setIdx (int index) |
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. More... | |
void | setLogStrip (int logPlane, int logStripNum) |
Set logic strip as fired. More... | |
void | setMuonCode (int code) |
sets pt code of muon that fired the strips */ More... | |
void | setMuonSign (int sign) |
void | shift (int pos) |
Changes fired LogStrips: from "stripNum" to "stripNum + pos". More... | |
std::string | toString () const |
Private Attributes | |
RPCConst::l1RpcConeCrdnts | m_ConeCrdnts |
std::vector< std::vector< int > > | m_DigisIdx |
int | m_Index |
m_Index in LogConesVec stored by L1RpcTrigg More... | |
std::vector< TLogPlane > | m_LogPlanesVec |
Logic Planes. More... | |
int | m_MuonCode |
int | m_MuonSign |
The input for m_PAC. State of strips in smalest unit of volum in RPC trigger system (Logic Cone), defined by 8 strips of reference plane.
Definition at line 25 of file RPCLogCone.h.
typedef std::map<int, std::vector<int> > RPCLogCone::TLogPlane |
Hits in one Logic Plane, if strips is fired, its number is added to the map as a key. Vector stores the indexes in DigisVec (stored in L1RpcTrigg) of Digis that formed log hits Logic m_Strips are diferent from RPC strips - Logic m_Strips it is usaly OR of 2 RPC strips with diferent eta (but the same phi).
Definition at line 34 of file RPCLogCone.h.
RPCLogCone::RPCLogCone | ( | ) |
Default constructor. No hits, no muon.
Default constructor. No hits, no muon.
Definition at line 19 of file RPCLogCone.cc.
RPCLogCone::RPCLogCone | ( | int | tower, |
int | logSector, | ||
int | logSegment | ||
) |
Constructor. Cone coordinates are set.
Constructor. Cone coordinates are set.
Definition at line 32 of file RPCLogCone.cc.
RPCLogCone::RPCLogCone | ( | const RPCLogHit & | logHit | ) |
Constructor. One hit is added, cone coordinates are set from logHit.
Copying Constructor
Definition at line 44 of file RPCLogCone.cc.
RPCLogCone::RPCLogCone | ( | const unsigned long long & | pat, |
int | tower, | ||
int | logSector, | ||
int | logSegment | ||
) |
Constructor. The cone is built from unsigned long long.
Definition at line 56 of file RPCLogCone.cc.
bool RPCLogCone::addLogHit | ( | const RPCLogHit & | logHit | ) |
unsigned long long RPCLogCone::getCompressedCone | ( | ) |
Compresses cone. Throws exception, if there is more than one hit in any logplane.
Definition at line 80 of file RPCLogCone.cc.
RPCConst::l1RpcConeCrdnts RPCLogCone::getConeCrdnts | ( | ) | const |
Definition at line 194 of file RPCLogCone.cc.
Referenced by RPCTriggerCrate::runCone().
int RPCLogCone::getFiredPlanesCnt | ( | ) | const |
Definition at line 251 of file RPCLogCone.cc.
int RPCLogCone::getHitsCnt | ( | int | logPlane | ) | const |
Gets fired strips count in given logPlane.
Definition at line 174 of file RPCLogCone.cc.
int RPCLogCone::getIdx | ( | ) | const |
Definition at line 198 of file RPCLogCone.cc.
RPCLogCone::TLogPlane RPCLogCone::getLogPlane | ( | int | logPlane | ) | const |
Definition at line 169 of file RPCLogCone.cc.
int RPCLogCone::getLogSector | ( | ) | const |
Definition at line 190 of file RPCLogCone.cc.
int RPCLogCone::getLogSegment | ( | ) | const |
Definition at line 192 of file RPCLogCone.cc.
Referenced by RPCTriggerBoard::runCone().
std::vector< int > RPCLogCone::getLogStripDigisIdxs | ( | int | logPlane, |
unsigned int | logStripNum | ||
) | const |
Get vector of didgis indexes (in digis vector stored by L1RpcTrigg) for given logic strip. If strip was not fired returns empty vector
Definition at line 235 of file RPCLogCone.cc.
bool RPCLogCone::getLogStripState | ( | int | logPlane, |
unsigned int | logStripNum | ||
) | const |
int RPCLogCone::getMuonCode | ( | ) | const |
Definition at line 182 of file RPCLogCone.cc.
int RPCLogCone::getMuonSign | ( | ) | const |
Definition at line 186 of file RPCLogCone.cc.
int RPCLogCone::getTower | ( | ) | const |
Definition at line 188 of file RPCLogCone.cc.
Referenced by RPCTriggerBoard::runCone().
bool RPCLogCone::isPlaneFired | ( | int | logPlane | ) | const |
Definition at line 244 of file RPCLogCone.cc.
int RPCLogCone::possibleTrigger | ( | ) | const |
Definition at line 263 of file RPCLogCone.cc.
void RPCLogCone::setIdx | ( | int | index | ) |
Definition at line 196 of file RPCLogCone.cc.
void RPCLogCone::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 at line 200 of file RPCLogCone.cc.
Referenced by TPatternsGroup::updateShape().
void RPCLogCone::setLogStrip | ( | int | logPlane, |
int | logStripNum | ||
) |
Set logic strip as fired.
Definition at line 206 of file RPCLogCone.cc.
void RPCLogCone::setMuonCode | ( | int | code | ) |
sets pt code of muon that fired the strips */
Definition at line 179 of file RPCLogCone.cc.
void RPCLogCone::setMuonSign | ( | int | sign | ) |
Definition at line 184 of file RPCLogCone.cc.
void RPCLogCone::shift | ( | int | pos | ) |
Changes fired LogStrips: from "stripNum" to "stripNum + pos".
Definition at line 145 of file RPCLogCone.cc.
std::string RPCLogCone::toString | ( | ) | const |
Definition at line 110 of file RPCLogCone.cc.
|
private |
Definition at line 116 of file RPCLogCone.h.
|
private |
Digis that formed log hits in this LogCone, m_DigisIdx[logPlaneNum][i] gets the index in DigisVec stored in L1RpcTrigg
Definition at line 114 of file RPCLogCone.h.
|
private |
m_Index in LogConesVec stored by L1RpcTrigg
Definition at line 123 of file RPCLogCone.h.
|
private |
Logic Planes.
Definition at line 109 of file RPCLogCone.h.
|
private |
Definition at line 118 of file RPCLogCone.h.
|
private |
Definition at line 120 of file RPCLogCone.h.