#include <L1Trigger/DTTrackFinder/src/L1MuDTSecProcId.h>
Public Member Functions | |
L1MuDTSecProcId (const L1MuDTSecProcId &) | |
copy constructor | |
L1MuDTSecProcId (int wheel_id, int sector_id) | |
constructor | |
L1MuDTSecProcId () | |
default constructor | |
int | locwheel () const |
return physical wheel number (-2,-1,0,+1,+2) | |
bool | operator!= (const L1MuDTSecProcId &) const |
unequal operator | |
bool | operator< (const L1MuDTSecProcId &) const |
less operator | |
L1MuDTSecProcId & | operator= (const L1MuDTSecProcId &) |
assignment operator | |
bool | operator== (const L1MuDTSecProcId &) const |
equal operator | |
bool | ovl () const |
is it an overlap region Sector Processor? | |
int | sector () const |
return sector number | |
int | wheel () const |
return wheel number | |
virtual | ~L1MuDTSecProcId () |
destructor | |
Private Attributes | |
int | m_sector |
int | m_wheel |
Friends | |
std::ostream & | operator<< (std::ostream &, const L1MuDTSecProcId &) |
output stream operator |
There are 6 sector processors along the eta direction numbered: -3 -2 -1 +1 +2 +3 (= wheel)
and 12 sector processors along the phi direction [0,11].
This is necessary because wheel 0 needs two sector processors
N. Neumeister CERN EP
Definition at line 43 of file L1MuDTSecProcId.h.
L1MuDTSecProcId::L1MuDTSecProcId | ( | ) |
constructor
Definition at line 47 of file L1MuDTSecProcId.cc.
References TestMuL1L2Filter_cff::cerr, and lat::endl().
00047 : 00048 m_wheel(wheel_id), m_sector(sector_id) { 00049 00050 if ( !(wheel_id >= -3 && wheel_id <= 3) ) { 00051 cerr << "SecProcId : wheel out of range: " << wheel_id << endl; 00052 } 00053 if ( !(sector_id >= 0 && sector_id < 12) ) { 00054 cerr << "SecProcId : sector out of range: " << sector_id << endl; 00055 } 00056 00057 }
L1MuDTSecProcId::L1MuDTSecProcId | ( | const L1MuDTSecProcId & | id | ) |
L1MuDTSecProcId::~L1MuDTSecProcId | ( | ) | [virtual] |
int L1MuDTSecProcId::locwheel | ( | ) | const |
return physical wheel number (-2,-1,0,+1,+2)
Definition at line 91 of file L1MuDTSecProcId.cc.
References funct::abs(), and m_wheel.
Referenced by L1MuDTSectorReceiver::address2wheel().
bool L1MuDTSecProcId::operator!= | ( | const L1MuDTSecProcId & | id | ) | const |
bool L1MuDTSecProcId::operator< | ( | const L1MuDTSecProcId & | id | ) | const |
less operator
Definition at line 125 of file L1MuDTSecProcId.cc.
References sector(), and wheel().
00125 { 00126 00127 if ( sector() < id.sector() ) return true; 00128 if ( sector() > id.sector() ) return false; 00129 if ( wheel() < 0 && id.wheel() < 0 ) { 00130 if ( -wheel() < -id.wheel() ) return true; 00131 } 00132 else { 00133 if ( wheel() < id.wheel() ) return true; 00134 } 00135 return false; 00136 00137 }
L1MuDTSecProcId & L1MuDTSecProcId::operator= | ( | const L1MuDTSecProcId & | id | ) |
bool L1MuDTSecProcId::operator== | ( | const L1MuDTSecProcId & | id | ) | const |
bool L1MuDTSecProcId::ovl | ( | ) | const [inline] |
is it an overlap region Sector Processor?
Definition at line 66 of file L1MuDTSecProcId.h.
References funct::abs(), and m_wheel.
Referenced by L1MuDTSectorProcessor::brl(), and L1MuDTSectorProcessor::ovl().
return sector number
Definition at line 63 of file L1MuDTSecProcId.h.
References m_sector.
Referenced by L1MuDTSectorReceiver::address2sector(), L1MuDTMuonSorter::neighbour(), L1MuDTWedgeSorter::neighbour(), L1MuDTSectorProcessor::neighbour(), operator!=(), operator<(), operator==(), L1MuDTAssignmentUnit::PhiAU(), L1MuDTSectorReceiver::receiveCSCData(), and L1MuDTTrackFinder::run().
00063 { return m_sector; }
int L1MuDTSecProcId::wheel | ( | ) | const [inline] |
return wheel number
Definition at line 60 of file L1MuDTSecProcId.h.
References m_wheel.
Referenced by L1MuDTSectorReceiver::address2wheel(), L1MuDTMuonSorter::neighbour(), L1MuDTWedgeSorter::neighbour(), L1MuDTSectorProcessor::neighbour(), operator!=(), operator<(), operator==(), L1MuDTSectorReceiver::receiveCSCData(), and L1MuDTTrackFinder::run().
00060 { return m_wheel; }
std::ostream& operator<< | ( | std::ostream & | , | |
const L1MuDTSecProcId & | ||||
) | [friend] |
output stream operator
int L1MuDTSecProcId::m_sector [private] |
Definition at line 89 of file L1MuDTSecProcId.h.
Referenced by operator!=(), operator=(), and sector().
int L1MuDTSecProcId::m_wheel [private] |
Definition at line 88 of file L1MuDTSecProcId.h.
Referenced by locwheel(), operator!=(), operator=(), ovl(), and wheel().