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;
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));
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;
139 int key = bxsign * (1000000 *
abs(
bx) + (
m_id + 2) * 10000);
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 *> &)
void print_wheel(const TTUInput &) const
std::array< std::bitset< 6 >, 12 > m_wheelmap
std::bitset< 12 > m_rbcDecision
static constexpr int m_maxsectors
Abs< T >::type abs(const T &t)
key
prepare the HTCondor submission files and eventually submit them
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])