12 using namespace rpctechnicaltrigger;
28 m_RBCE.emplace_back(std::make_unique<RBCEmulator>());
29 m_RBCE[
k]->setid(wid, bisector);
44 m_RBCE.push_back(std::make_unique<RBCEmulator>(logic_type));
45 m_RBCE[
k]->setid(wid, bisector);
59 bisector[0] = (
k * 2) + 1;
60 bisector[1] = (
k * 2) + 2;
61 m_RBCE.push_back(std::make_unique<RBCEmulator>(f_name, logic_type));
62 m_RBCE[
k]->setid(wid, bisector);
93 std::map<int, RBCInput*>::const_iterator itr;
96 bxsign = (bx /
abs(bx));
103 int key = bxsign * (1000000 *
abs(bx) +
m_RBCE[
k]->rbcinfo().wheelIdx() * 10000 +
104 m_RBCE[
k]->rbcinfo().sector(0) * 100 +
m_RBCE[
k]->rbcinfo().sector(1));
106 itr = data.find(key);
108 if (itr != data.end()) {
109 if (!(*itr).second->hasData) {
114 std::cout <<
"RPCWheel::process> found data at: " << key <<
'\t' << (itr->second) << std::endl;
115 m_RBCE[
k]->emulate((itr->second));
132 std::map<int, TTUInput*>::const_iterator itr;
135 bxsign = (bx /
abs(bx));
139 int key = bxsign * (1000000 *
abs(bx) + (
m_id + 2) * 10000);
141 itr = data.find(key);
143 if (itr != data.end()) {
145 std::cout <<
"RPCWheel::process> found data at: " << key <<
'\t' << (itr->second) << std::endl;
147 if (!(*itr).second->m_hasHits)
168 std::bitset<6> layersignal;
170 layersignal = *
m_RBCE[0]->getlayersignal(0);
176 layersignal = *
m_RBCE[
k + 1]->getlayersignal(0);
178 layersignal = *
m_RBCE[
k + 1]->getlayersignal(1);
185 layersignal = *
m_RBCE[0]->getlayersignal(1);
191 std::cout <<
"RPCWheel::createWheelMap done" << std::endl;
196 std::cout <<
"RPCWheel::retrieveWheelMap starts" << std::endl;
212 std::cout <<
"RPCWheel::retrieveWheelMap done" << std::endl;
constexpr std::array< int, 6 > s_sec2id
static constexpr int m_maxlayers
constexpr std::array< int, 6 > s_sec1id
RPCWheel()
Standard constructor.
bool process(int, const std::map< int, RBCInput * > &)
std::array< std::bitset< 6 >, 12 > m_wheelmap
std::bitset< 12 > m_rbcDecision
static constexpr int m_maxsectors
tuple key
prepare the HTCondor submission files and eventually submit them
Abs< T >::type abs(const T &t)
void retrieveWheelMap(TTUInput &)
char data[epos_bytes_allocation]
std::vector< std::unique_ptr< RBCEmulator > > m_RBCE
static constexpr int m_maxrbc
void setSpecifications(const RBCBoardSpecs *)
void reset(double vett[256])
void print_wheel(const TTUInput &) const