#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 23 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 30 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.
References RPCConst::m_LOGPLANES_COUNT, m_LogPlanesVec, m_MuonCode, and m_MuonSign.
RPCLogCone::RPCLogCone | ( | int | tower, |
int | logSector, | ||
int | logSegment | ||
) |
Constructor. Cone coordinates are set.
Constructor. Cone coordinates are set.
Definition at line 30 of file RPCLogCone.cc.
References RPCConst::m_LOGPLANES_COUNT, m_LogPlanesVec, m_MuonCode, and m_MuonSign.
RPCLogCone::RPCLogCone | ( | const RPCLogHit & | logHit | ) |
Constructor. One hit is added, cone coordinates are set from logHit.
Copying Constructor
Definition at line 40 of file RPCLogCone.cc.
References RPCLogHit::getConeCrdnts(), RPCLogHit::getDigiIdx(), RPCLogHit::getlogPlaneNumber(), RPCLogHit::getStripNumberInCone(), m_ConeCrdnts, RPCConst::m_LOGPLANES_COUNT, m_LogPlanesVec, m_MuonCode, m_MuonSign, and setLogStrip().
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 51 of file RPCLogCone.cc.
References funct::abs(), getTower(), RPCConst::m_FIRST_PLANE, RPCConst::m_LOGPLANE_SIZE, RPCConst::m_LOGPLANES_COUNT, m_LogPlanesVec, m_MuonCode, m_MuonSign, RPCConst::m_USED_PLANES_COUNT, gpuClustering::pixelStatus::mask, setLogStrip(), shift(), and digitizers_cfi::strip.
bool RPCLogCone::addLogHit | ( | const RPCLogHit & | logHit | ) |
Adds next logHit .
Adds a loghit to a cone
Definition at line 193 of file RPCLogCone.cc.
References RPCLogHit::getDigiIdx(), RPCLogHit::getlogPlaneNumber(), RPCLogHit::getLogSector(), RPCLogHit::getLogSegment(), RPCLogHit::getStripNumberInCone(), RPCLogHit::getTower(), m_ConeCrdnts, RPCConst::l1RpcConeCrdnts::m_LogSector, RPCConst::l1RpcConeCrdnts::m_LogSegment, RPCConst::l1RpcConeCrdnts::m_Tower, and setLogStrip().
unsigned long long RPCLogCone::getCompressedCone | ( | ) |
Compresses cone. Throws exception, if there is more than one hit in any logplane.
Definition at line 72 of file RPCLogCone.cc.
References funct::abs(), getHitsCnt(), getLogPlane(), getTower(), RPCConst::m_FIRST_PLANE, RPCConst::m_LOGPLANE_SIZE, RPCConst::m_USED_PLANES_COUNT, topSingleLeptonDQM_PU_cfi::pattern, shift(), and digitizers_cfi::strip.
RPCConst::l1RpcConeCrdnts RPCLogCone::getConeCrdnts | ( | ) | const |
int RPCLogCone::getFiredPlanesCnt | ( | ) | const |
Definition at line 217 of file RPCLogCone.cc.
References funct::abs(), isPlaneFired(), m_ConeCrdnts, RPCConst::m_FIRST_PLANE, RPCConst::l1RpcConeCrdnts::m_Tower, and RPCConst::m_USED_PLANES_COUNT.
int RPCLogCone::getHitsCnt | ( | int | logPlane | ) | const |
Gets fired strips count in given logPlane.
Definition at line 150 of file RPCLogCone.cc.
References m_LogPlanesVec.
Referenced by getCompressedCone().
int RPCLogCone::getIdx | ( | ) | const |
Definition at line 172 of file RPCLogCone.cc.
References m_Index.
RPCLogCone::TLogPlane RPCLogCone::getLogPlane | ( | int | logPlane | ) | const |
Definition at line 147 of file RPCLogCone.cc.
References m_LogPlanesVec.
Referenced by getCompressedCone().
int RPCLogCone::getLogSector | ( | ) | const |
Definition at line 164 of file RPCLogCone.cc.
References m_ConeCrdnts, and RPCConst::l1RpcConeCrdnts::m_LogSector.
int RPCLogCone::getLogSegment | ( | ) | const |
Definition at line 166 of file RPCLogCone.cc.
References m_ConeCrdnts, and RPCConst::l1RpcConeCrdnts::m_LogSegment.
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 202 of file RPCLogCone.cc.
References mps_fire::end, and m_LogPlanesVec.
bool RPCLogCone::getLogStripState | ( | int | logPlane, |
unsigned int | logStripNum | ||
) | const |
Get logic strip state.
Definition at line 184 of file RPCLogCone.cc.
References m_LogPlanesVec.
Referenced by RPCPacData::getTPatternsGroupShape(), and toString().
int RPCLogCone::getMuonCode | ( | ) | const |
Definition at line 156 of file RPCLogCone.cc.
References m_MuonCode.
int RPCLogCone::getMuonSign | ( | ) | const |
int RPCLogCone::getTower | ( | ) | const |
Definition at line 162 of file RPCLogCone.cc.
References m_ConeCrdnts, and RPCConst::l1RpcConeCrdnts::m_Tower.
Referenced by getCompressedCone(), and RPCLogCone().
bool RPCLogCone::isPlaneFired | ( | int | logPlane | ) | const |
Definition at line 210 of file RPCLogCone.cc.
References relativeConstraints::empty, and m_LogPlanesVec.
Referenced by getFiredPlanesCnt(), and possibleTrigger().
int RPCLogCone::possibleTrigger | ( | ) | const |
Definition at line 226 of file RPCLogCone.cc.
References funct::abs(), isPlaneFired(), m_ConeCrdnts, RPCConst::m_FIRST_PLANE, RPCConst::m_LOGPLANE4, RPCConst::l1RpcConeCrdnts::m_Tower, RPCConst::m_USED_PLANES_COUNT, and HLT_2022v12_cff::triggerType.
void RPCLogCone::setIdx | ( | int | index | ) |
Definition at line 170 of file RPCLogCone.cc.
References m_Index.
Referenced by RPCConeBuilderFromES::getConesFromES().
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 174 of file RPCLogCone.cc.
References m_LogPlanesVec.
Referenced by addLogHit(), RPCLogCone(), and TPatternsGroup::updateShape().
void RPCLogCone::setLogStrip | ( | int | logPlane, |
int | logStripNum | ||
) |
Set logic strip as fired.
Definition at line 180 of file RPCLogCone.cc.
References m_LogPlanesVec.
void RPCLogCone::setMuonCode | ( | int | code | ) |
sets pt code of muon that fired the strips */
Definition at line 153 of file RPCLogCone.cc.
References m_MuonCode.
void RPCLogCone::setMuonSign | ( | int | sign | ) |
Definition at line 158 of file RPCLogCone.cc.
References m_MuonSign, and Validation_hcalonly_cfi::sign.
void RPCLogCone::shift | ( | int | pos | ) |
Changes fired LogStrips: from "stripNum" to "stripNum + pos".
Definition at line 126 of file RPCLogCone.cc.
References funct::abs(), m_ConeCrdnts, RPCConst::m_FIRST_PLANE, RPCConst::m_LAST_PLANE, RPCConst::m_LOGPLANE_SIZE, m_LogPlanesVec, and RPCConst::l1RpcConeCrdnts::m_Tower.
Referenced by getCompressedCone(), and RPCLogCone().
std::string RPCLogCone::toString | ( | ) | const |
Definition at line 96 of file RPCLogCone.cc.
References funct::abs(), getLogStripState(), mps_fire::i, m_ConeCrdnts, RPCConst::m_FIRST_PLANE, RPCConst::m_LAST_PLANE, RPCConst::m_LOGPLANE_SIZE, RPCConst::m_LOGPLANE_STR, RPCConst::l1RpcConeCrdnts::m_LogSector, RPCConst::l1RpcConeCrdnts::m_LogSegment, RPCConst::l1RpcConeCrdnts::m_Tower, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 109 of file RPCLogCone.h.
Referenced by addLogHit(), getConeCrdnts(), getFiredPlanesCnt(), getLogSector(), getLogSegment(), getTower(), possibleTrigger(), RPCLogCone(), shift(), and toString().
|
private |
Digis that formed log hits in this LogCone, m_DigisIdx[logPlaneNum][i] gets the index in DigisVec stored in L1RpcTrigg
Definition at line 107 of file RPCLogCone.h.
|
private |
m_Index in LogConesVec stored by L1RpcTrigg
Definition at line 116 of file RPCLogCone.h.
|
private |
Logic Planes.
Definition at line 102 of file RPCLogCone.h.
Referenced by getHitsCnt(), getLogPlane(), getLogStripDigisIdxs(), getLogStripState(), isPlaneFired(), RPCLogCone(), setLogStrip(), and shift().
|
private |
Definition at line 111 of file RPCLogCone.h.
Referenced by getMuonCode(), RPCLogCone(), and setMuonCode().
|
private |
Definition at line 113 of file RPCLogCone.h.
Referenced by getMuonSign(), RPCLogCone(), and setMuonSign().