#include <L1MuBMAssignmentUnit.h>
Public Member Functions | |
L1MuBMAssignmentUnit (L1MuBMSectorProcessor &sp, int id) | |
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... | |
unsigned int | Quality () |
void | reset () override |
reset Assignment Unit More... | |
void | run (const edm::EventSetup &c) override |
run Assignment Unit More... | |
~L1MuBMAssignmentUnit () override | |
destructor More... | |
Public Member Functions inherited from L1AbstractProcessor | |
virtual void | run () |
run processor logic More... | |
virtual void | run () |
run processor logic More... | |
virtual | ~L1AbstractProcessor () |
destructor More... | |
virtual | ~L1AbstractProcessor () |
destructor More... | |
Static Public Member Functions | |
static void | setPrecision () |
set precision of phi and phib More... | |
Private Member Functions | |
int | getPt1Address (L1MuBMLUTHandler::PtAssMethod) const |
L1MuBMLUTHandler::PtAssMethod | getPt1Method (L1MuBMLUTHandler::PtAssMethod) const |
int | getPt2Address (L1MuBMLUTHandler::PtAssMethod) const |
L1MuBMLUTHandler::PtAssMethod | getPt2Method (L1MuBMLUTHandler::PtAssMethod) const |
int | getPtAddress (L1MuBMLUTHandler::PtAssMethod, int bendcharge=0) const |
calculate bend angle More... | |
L1MuBMLUTHandler::PtAssMethod | getPtMethod () const |
determine pt assignment method More... | |
const L1MuBMTrackSegPhi * | 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... | |
Static Private Member Functions | |
static int | convertSector (int) |
convert sector Id to 8 bit code (= sector center) More... | |
static int | getCharge (L1MuBMLUTHandler::PtAssMethod) |
determine charge More... | |
Private Attributes | |
edm::ESHandle< L1TMuonBarrelParams > | bmtfParamsHandle |
L1MuBMAddressArray | m_addArray |
int | m_id |
L1MuBMLUTHandler::PtAssMethod | m_ptAssMethod |
L1MuBMSectorProcessor & | m_sp |
std::vector< const L1MuBMTrackSegPhi * > | m_TSphi |
L1MuBMLUTHandler * | thePhiLUTs |
phi-assignment look-up tables More... | |
L1MuBMLUTHandler * | thePtaLUTs |
pt-assignment look-up tables More... | |
Static Private Attributes | |
static unsigned short | nbit_phi = 12 |
static unsigned short | nbit_phib = 10 |
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 52 of file L1MuBMAssignmentUnit.h.
L1MuBMAssignmentUnit::L1MuBMAssignmentUnit | ( | L1MuBMSectorProcessor & | sp, |
int | id | ||
) |
constructor
Definition at line 55 of file L1MuBMAssignmentUnit.cc.
References m_TSphi, reset(), and setPrecision().
|
override |
|
staticprivate |
convert sector Id to 8 bit code (= sector center)
Definition at line 415 of file L1MuBMAssignmentUnit.cc.
|
staticprivate |
determine charge
Definition at line 425 of file L1MuBMAssignmentUnit.cc.
References AlcaSiPixelAliHarvester0T_cff::method, L1MuBMLUTHandler::NODEF, L1MuBMLUTHandler::PT12H, L1MuBMLUTHandler::PT12L, L1MuBMLUTHandler::PT13H, L1MuBMLUTHandler::PT13L, L1MuBMLUTHandler::PT14H, L1MuBMLUTHandler::PT14L, L1MuBMLUTHandler::PT23H, L1MuBMLUTHandler::PT23L, L1MuBMLUTHandler::PT24H, L1MuBMLUTHandler::PT24L, L1MuBMLUTHandler::PT34H, and L1MuBMLUTHandler::PT34L.
Referenced by PtAU().
|
private |
Definition at line 761 of file L1MuBMAssignmentUnit.cc.
References getTSphi(), AlcaSiPixelAliHarvester0T_cff::method, L1MuBMLUTHandler::NODEF, L1MuBMTrackSegPhi::phib(), L1MuBMLUTHandler::PT12H, L1MuBMLUTHandler::PT13H, L1MuBMLUTHandler::PT14H, L1MuBMLUTHandler::PT23H, L1MuBMLUTHandler::PT24H, and L1MuBMLUTHandler::PT34H.
Referenced by PtAU().
|
private |
Definition at line 674 of file L1MuBMAssignmentUnit.cc.
References getTSphi(), AlcaSiPixelAliHarvester0T_cff::method, L1MuBMLUTHandler::NODEF, L1MuBMLUTHandler::PB12H, L1MuBMLUTHandler::PB13H, L1MuBMLUTHandler::PB14H, L1MuBMLUTHandler::PB23H, L1MuBMLUTHandler::PB24H, L1MuBMLUTHandler::PB34H, L1MuBMLUTHandler::PT12H, L1MuBMLUTHandler::PT13H, L1MuBMLUTHandler::PT14H, L1MuBMLUTHandler::PT23H, L1MuBMLUTHandler::PT24H, L1MuBMLUTHandler::PT34H, and L1MuBMTrackSegPhi::quality().
Referenced by PtAU().
|
private |
Definition at line 808 of file L1MuBMAssignmentUnit.cc.
References getTSphi(), AlcaSiPixelAliHarvester0T_cff::method, L1MuBMLUTHandler::NODEF, L1MuBMTrackSegPhi::phib(), L1MuBMLUTHandler::PT12H, L1MuBMLUTHandler::PT14H, and L1MuBMLUTHandler::PT24H.
Referenced by PtAU().
|
private |
Definition at line 728 of file L1MuBMAssignmentUnit.cc.
References getTSphi(), AlcaSiPixelAliHarvester0T_cff::method, L1MuBMLUTHandler::NODEF, L1MuBMLUTHandler::PB21H, L1MuBMLUTHandler::PT12H, and L1MuBMTrackSegPhi::quality().
Referenced by PtAU().
|
private |
calculate bend angle
Definition at line 561 of file L1MuBMAssignmentUnit.cc.
References AlcaSiPixelAliHarvester0T_cff::method, L1MuBMLUTHandler::NODEF, phiDiff(), L1MuBMLUTHandler::PT12H, L1MuBMLUTHandler::PT12L, L1MuBMLUTHandler::PT13H, L1MuBMLUTHandler::PT13L, L1MuBMLUTHandler::PT14H, L1MuBMLUTHandler::PT14L, L1MuBMLUTHandler::PT23H, L1MuBMLUTHandler::PT23L, L1MuBMLUTHandler::PT24H, L1MuBMLUTHandler::PT24L, L1MuBMLUTHandler::PT34H, and L1MuBMLUTHandler::PT34L.
Referenced by PtAU().
|
private |
determine pt assignment method
Definition at line 495 of file L1MuBMAssignmentUnit.cc.
References funct::abs(), L1MuBMLUTHandler::getPtLutThreshold(), getTSphi(), m_id, m_sp, AlcaSiPixelAliHarvester0T_cff::method, L1MuBMLUTHandler::NODEF, L1MuBMTrackSegPhi::phib(), L1MuBMLUTHandler::PT12H, L1MuBMLUTHandler::PT12L, L1MuBMLUTHandler::PT13H, L1MuBMLUTHandler::PT13L, L1MuBMLUTHandler::PT14H, L1MuBMLUTHandler::PT14L, L1MuBMLUTHandler::PT23H, L1MuBMLUTHandler::PT23L, L1MuBMLUTHandler::PT24H, L1MuBMLUTHandler::PT24L, L1MuBMLUTHandler::PT34H, L1MuBMLUTHandler::PT34L, alignCSCRings::s, L1MuBMSectorProcessor::TA(), thePtaLUTs, remoteMonitoring_LED_IterMethod_cfg::threshold, and L1MuBMTrackAssembler::trackBitMap().
Referenced by PtAU().
|
private |
get track segment from a given station
Definition at line 399 of file L1MuBMAssignmentUnit.cc.
References m_TSphi, hgcalPlots::stat, and relativeConstraints::station.
Referenced by getPt1Address(), getPt1Method(), getPt2Address(), getPt2Method(), getPtMethod(), PhiAU(), and phiDiff().
void L1MuBMAssignmentUnit::PhiAU | ( | const edm::EventSetup & | c | ) |
assign phi
< phi-assignment look-up tables
Definition at line 123 of file L1MuBMAssignmentUnit.cc.
References funct::abs(), bmtfParamsHandle, HltBtagPostValidation_cff::c, dqmdumpme::first, edm::eventsetup::EventSetupRecordImplementation< T >::get(), L1MuBMLUTHandler::getDeltaPhi(), L1MuBMTFConfig::getNbitsPhiPhi(), L1MuBMTFConfig::getNbitsPhiPhib(), getTSphi(), L1MuBMSectorProcessor::id(), dqmdumpme::k, m_id, m_sp, phi, L1MuBMTrackSegPhi::phi(), L1MuBMTrackSegPhi::phib(), edm::ESHandle< T >::product(), edm::second(), L1MuBMSecProcId::sector(), L1MuBMTrackSegPhi::sector(), L1MuBMTrack::setPhi(), thePhiLUTs, L1MuBMSectorProcessor::track(), and L1MuBMSectorProcessor::tracK().
Referenced by run().
|
private |
build difference of two phi values
Definition at line 644 of file L1MuBMAssignmentUnit.cc.
References getTSphi(), nbit_phi, hltrates_dqm_sourceclient-live_cfg::offset, L1MuBMTrackSegPhi::phi(), L1MuBMTrackSegPhi::sector(), hgcalTopologyTester_cfi::sector1, and hgcalTopologyTester_cfi::sector2.
Referenced by getPtAddress().
void L1MuBMAssignmentUnit::PtAU | ( | const edm::EventSetup & | c | ) |
assign pt and charge
< pt-assignment look-up tables
Definition at line 201 of file L1MuBMAssignmentUnit.cc.
References funct::abs(), bmtfParamsHandle, HltBtagPostValidation_cff::c, ALCARECOTkAlJpsiMuMu_cff::charge, edm::eventsetup::EventSetupRecordImplementation< T >::get(), L1TMuonBarrelParamsAllPublic::get_DisableNewAlgo(), getCharge(), L1MuBMLUTHandler::getPt(), getPt1Address(), getPt1Method(), getPt2Address(), getPt2Method(), getPtAddress(), getPtMethod(), m_id, m_ptAssMethod, m_sp, L1MuBMLUTHandler::NODEF, edm::ESHandle< T >::product(), DiDispStaMuonMonitor_cfi::pt, Quality(), L1MuBMTrack::setCharge(), L1MuBMTrack::setPt(), thePtaLUTs, L1MuBMSectorProcessor::track(), and L1MuBMSectorProcessor::tracK().
Referenced by run().
void L1MuBMAssignmentUnit::QuaAU | ( | ) |
assign quality
Two LSBs of BMTF Q = Nstations-1
Two MSB of BMTF Q = 11
Definition at line 255 of file L1MuBMAssignmentUnit.cc.
References m_id, m_sp, qcdUeDQM_cfi::quality, L1MuBMTrack::setQuality(), T12, T123, T1234, T124, T13, T134, T14, T23, T234, T24, T34, L1MuBMSectorProcessor::TA(), L1MuBMSectorProcessor::track(), L1MuBMSectorProcessor::tracK(), and L1MuBMTrackAssembler::trackClass().
Referenced by run().
unsigned int L1MuBMAssignmentUnit::Quality | ( | ) |
Definition at line 322 of file L1MuBMAssignmentUnit.cc.
References m_id, m_sp, qcdUeDQM_cfi::quality, T12, T123, T1234, T124, T13, T134, T14, T23, T234, T24, T34, L1MuBMSectorProcessor::TA(), and L1MuBMTrackAssembler::trackClass().
Referenced by PtAU().
|
overridevirtual |
reset Assignment Unit
Implements L1AbstractProcessor.
Definition at line 114 of file L1MuBMAssignmentUnit.cc.
References m_addArray, m_ptAssMethod, m_TSphi, L1MuBMLUTHandler::NODEF, and L1MuBMAddressArray::reset().
Referenced by L1MuBMAssignmentUnit().
|
overridevirtual |
run Assignment Unit
Reimplemented from L1AbstractProcessor.
Definition at line 75 of file L1MuBMAssignmentUnit.cc.
References L1MuBMTrackAssembler::address(), l1GtPatternGenerator_cfi::bx, HltBtagPostValidation_cff::c, L1MuBMTrack::enable(), m_addArray, m_id, m_sp, m_TSphi, PhiAU(), PtAU(), QuaAU(), L1MuBMTrack::setAddresses(), L1MuBMTrack::setBx(), L1MuBMTrack::setTC(), L1MuBMTrack::setTSphi(), L1MuBMSectorProcessor::TA(), L1MuBMSectorProcessor::track(), L1MuBMSectorProcessor::tracK(), L1MuBMTrackAssembler::trackClass(), and TSR().
|
static |
set precision of phi and phib
Definition at line 846 of file L1MuBMAssignmentUnit.cc.
References L1MuBMTFConfig::getNbitsPtaPhi(), L1MuBMTFConfig::getNbitsPtaPhib(), nbit_phi, and nbit_phib.
Referenced by L1MuBMAssignmentUnit().
|
private |
Track Segment Router.
Definition at line 383 of file L1MuBMAssignmentUnit.cc.
References L1MuBMSectorProcessor::data(), L1MuBMDataBuffer::getTSphi(), m_addArray, m_sp, m_TSphi, hgcalPlots::stat, and L1MuBMAddressArray::station().
Referenced by run().
|
private |
Definition at line 113 of file L1MuBMAssignmentUnit.h.
|
private |
Definition at line 109 of file L1MuBMAssignmentUnit.h.
|
private |
Definition at line 107 of file L1MuBMAssignmentUnit.h.
Referenced by getPtMethod(), PhiAU(), PtAU(), QuaAU(), Quality(), and run().
|
private |
Definition at line 111 of file L1MuBMAssignmentUnit.h.
|
private |
Definition at line 106 of file L1MuBMAssignmentUnit.h.
Referenced by getPtMethod(), PhiAU(), PtAU(), QuaAU(), Quality(), run(), and TSR().
|
private |
Definition at line 110 of file L1MuBMAssignmentUnit.h.
Referenced by getTSphi(), L1MuBMAssignmentUnit(), reset(), run(), and TSR().
|
staticprivate |
Definition at line 116 of file L1MuBMAssignmentUnit.h.
Referenced by phiDiff(), and setPrecision().
|
staticprivate |
Definition at line 117 of file L1MuBMAssignmentUnit.h.
Referenced by setPrecision().
|
private |
phi-assignment look-up tables
Definition at line 115 of file L1MuBMAssignmentUnit.h.
Referenced by PhiAU().
|
private |
pt-assignment look-up tables
Definition at line 114 of file L1MuBMAssignmentUnit.h.
Referenced by getPtMethod(), and PtAU().