#include <L1MuDTAssignmentUnit.h>
Public Member Functions | |
L1MuDTAssignmentUnit (L1MuDTSectorProcessor &sp, int id, edm::ConsumesCollector) | |
constructor More... | |
void | PhiAU (const edm::EventSetup &c) |
assign phi More... | |
void | PtAU (const edm::EventSetup &c) |
assign pt and charge More... | |
void | QuaAU () |
assign quality More... | |
void | reset () |
reset Assignment Unit More... | |
void | run (const edm::EventSetup &c) |
run Assignment Unit More... | |
void | setPrecision () |
set precision of phi and phib More... | |
~L1MuDTAssignmentUnit () | |
destructor More... | |
Private Member Functions | |
int | convertSector (int) |
convert sector Id to 8 bit code (= sector center) More... | |
int | getCharge (PtAssMethod) |
determine charge More... | |
int | getPtAddress (PtAssMethod, int bendcharge=0) const |
calculate bend angle More... | |
PtAssMethod | getPtMethod () const |
determine pt assignment method More... | |
const L1MuDTTrackSegPhi * | getTSphi (int station) const |
get track segment from a given station More... | |
int | phiDiff (int stat1, int stat2) const |
build difference of two phi values More... | |
void | TSR () |
Track Segment Router. More... | |
Private Attributes | |
L1MuDTAddressArray | m_addArray |
int | m_id |
PtAssMethod | m_ptAssMethod |
L1MuDTSectorProcessor & | m_sp |
std::vector< const L1MuDTTrackSegPhi * > | m_TSphi |
unsigned short | nbit_phi |
of bits used for pt-assignmentMore... | |
unsigned short | nbit_phib |
of bits used for pt-assignmentMore... | |
edm::ESHandle< L1MuDTPhiLut > | thePhiLUTs |
phi-assignment look-up tables More... | |
edm::ESGetToken< L1MuDTPhiLut, L1MuDTPhiLutRcd > | thePhiToken |
edm::ESHandle< L1MuDTPtaLut > | thePtaLUTs |
pt-assignment look-up tables More... | |
edm::ESGetToken< L1MuDTPtaLut, L1MuDTPtaLutRcd > | thePtaToken |
Assignment Unit:
assigns pt, charge, phi and quality to a muon candidate found by the Track Assembler
N. Neumeister CERN EP J. Troconiz UAM Madrid
Definition at line 53 of file L1MuDTAssignmentUnit.h.
L1MuDTAssignmentUnit::L1MuDTAssignmentUnit | ( | L1MuDTSectorProcessor & | sp, |
int | id, | ||
edm::ConsumesCollector | iC | ||
) |
constructor
Definition at line 58 of file L1MuDTAssignmentUnit.cc.
References m_TSphi, reset(), and setPrecision().
L1MuDTAssignmentUnit::~L1MuDTAssignmentUnit | ( | ) |
|
private |
convert sector Id to 8 bit code (= sector center)
Definition at line 336 of file L1MuDTAssignmentUnit.cc.
References nano_mu_digi_cff::sector.
Referenced by PhiAU().
|
private |
determine charge
Definition at line 346 of file L1MuDTAssignmentUnit.cc.
References AlcaSiPixelAliHarvester0T_cff::method, NODEF, PT12H, PT12HO, PT12L, PT12LO, PT13H, PT13HO, PT13L, PT13LO, PT14H, PT14HO, PT14L, PT14LO, PT15HO, PT15LO, PT23H, PT23HO, PT23L, PT23LO, PT24H, PT24HO, PT24L, PT24LO, PT25HO, PT25LO, PT34H, PT34HO, PT34L, and PT34LO.
Referenced by PtAU().
|
private |
calculate bend angle
Definition at line 595 of file L1MuDTAssignmentUnit.cc.
References AlcaSiPixelAliHarvester0T_cff::method, NODEF, phiDiff(), PT12H, PT12HO, PT12L, PT12LO, PT13H, PT13HO, PT13L, PT13LO, PT14H, PT14HO, PT14L, PT14LO, PT15HO, PT15LO, PT23H, PT23HO, PT23L, PT23LO, PT24H, PT24HO, PT24L, PT24LO, PT25HO, PT25LO, PT34H, PT34HO, PT34L, and PT34LO.
Referenced by PtAU().
|
private |
determine pt assignment method
Definition at line 475 of file L1MuDTAssignmentUnit.cc.
References funct::abs(), L1MuDTPtaLut::getPtLutThreshold(), getTSphi(), m_addArray, m_id, m_sp, AlcaSiPixelAliHarvester0T_cff::method, NODEF, L1MuDTSectorProcessor::ovl(), L1MuDTTrackSegPhi::phib(), PT12H, PT12HO, PT12L, PT12LO, PT13H, PT13HO, PT13L, PT13LO, PT14H, PT14HO, PT14L, PT14LO, PT15HO, PT15LO, PT23H, PT23HO, PT23L, PT23LO, PT24H, PT24HO, PT24L, PT24LO, PT25HO, PT25LO, PT34H, PT34HO, PT34L, PT34LO, alignCSCRings::s, L1MuDTAddressArray::station(), L1MuDTSectorProcessor::TA(), thePtaLUTs, DiMuonV_cfg::threshold, and L1MuDTTrackAssembler::trackBitMap().
Referenced by PtAU().
|
private |
get track segment from a given station
Definition at line 320 of file L1MuDTAssignmentUnit.cc.
References m_TSphi, and relativeConstraints::station.
Referenced by getPtMethod(), PhiAU(), and phiDiff().
void L1MuDTAssignmentUnit::PhiAU | ( | const edm::EventSetup & | c | ) |
assign phi
Definition at line 142 of file L1MuDTAssignmentUnit.cc.
References l1t::bitShift(), DummyCfis::c, L1MuDTTrackFinder::config(), convertSector(), dqmdumpme::first, L1MuDTPhiLut::getDeltaPhi(), L1MuDTTFConfig::getNbitsPhiPhi(), L1MuDTTFConfig::getNbitsPhiPhib(), getTSphi(), L1MuDTSectorProcessor::id(), isotrackApplyRegressor::k, m_id, m_sp, phi, L1MuDTTrackSegPhi::phi(), L1MuDTTrackSegPhi::phib(), edm::second(), nano_mu_digi_cff::sector, L1MuDTSecProcId::sector(), L1MuDTTrackSegPhi::sector(), L1MuDTTrack::setPhi(), L1MuDTSectorProcessor::tf(), thePhiLUTs, thePhiToken, L1MuDTSectorProcessor::track(), and L1MuDTSectorProcessor::tracK().
Referenced by run().
|
private |
build difference of two phi values
Definition at line 739 of file L1MuDTAssignmentUnit.cc.
References l1t::bitShift(), getTSphi(), nbit_phi, HLT_IsoTrack_cff::offset, L1MuDTTrackSegPhi::phi(), L1MuDTTrackSegPhi::sector(), hgcalTopologyTester_cfi::sector1, and hgcalTopologyTester_cfi::sector2.
Referenced by getPtAddress().
void L1MuDTAssignmentUnit::PtAU | ( | const edm::EventSetup & | c | ) |
assign pt and charge
Definition at line 214 of file L1MuDTAssignmentUnit.cc.
References DummyCfis::c, ALCARECOTkAlJpsiMuMu_cff::charge, getCharge(), L1MuDTPtaLut::getPt(), getPtAddress(), getPtMethod(), m_id, m_ptAssMethod, m_sp, DiDispStaMuonMonitor_cfi::pt, L1MuDTTrack::setCharge(), L1MuDTTrack::setPt(), thePtaLUTs, thePtaToken, L1MuDTSectorProcessor::track(), and L1MuDTSectorProcessor::tracK().
Referenced by run().
void L1MuDTAssignmentUnit::QuaAU | ( | ) |
assign quality
Definition at line 241 of file L1MuDTAssignmentUnit.cc.
References m_id, m_sp, quality, L1MuDTTrack::setQuality(), T12, T123, T1234, T124, T13, T134, T14, T23, T234, T24, T34, L1MuDTSectorProcessor::TA(), L1MuDTSectorProcessor::track(), L1MuDTSectorProcessor::tracK(), and L1MuDTTrackAssembler::trackClass().
Referenced by run().
void L1MuDTAssignmentUnit::reset | ( | void | ) |
reset Assignment Unit
Definition at line 133 of file L1MuDTAssignmentUnit.cc.
References m_addArray, m_ptAssMethod, m_TSphi, NODEF, and L1MuDTAddressArray::reset().
Referenced by L1MuDTAssignmentUnit().
void L1MuDTAssignmentUnit::run | ( | const edm::EventSetup & | c | ) |
run Assignment Unit
Definition at line 87 of file L1MuDTAssignmentUnit.cc.
References L1MuDTTrackAssembler::address(), nano_mu_digi_cff::bx, DummyCfis::c, L1MuDTTrack::enable(), m_addArray, m_id, m_sp, m_TSphi, PhiAU(), PtAU(), QuaAU(), L1MuDTTrack::setAddresses(), L1MuRegionalCand::setBx(), L1MuDTTrack::setTC(), L1MuDTTrack::setTSphi(), L1MuDTSectorProcessor::TA(), L1MuDTSectorProcessor::track(), L1MuDTSectorProcessor::tracK(), L1MuDTTrackAssembler::trackClass(), and TSR().
void L1MuDTAssignmentUnit::setPrecision | ( | ) |
set precision of phi and phib
Definition at line 770 of file L1MuDTAssignmentUnit.cc.
References L1MuDTTrackFinder::config(), L1MuDTTFConfig::getNbitsPtaPhi(), L1MuDTTFConfig::getNbitsPtaPhib(), m_sp, nbit_phi, nbit_phib, and L1MuDTSectorProcessor::tf().
Referenced by L1MuDTAssignmentUnit().
|
private |
Track Segment Router.
Definition at line 304 of file L1MuDTAssignmentUnit.cc.
References L1MuDTSectorProcessor::data(), L1MuDTDataBuffer::getTSphi(), m_addArray, m_sp, m_TSphi, and L1MuDTAddressArray::station().
Referenced by run().
|
private |
Definition at line 105 of file L1MuDTAssignmentUnit.h.
Referenced by getPtMethod(), reset(), run(), and TSR().
|
private |
Definition at line 103 of file L1MuDTAssignmentUnit.h.
Referenced by getPtMethod(), PhiAU(), PtAU(), QuaAU(), and run().
|
private |
Definition at line 107 of file L1MuDTAssignmentUnit.h.
|
private |
Definition at line 102 of file L1MuDTAssignmentUnit.h.
Referenced by getPtMethod(), PhiAU(), PtAU(), QuaAU(), run(), setPrecision(), and TSR().
|
private |
Definition at line 106 of file L1MuDTAssignmentUnit.h.
Referenced by getTSphi(), L1MuDTAssignmentUnit(), reset(), run(), and TSR().
|
private |
Definition at line 113 of file L1MuDTAssignmentUnit.h.
Referenced by phiDiff(), and setPrecision().
|
private |
Definition at line 114 of file L1MuDTAssignmentUnit.h.
Referenced by setPrecision().
|
private |
phi-assignment look-up tables
Definition at line 111 of file L1MuDTAssignmentUnit.h.
Referenced by PhiAU().
|
private |
Definition at line 109 of file L1MuDTAssignmentUnit.h.
Referenced by PhiAU().
|
private |
pt-assignment look-up tables
Definition at line 112 of file L1MuDTAssignmentUnit.h.
Referenced by getPtMethod(), and PtAU().
|
private |
Definition at line 110 of file L1MuDTAssignmentUnit.h.
Referenced by PtAU().