36 m_RBCE.emplace_back(std::make_unique<RBCEmulator>());
37 m_RBCE[
k]->setid( wid, bisector );
56 m_RBCE.push_back( std::make_unique<RBCEmulator>( logic_type ) );
57 m_RBCE[
k]->setid( wid, bisector );
76 m_RBCE.push_back(std::make_unique<RBCEmulator>( f_name, logic_type ) );
77 m_RBCE[
k]->setid( wid, bisector );
121 std::map<int,RBCInput*>::const_iterator itr;
123 if ( bx != 0 ) bxsign = ( bx /
abs(bx) );
130 int key = bxsign*( 1000000 *
abs(bx)
131 +
m_RBCE[
k]->rbcinfo().wheelIdx()*10000
132 +
m_RBCE[
k]->rbcinfo().sector(0)*100
133 +
m_RBCE[
k]->rbcinfo().sector(1) );
135 itr = data.find( key );
137 if ( itr != data.end() ) {
139 if ( ! (*itr).second->hasData ) {
145 << ( itr->second ) << std::endl;
146 m_RBCE[
k]->emulate( ( itr->second ) );
167 std::map<int,TTUInput*>::const_iterator itr;
169 if ( bx != 0 ) bxsign = ( bx /
abs(bx) );
172 int key = bxsign*( 1000000 *
abs(bx) + (
m_id+2)*10000 );
174 itr = data.find( key );
176 if ( itr != data.end() ) {
177 if(
m_debug )
std::cout <<
"RPCWheel::process> found data at: " << key <<
'\t' 178 << ( itr->second ) << std::endl;
180 if ( ! (*itr).second->m_hasHits )
return false;
204 std::bitset<6> layersignal;
206 layersignal = *
m_RBCE[0]->getlayersignal( 0 );
213 layersignal = *
m_RBCE[
k+1]->getlayersignal( 0 );
215 layersignal = *
m_RBCE[
k+1]->getlayersignal( 1 );
223 layersignal = *
m_RBCE[0]->getlayersignal( 1 );
235 if(
m_debug )
std::cout <<
"RPCWheel::retrieveWheelMap starts" << std::endl;
std::array< std::bitset< 6 >, 12 > m_wheelmap
static constexpr int m_maxlayers
RPCWheel()
Standard constructor.
constexpr std::array< int, 6 > s_sec2id
bool process(int, const std::map< int, RBCInput * > &)
std::bitset< 12 > m_rbcDecision
static constexpr int m_maxsectors
constexpr std::array< int, 6 > s_sec1id
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