56 m_RBCE[
k]->setid( wid, bisector );
76 m_RBCE[
k]->setid( wid, bisector );
95 m_RBCE[
k]->setid( wid, bisector );
109 std::vector<RBCEmulator*>::iterator itr;
111 if ( (*itr) )
delete (*itr);
156 std::map<int,RBCInput*>::const_iterator itr;
158 if ( bx != 0 ) bxsign = ( bx /
abs(bx) );
165 int key = bxsign*( 1000000 *
abs(bx)
166 +
m_RBCE[
k]->m_rbcinfo->wheelIdx()*10000
167 +
m_RBCE[
k]->m_rbcinfo->sector(0)*100
168 +
m_RBCE[
k]->m_rbcinfo->sector(1) );
170 itr = data.find( key );
172 if ( itr != data.end() ) {
174 if ( ! (*itr).second->hasData ) {
180 << ( itr->second ) << std::endl;
181 m_RBCE[
k]->emulate( ( itr->second ) );
202 std::map<int,TTUInput*>::const_iterator itr;
204 if ( bx != 0 ) bxsign = ( bx /
abs(bx) );
207 int key = bxsign*( 1000000 *
abs(bx) + (
m_id+2)*10000 );
209 itr = data.find( key );
211 if ( itr != data.end() ) {
212 if(
m_debug )
std::cout <<
"RPCWheel::process> found data at: " << key <<
'\t'
213 << ( itr->second ) << std::endl;
215 if ( ! (*itr).second->m_hasHits )
return false;
239 std::bitset<6> layersignal;
241 layersignal = *
m_RBCE[0]->getlayersignal( 0 );
248 layersignal = *
m_RBCE[
k+1]->getlayersignal( 0 );
250 layersignal = *
m_RBCE[
k+1]->getlayersignal( 1 );
258 layersignal = *
m_RBCE[0]->getlayersignal( 1 );
270 if(
m_debug )
std::cout <<
"RPCWheel::retrieveWheelMap starts" << std::endl;
void print_wheel(const TTUInput &)
std::bitset< 6 > * m_wheelmap
std::vector< int > m_sec2id
RPCWheel()
Standard constructor.
bool process(int, const std::map< int, RBCInput * > &)
std::bitset< 12 > m_rbcDecision
std::vector< int > m_sec1id
void retrieveWheelMap(TTUInput &)
char data[epos_bytes_allocation]
std::vector< RBCEmulator * > m_RBCE
void setSpecifications(const RBCBoardSpecs *)
virtual ~RPCWheel()
Destructor.
void reset(double vett[256])