#include <RPCWheel.h>
Public Member Functions | |
void | createWheelMap () |
void | emulate () |
int | getid () const |
bool | initialise () |
RPCWheel & | operator= (RPCWheel &&)=default |
void | print_wheel (const TTUInput &) const |
void | printinfo () const |
bool | process (int, const std::map< int, RBCInput * > &) |
bool | process (int, const std::map< int, TTUInput * > &) |
void | retrieveWheelMap (TTUInput &) |
RPCWheel () | |
Standard constructor. More... | |
RPCWheel (RPCWheel &&)=default | |
void | setProperties (int) |
void | setProperties (int, const char *) |
void | setProperties (int, const char *, const char *) |
void | setSpecifications (const RBCBoardSpecs *) |
Private Attributes | |
bool | m_debug |
int | m_id |
std::bitset< 12 > | m_rbcDecision |
std::vector< std::unique_ptr< RBCEmulator > > | m_RBCE |
std::array< std::bitset< 6 >, 12 > | m_wheelmap |
Static Private Attributes | |
static constexpr int | m_maxlayers = 6 |
static constexpr int | m_maxrbc = 6 |
static constexpr int | m_maxsectors = 12 |
RPCWheel::RPCWheel | ( | ) |
|
default |
void RPCWheel::createWheelMap | ( | ) |
Definition at line 199 of file RPCWheel.cc.
References gather_cfg::cout, gen::k, m_debug, m_maxrbc, m_rbcDecision, m_RBCE, and m_wheelmap.
void RPCWheel::emulate | ( | ) |
|
inline |
bool RPCWheel::initialise | ( | ) |
Definition at line 95 of file RPCWheel.cc.
References gen::k, m_maxrbc, m_RBCE, and mps_update::status.
void RPCWheel::print_wheel | ( | const TTUInput & | wmap | ) | const |
Definition at line 266 of file RPCWheel.cc.
References gather_cfg::cout, mps_fire::i, TTUInput::input_sec, gen::k, TTUInput::m_bx, m_maxlayers, m_maxsectors, and TTUInput::m_wheelId.
Referenced by getid(), and retrieveWheelMap().
void RPCWheel::printinfo | ( | ) | const |
Definition at line 257 of file RPCWheel.cc.
References gather_cfg::cout, gen::k, m_id, m_maxrbc, and m_RBCE.
Referenced by getid().
bool RPCWheel::process | ( | int | bx, |
const std::map< int, RBCInput * > & | data | ||
) |
Definition at line 115 of file RPCWheel.cc.
References funct::abs(), gather_cfg::cout, gen::k, crabWrapper::key, m_debug, m_maxrbc, m_RBCE, and mps_update::status.
bool RPCWheel::process | ( | int | bx, |
const std::map< int, TTUInput * > & | data | ||
) |
Definition at line 161 of file RPCWheel.cc.
References funct::abs(), gather_cfg::cout, gen::k, crabWrapper::key, m_debug, m_id, m_maxsectors, m_wheelmap, and mps_update::status.
void RPCWheel::retrieveWheelMap | ( | TTUInput & | output | ) |
Definition at line 232 of file RPCWheel.cc.
References gather_cfg::cout, mps_fire::i, TTUInput::input_sec, m_debug, m_id, m_maxlayers, m_maxsectors, TTUInput::m_rbcDecision, m_rbcDecision, TTUInput::m_wheelId, m_wheelmap, print_wheel(), and TTUInput::reset().
void RPCWheel::setProperties | ( | int | wid | ) |
Definition at line 25 of file RPCWheel.cc.
References gen::k, m_id, m_maxrbc, m_maxsectors, m_RBCE, m_wheelmap, reset(), rpctechnicaltrigger::s_sec1id, and rpctechnicaltrigger::s_sec2id.
void RPCWheel::setProperties | ( | int | wid, |
const char * | logic_type | ||
) |
Definition at line 46 of file RPCWheel.cc.
References gen::k, m_id, m_maxrbc, m_maxsectors, m_RBCE, m_wheelmap, reset(), rpctechnicaltrigger::s_sec1id, and rpctechnicaltrigger::s_sec2id.
void RPCWheel::setProperties | ( | int | wid, |
const char * | f_name, | ||
const char * | logic_type | ||
) |
Definition at line 65 of file RPCWheel.cc.
References gen::k, m_id, m_maxrbc, m_maxsectors, m_RBCE, m_wheelmap, and reset().
void RPCWheel::setSpecifications | ( | const RBCBoardSpecs * | rbcspecs | ) |
|
private |
Definition at line 72 of file RPCWheel.h.
Referenced by createWheelMap(), process(), retrieveWheelMap(), and RPCWheel().
|
private |
Definition at line 62 of file RPCWheel.h.
Referenced by getid(), printinfo(), process(), retrieveWheelMap(), and setProperties().
|
staticprivate |
Definition at line 64 of file RPCWheel.h.
Referenced by print_wheel(), and retrieveWheelMap().
|
staticprivate |
Definition at line 63 of file RPCWheel.h.
Referenced by createWheelMap(), emulate(), initialise(), printinfo(), process(), setProperties(), and setSpecifications().
|
staticprivate |
Definition at line 65 of file RPCWheel.h.
Referenced by print_wheel(), process(), retrieveWheelMap(), and setProperties().
|
private |
Definition at line 69 of file RPCWheel.h.
Referenced by createWheelMap(), and retrieveWheelMap().
|
private |
Definition at line 60 of file RPCWheel.h.
Referenced by createWheelMap(), emulate(), initialise(), printinfo(), process(), setProperties(), and setSpecifications().
|
private |
Definition at line 70 of file RPCWheel.h.
Referenced by createWheelMap(), process(), retrieveWheelMap(), and setProperties().