#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.
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 32 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 44 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 56 of file RPCLogCone.cc.
References 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 strip().
bool RPCLogCone::addLogHit | ( | const RPCLogHit & | logHit | ) |
Adds next logHit .
Adds a loghit to a cone
Definition at line 221 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 80 of file RPCLogCone.cc.
References abs, getHitsCnt(), getLogPlane(), getTower(), RPCConst::m_FIRST_PLANE, RPCConst::m_LOGPLANE_SIZE, RPCConst::m_USED_PLANES_COUNT, listBenchmarks::pattern, shift(), and strip().
RPCConst::l1RpcConeCrdnts RPCLogCone::getConeCrdnts | ( | ) | const |
Definition at line 194 of file RPCLogCone.cc.
References m_ConeCrdnts.
Referenced by RPCTriggerCrate::runCone().
int RPCLogCone::getFiredPlanesCnt | ( | ) | const |
Definition at line 251 of file RPCLogCone.cc.
References 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 174 of file RPCLogCone.cc.
References m_LogPlanesVec.
Referenced by getCompressedCone(), and RPCPac::runEnergeticPatternsGroups().
int RPCLogCone::getIdx | ( | ) | const |
Definition at line 198 of file RPCLogCone.cc.
References m_Index.
Referenced by RPCPac::run().
RPCLogCone::TLogPlane RPCLogCone::getLogPlane | ( | int | logPlane | ) | const |
Definition at line 169 of file RPCLogCone.cc.
References m_LogPlanesVec.
Referenced by getCompressedCone(), and RPCPac::runEnergeticPatternsGroups().
int RPCLogCone::getLogSector | ( | ) | const |
Definition at line 190 of file RPCLogCone.cc.
References m_ConeCrdnts, and RPCConst::l1RpcConeCrdnts::m_LogSector.
int RPCLogCone::getLogSegment | ( | ) | const |
Definition at line 192 of file RPCLogCone.cc.
References m_ConeCrdnts, and RPCConst::l1RpcConeCrdnts::m_LogSegment.
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.
References end, and m_LogPlanesVec.
Referenced by RPCPac::runEnergeticPatternsGroups(), and RPCPac::runTrackPatternsGroup().
bool RPCLogCone::getLogStripState | ( | int | logPlane, |
unsigned int | logStripNum | ||
) | const |
Get logic strip state.
Definition at line 211 of file RPCLogCone.cc.
References m_LogPlanesVec.
Referenced by RPCPacData::getTPatternsGroupShape(), RPCPac::runEnergeticPatternsGroups(), RPCPac::runTrackPatternsGroup(), and toString().
int RPCLogCone::getMuonCode | ( | ) | const |
Definition at line 182 of file RPCLogCone.cc.
References m_MuonCode.
int RPCLogCone::getMuonSign | ( | ) | const |
int RPCLogCone::getTower | ( | ) | const |
Definition at line 188 of file RPCLogCone.cc.
References m_ConeCrdnts, and RPCConst::l1RpcConeCrdnts::m_Tower.
Referenced by getCompressedCone(), RPCLogCone(), and RPCTriggerBoard::runCone().
bool RPCLogCone::isPlaneFired | ( | int | logPlane | ) | const |
Definition at line 244 of file RPCLogCone.cc.
References m_LogPlanesVec, and findQualityFiles::size.
Referenced by getFiredPlanesCnt(), and possibleTrigger().
int RPCLogCone::possibleTrigger | ( | ) | const |
Definition at line 263 of file RPCLogCone.cc.
References abs, isPlaneFired(), m_ConeCrdnts, RPCConst::m_FIRST_PLANE, RPCConst::m_LOGPLANE4, RPCConst::l1RpcConeCrdnts::m_Tower, and RPCConst::m_USED_PLANES_COUNT.
void RPCLogCone::setIdx | ( | int | index | ) |
Definition at line 196 of file RPCLogCone.cc.
References getHLTprescales::index, and 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 200 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 206 of file RPCLogCone.cc.
References m_LogPlanesVec.
void RPCLogCone::setMuonCode | ( | int | code | ) |
sets pt code of muon that fired the strips */
Definition at line 179 of file RPCLogCone.cc.
References m_MuonCode.
void RPCLogCone::setMuonSign | ( | int | sign | ) |
void RPCLogCone::shift | ( | int | pos | ) |
Changes fired LogStrips: from "stripNum" to "stripNum + pos".
Definition at line 145 of file RPCLogCone.cc.
References abs, begin, m_ConeCrdnts, RPCConst::m_FIRST_PLANE, RPCConst::m_LAST_PLANE, RPCConst::m_LOGPLANE_SIZE, m_LogPlanesVec, RPCConst::l1RpcConeCrdnts::m_Tower, and pos.
Referenced by getCompressedCone(), and RPCLogCone().
std::string RPCLogCone::toString | ( | ) | const |
Definition at line 110 of file RPCLogCone.cc.
References abs, getLogStripState(), 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, and RPCConst::l1RpcConeCrdnts::m_Tower.
|
private |
Definition at line 116 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 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.
Referenced by getHitsCnt(), getLogPlane(), getLogStripDigisIdxs(), getLogStripState(), isPlaneFired(), RPCLogCone(), setLogStrip(), and shift().
|
private |
Definition at line 118 of file RPCLogCone.h.
Referenced by getMuonCode(), RPCLogCone(), and setMuonCode().
|
private |
Definition at line 120 of file RPCLogCone.h.
Referenced by getMuonSign(), RPCLogCone(), and setMuonSign().