27 int tmp[6] = {1, 2, 0, 0, -1, -2};
54 int tmp[6] = {1, 2, 0, 0, -1, -2};
77 const char * ttulogic_type,
int mxw )
83 int tmp[6] = {1, 2, 0, 0, -1, -2};
126 std::vector<TTUBoardSpecs::TTUBoardConfig>::const_iterator itr;
129 m_mode = (*itr).m_triggerMode;
142 if(
m_debug )
std::cout <<
"TTUEmulator> Problem initialising the Configuration \n";
174 std::vector<int> bxVec;
175 std::vector<int>::iterator bxItr;
176 std::map<int,RBCInput*> * linkboardin;
177 std::map<int,RBCInput*>::iterator inItr;
181 for( inItr = (*linkboardin).begin(); inItr != (*linkboardin).end(); ++inItr)
184 if ( (*inItr).first < 0 ) bx = (int) ceil( (*inItr).first / 1000000.0 );
185 else bx = (int) floor( (*inItr).first / 1000000.0 );
190 bxItr = unique (bxVec.begin(), bxVec.end());
191 bxVec.resize(bxItr - bxVec.begin());
193 for ( bxItr = bxVec.begin(); bxItr != bxVec.end(); ++bxItr) {
215 <<
" bx: " << (*bxItr)
217 <<
" response: " << trg << std::endl;
236 if(
m_debug )
std::cout <<
"TTUEmulator::processTtu> done with this TTU: " <<
m_id << std::endl;
251 if(
m_debug )
std::cout <<
"TTUEmulator::processTtu( Pointing ) starts " <<
'\n';
256 std::vector<int> bxVec;
257 std::vector<int>::iterator bxItr;
258 std::map<int,RBCInput*> * linkboardin;
259 std::map<int,RBCInput*>::iterator inItr;
263 for( inItr = (*linkboardin).begin(); inItr != (*linkboardin).end(); ++inItr)
266 if ( (*inItr).first < 0 ) bx = (int) ceil( (*inItr).first / 1000000.0 );
267 else bx = (int) floor( (*inItr).first / 1000000.0 );
272 bxItr = unique (bxVec.begin(), bxVec.end());
273 bxVec.resize(bxItr - bxVec.begin());
275 for ( bxItr = bxVec.begin(); bxItr != bxVec.end(); ++bxItr) {
297 <<
" bx: " << (*bxItr)
299 <<
" response: " << trg << std::endl;
312 if(
m_debug )
std::cout <<
"TTUEmulator::processTtu (Pointing) > size of trigger map "
315 if(
m_debug )
std::cout <<
"TTUEmulator::processTtu (Pointing) > done with this TTU: " <<
m_id << std::endl;
319 if(
m_debug )
std::cout <<
"TTUEmulator::processTtu( Pointing ) end" <<
'\n';
327 std::vector<TriggerResponse*>::iterator itr;
329 if ( (*itr) )
delete (*itr);
std::bitset< 2 > m_trigger
TTUConfiguration * m_ttuconf
const TTUBoardSpecs * m_ttuboardspecs
std::vector< TriggerResponse * > m_triggerBxVec
void clearTriggerResponse()
void run(const TTUInput &)
std::vector< TTUBoardConfig > m_boardspecs
void retrieveWheelMap(TTUInput &)
void setTriggerBits(int bx, const std::bitset< 2 > &inbits)
void processTtu(RPCInputSignal *)
std::vector< std::vector< double > > tmp
virtual bool initialise(int, int)=0
TTULogicUnit * m_ttulogic
std::map< int, std::bitset< 2 > > m_triggerBx
virtual ~TTUEmulator()
Destructor.
void setSpecifications(const TTUBoardSpecs *, const RBCBoardSpecs *)
TTUEmulator()
Standard constructor.