#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 165 of file RPCWheel.cc.
References gather_cfg::cout, dqmdumpme::k, m_debug, m_maxrbc, m_rbcDecision, m_RBCE, and m_wheelmap.
void RPCWheel::emulate | ( | ) |
|
inline |
bool RPCWheel::initialise | ( | ) |
Definition at line 75 of file RPCWheel.cc.
References dqmdumpme::k, m_maxrbc, m_RBCE, and mps_update::status.
void RPCWheel::print_wheel | ( | const TTUInput & | wmap | ) | const |
Definition at line 223 of file RPCWheel.cc.
References gather_cfg::cout, mps_fire::i, TTUInput::input_sec, dqmiolumiharvest::j, dqmdumpme::k, TTUInput::m_bx, m_maxlayers, m_maxsectors, and TTUInput::m_wheelId.
Referenced by retrieveWheelMap().
void RPCWheel::printinfo | ( | ) | const |
bool RPCWheel::process | ( | int | bx, |
const std::map< int, RBCInput * > & | data | ||
) |
Definition at line 89 of file RPCWheel.cc.
References funct::abs(), l1GtPatternGenerator_cfi::bx, gather_cfg::cout, data, dqmdumpme::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 128 of file RPCWheel.cc.
References funct::abs(), l1GtPatternGenerator_cfi::bx, gather_cfg::cout, data, dqmdumpme::k, crabWrapper::key, m_debug, m_id, m_maxsectors, m_wheelmap, and mps_update::status.
void RPCWheel::retrieveWheelMap | ( | TTUInput & | output | ) |
Definition at line 194 of file RPCWheel.cc.
References gather_cfg::cout, mps_fire::i, dqmiolumiharvest::j, m_debug, m_id, m_maxlayers, m_maxsectors, m_rbcDecision, m_wheelmap, convertSQLitetoXML_cfg::output, and print_wheel().
void RPCWheel::setProperties | ( | int | wid | ) |
Definition at line 19 of file RPCWheel.cc.
References dqmdumpme::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 36 of file RPCWheel.cc.
References dqmdumpme::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 52 of file RPCWheel.cc.
References dqmdumpme::k, m_id, m_maxrbc, m_maxsectors, m_RBCE, m_wheelmap, and reset().
void RPCWheel::setSpecifications | ( | const RBCBoardSpecs * | rbcspecs | ) |
Definition at line 70 of file RPCWheel.cc.
References dqmdumpme::k, m_maxrbc, and m_RBCE.
|
private |
Definition at line 70 of file RPCWheel.h.
Referenced by createWheelMap(), process(), and retrieveWheelMap().
|
private |
Definition at line 60 of file RPCWheel.h.
Referenced by getid(), printinfo(), process(), retrieveWheelMap(), and setProperties().
|
staticconstexprprivate |
Definition at line 62 of file RPCWheel.h.
Referenced by print_wheel(), and retrieveWheelMap().
|
staticconstexprprivate |
Definition at line 61 of file RPCWheel.h.
Referenced by createWheelMap(), emulate(), initialise(), printinfo(), process(), setProperties(), and setSpecifications().
|
staticconstexprprivate |
Definition at line 63 of file RPCWheel.h.
Referenced by print_wheel(), process(), retrieveWheelMap(), and setProperties().
|
private |
Definition at line 67 of file RPCWheel.h.
Referenced by createWheelMap(), and retrieveWheelMap().
|
private |
Definition at line 58 of file RPCWheel.h.
Referenced by createWheelMap(), emulate(), initialise(), printinfo(), process(), setProperties(), and setSpecifications().
|
private |
Definition at line 68 of file RPCWheel.h.
Referenced by createWheelMap(), process(), retrieveWheelMap(), and setProperties().