#include <L1MuDTERS.h>
Public Member Functions | |
unsigned short int | address (int id) const |
return extrapolation address; (address = 15 indicates negative ext. result) | |
L1MuDTERS (const L1MuDTSEU &) | |
constructor | |
unsigned int | quality (int id) const |
return extrapolation quality | |
virtual void | reset () |
reset ERS | |
virtual void | run () |
run L1MuDTERS | |
std::pair< const L1MuDTTrackSegPhi *, const L1MuDTTrackSegPhi * > | ts (int id) const |
return pointer to start and target track segment | |
virtual | ~L1MuDTERS () |
destructor | |
Private Attributes | |
unsigned short int | m_address [2] |
unsigned short int | m_quality [2] |
const L1MuDTSEU & | m_seu |
const L1MuDTTrackSegPhi * | m_start [2] |
const L1MuDTTrackSegPhi * | m_target [2] |
Extrapolation Result Selector (Quality Sorter Unit):
selects the 2 best (highest target quality) out of the 12 (6) extrapolations performed per start track segment
N. Neumeister CERN EP
Definition at line 45 of file L1MuDTERS.h.
L1MuDTERS::L1MuDTERS | ( | const L1MuDTSEU & | seu | ) |
L1MuDTERS::~L1MuDTERS | ( | ) | [virtual] |
unsigned short int L1MuDTERS::address | ( | int | id | ) | const [inline] |
return extrapolation address; (address = 15 indicates negative ext. result)
Definition at line 65 of file L1MuDTERS.h.
References errorMatrix2Lands_multiChannel::id, and m_address.
unsigned int L1MuDTERS::quality | ( | int | id | ) | const [inline] |
return extrapolation quality
Definition at line 62 of file L1MuDTERS.h.
References errorMatrix2Lands_multiChannel::id, and m_quality.
void L1MuDTERS::reset | ( | void | ) | [virtual] |
reset ERS
Implements L1AbstractProcessor.
Definition at line 109 of file L1MuDTERS.cc.
References errorMatrix2Lands_multiChannel::id, m_address, m_quality, m_start, and m_target.
Referenced by L1MuDTERS(), and L1MuDTSEU::reset().
void L1MuDTERS::run | ( | void | ) | [virtual] |
run L1MuDTERS
Reimplemented from L1AbstractProcessor.
Definition at line 69 of file L1MuDTERS.cc.
References gather_cfg::cout, L1MuDTTFConfig::Debug(), L1MuDTSEU::eux(), first, prof2calltree::last, m_address, m_quality, m_seu, m_start, m_target, and L1MuDTSEU::numberOfExt().
Referenced by L1MuDTSEU::run().
{ int n_ext = m_seu.numberOfExt(); if ( n_ext > 0 ) { vector<L1MuDTEUX*>::const_iterator first = m_seu.eux().begin(); vector<L1MuDTEUX*>::const_iterator last = m_seu.eux().end(); vector<L1MuDTEUX*>::const_iterator first_max; vector<L1MuDTEUX*>::const_iterator second_max; // find the best extrapolation first_max = max_element(first, last, L1MuDTEUX::EUX_Comp() ); m_address[0] = (*first_max)->address(); m_quality[0] = (*first_max)->quality(); m_start[0] = (*first_max)->ts().first; m_target[0] = (*first_max)->ts().second; if ( n_ext > 1 ) { // find the second best extrapolation second_max = max_element(first, last, L1MuDTEUX::EUX_Comp(*first_max) ); m_address[1] = (*second_max)->address(); m_quality[1] = (*second_max)->quality(); m_start[1] = (*second_max)->ts().first; m_target[1] = (*second_max)->ts().second; } if ( L1MuDTTFConfig::Debug(4) ) { cout << "ERS : " << endl; cout << "\t first : " << m_address[0] << '\t' << m_quality[0] << endl; cout << "\t second : " << m_address[1] << '\t' << m_quality[1] << endl; } } }
pair< const L1MuDTTrackSegPhi *, const L1MuDTTrackSegPhi * > L1MuDTERS::ts | ( | int | id | ) | const |
return pointer to start and target track segment
Definition at line 124 of file L1MuDTERS.cc.
References errorMatrix2Lands_multiChannel::id, m_start, and m_target.
{ return pair<const L1MuDTTrackSegPhi*,const L1MuDTTrackSegPhi*>(m_start[id],m_target[id]); }
unsigned short int L1MuDTERS::m_address[2] [private] |
Definition at line 75 of file L1MuDTERS.h.
unsigned short int L1MuDTERS::m_quality[2] [private] |
Definition at line 74 of file L1MuDTERS.h.
const L1MuDTSEU& L1MuDTERS::m_seu [private] |
Definition at line 72 of file L1MuDTERS.h.
Referenced by run().
const L1MuDTTrackSegPhi* L1MuDTERS::m_start[2] [private] |
Definition at line 77 of file L1MuDTERS.h.
const L1MuDTTrackSegPhi* L1MuDTERS::m_target[2] [private] |
Definition at line 78 of file L1MuDTERS.h.