#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 (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... | |
RPCLogCone (int m_tower, int logSector, int logSegment) | |
Constructor. Cone coordinates are set. More... | |
void | setIdx (int index) |
void | setLogStrip (int logPlane, int logStripNum) |
Set logic strip as fired. More... | |
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 | 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 18 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 29 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 39 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 50 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, setLogStrip(), shift(), and digitizers_cfi::strip.
bool RPCLogCone::addLogHit | ( | const RPCLogHit & | logHit | ) |
Adds next logHit .
Adds a loghit to a cone
Definition at line 192 of file RPCLogCone.cc.
unsigned long long RPCLogCone::getCompressedCone | ( | ) |
Compresses cone. Throws exception, if there is more than one hit in any logplane.
Definition at line 71 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 |
Definition at line 167 of file RPCLogCone.cc.
References m_ConeCrdnts.
int RPCLogCone::getFiredPlanesCnt | ( | ) | const |
Definition at line 216 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 149 of file RPCLogCone.cc.
Referenced by getCompressedCone().
int RPCLogCone::getIdx | ( | ) | const |
Definition at line 171 of file RPCLogCone.cc.
References m_Index.
RPCLogCone::TLogPlane RPCLogCone::getLogPlane | ( | int | logPlane | ) | const |
Definition at line 146 of file RPCLogCone.cc.
References m_LogPlanesVec.
Referenced by getCompressedCone().
int RPCLogCone::getLogSector | ( | ) | const |
Definition at line 163 of file RPCLogCone.cc.
References m_ConeCrdnts, and RPCConst::l1RpcConeCrdnts::m_LogSector.
int RPCLogCone::getLogSegment | ( | ) | const |
Definition at line 165 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 201 of file RPCLogCone.cc.
References end, and m_LogPlanesVec.
bool RPCLogCone::getLogStripState | ( | int | logPlane, |
unsigned int | logStripNum | ||
) | const |
Get logic strip state.
Definition at line 183 of file RPCLogCone.cc.
References m_LogPlanesVec.
Referenced by toString().
int RPCLogCone::getMuonCode | ( | ) | const |
Definition at line 155 of file RPCLogCone.cc.
int RPCLogCone::getMuonSign | ( | ) | const |
Definition at line 159 of file RPCLogCone.cc.
References m_MuonSign.
int RPCLogCone::getTower | ( | ) | const |
Definition at line 161 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 209 of file RPCLogCone.cc.
References relativeConstraints::empty, and m_LogPlanesVec.
Referenced by getFiredPlanesCnt(), and possibleTrigger().
int RPCLogCone::possibleTrigger | ( | ) | const |
Definition at line 225 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_2018_cff::triggerType.
void RPCLogCone::setIdx | ( | int | index | ) |
Definition at line 169 of file RPCLogCone.cc.
References m_Index.
Referenced by RPCConeBuilderFromES::getConesFromES().
void RPCLogCone::setLogStrip | ( | int | logPlane, |
int | logStripNum | ||
) |
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 173 of file RPCLogCone.cc.
References m_LogPlanesVec.
Referenced by RPCLogCone(), and TPatternsGroup::updateShape().
void RPCLogCone::setMuonCode | ( | int | code | ) |
sets pt code of muon that fired the strips */
Definition at line 152 of file RPCLogCone.cc.
void RPCLogCone::setMuonSign | ( | int | sign | ) |
Definition at line 157 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 125 of file RPCLogCone.cc.
Referenced by getCompressedCone(), and RPCLogCone().
std::string RPCLogCone::toString | ( | ) | const |
Definition at line 95 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 getConeCrdnts(), getFiredPlanesCnt(), getLogSector(), getLogSegment(), getTower(), possibleTrigger(), 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 getLogPlane(), getLogStripDigisIdxs(), getLogStripState(), isPlaneFired(), RPCLogCone(), and setLogStrip().
|
private |
Definition at line 111 of file RPCLogCone.h.
Referenced by RPCLogCone().
|
private |
Definition at line 113 of file RPCLogCone.h.
Referenced by getMuonSign(), RPCLogCone(), and setMuonSign().