#include <L1MuRegionalCand.h>
Public Types | |
enum | { PHI_START = 0 } |
enum | { PHI_LENGTH = 8 } |
enum | { PT_START = 8 } |
enum | { PT_LENGTH = 5 } |
enum | { QUAL_START = 13 } |
enum | { QUAL_LENGTH = 3 } |
enum | { ETA_START = 16 } |
enum | { ETA_LENGTH = 6 } |
enum | { FINEHALO_START = 22 } |
enum | { FINEHALO_LENGTH = 1 } |
enum | { CHARGE_START = 23 } |
enum | { CHARGE_LENGTH = 1 } |
enum | { CHVALID_START = 24 } |
enum | { CHVALID_LENGTH = 1 } |
enum | { TYPE_START = 30 } |
enum | { TYPE_LENGTH = 2 } |
Public Member Functions | |
int | bx () const |
return bunch crossing identifier More... | |
unsigned | charge_packed () const |
return charge packed as in hardware (0=pos, 1=neg) More... | |
unsigned | charge_valid_packed () const |
return charge valid packed as in hardware (1=valid, 0=not valid) More... | |
bool | chargeValid () const |
is the charge valid ? More... | |
int | chargeValue () const |
get charge More... | |
virtual bool | empty () const |
return empty flag More... | |
unsigned | eta_packed () const |
return eta packed as in hardware More... | |
float | etaValue () const |
get eta-value of muon candidate More... | |
unsigned | finehalo_packed () const |
return eta-fine (for DT) / halo (for CSC) bit More... | |
unsigned | getDataWord () const |
return data word More... | |
bool | isFineHalo () const |
is it fine (DT) / halo (CSC) ? More... | |
L1MuRegionalCand (unsigned dataword=0, int bx=0) | |
constructor from data word More... | |
L1MuRegionalCand (unsigned type_idx, unsigned phi, unsigned eta, unsigned pt, unsigned charge, unsigned ch_valid, unsigned finehalo, unsigned quality, int bx) | |
constructor from packed members More... | |
unsigned | phi_packed () const |
return phi packed as in hardware More... | |
float | phiValue () const |
get phi-value of muon candidate in radians (low edge of bin) More... | |
virtual void | print () const |
print candidate More... | |
unsigned | pt_packed () const |
return pt packed as in hardware More... | |
float | ptValue () const |
get pt-value of muon candidate in GeV More... | |
unsigned int | quality () const |
return quality More... | |
unsigned int | quality_packed () const |
return quality packed as in hardware More... | |
virtual void | reset () |
reset More... | |
void | setBx (int bx) |
Set Bunch Crossing. More... | |
void | setChargePacked (unsigned ch) |
Set Charge (0=pos, 1=neg) More... | |
void | setChargeValid (bool valid) |
Set Charge Valid. More... | |
void | setChargeValidPacked (unsigned valid) |
Set Charge Valid. More... | |
void | setChargeValue (int charge) |
Set Charge Value: -1, 1. More... | |
void | setDataWord (unsigned dataword) |
Set data word. More... | |
void | setEtaPacked (unsigned eta) |
Set Eta: 6-bit code. More... | |
void | setEtaValue (float etaVal) |
Set Eta Value (need to set type, first) More... | |
void | setFineHalo (bool fh) |
Set Fine / Halo. More... | |
void | setFineHaloPacked (unsigned fh) |
Set Fine / Halo. More... | |
void | setPhiPacked (unsigned phi) |
Set Phi: 0..143. More... | |
void | setPhiValue (float phiVal) |
Set Phi Value. More... | |
void | setPtPacked (unsigned pt) |
Set Pt: 0..31. More... | |
void | setPtValue (float ptVal) |
Set Pt Value. More... | |
void | setQualityPacked (unsigned qual) |
Set Quality: 0..7. More... | |
void | setType (unsigned type) |
Set Type: 0 DT, 1 bRPC, 2 CSC, 3 fRPC. More... | |
unsigned | type_idx () const |
return type: 0 DT, 1 bRPC, 2 CSC, 3 fRPC More... | |
virtual | ~L1MuRegionalCand () |
destructor More... | |
Private Member Functions | |
unsigned | readDataField (unsigned start, unsigned count) const |
void | writeDataField (unsigned start, unsigned count, unsigned value) |
Private Attributes | |
int | m_bx |
unsigned | m_dataWord |
float | m_etaValue |
float | m_phiValue |
float | m_ptValue |
Static Private Attributes | |
static const float | m_invalidValue = -10. |
A regional muon trigger candidate as received by the GMT
Definition at line 26 of file L1MuRegionalCand.h.
anonymous enum |
anonymous enum |
anonymous enum |
Enumerator | |
---|---|
PT_START |
Definition at line 188 of file L1MuRegionalCand.h.
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
L1MuRegionalCand::L1MuRegionalCand | ( | unsigned | dataword = 0 , |
int | bx = 0 |
||
) |
constructor from data word
Definition at line 42 of file L1MuRegionalCand.cc.
References m_etaValue, m_invalidValue, m_phiValue, and m_ptValue.
L1MuRegionalCand::L1MuRegionalCand | ( | unsigned | type_idx, |
unsigned | phi, | ||
unsigned | eta, | ||
unsigned | pt, | ||
unsigned | charge, | ||
unsigned | ch_valid, | ||
unsigned | finehalo, | ||
unsigned | quality, | ||
int | bx | ||
) |
constructor from packed members
Definition at line 49 of file L1MuRegionalCand.cc.
References ALCARECOTkAlJpsiMuMu_cff::charge, PVValHelper::eta, m_etaValue, m_invalidValue, m_phiValue, m_ptValue, phi, DiDispStaMuonMonitor_cfi::pt, quality(), setChargePacked(), setChargeValidPacked(), setEtaPacked(), setFineHaloPacked(), setPhiPacked(), setPtPacked(), setQualityPacked(), setType(), and type_idx().
|
inlinevirtual |
|
inline |
return bunch crossing identifier
Definition at line 79 of file L1MuRegionalCand.h.
References m_bx.
Referenced by csc::L1Track::BX(), csc::L1Track::L1Track(), L1MuDTTrack::operator!=(), csc::L1Track::operator=(), L1MuDTTrack::operator=(), L1MuDTTrack::operator==(), print(), L1MuDTTrack::print(), setBx(), and L1DummyProducer::SimpleDigi().
|
inline |
return charge packed as in hardware (0=pos, 1=neg)
Definition at line 101 of file L1MuRegionalCand.h.
References CHARGE_LENGTH, CHARGE_START, and readDataField().
Referenced by CSCTFanalyzer::analyze(), csc::L1Track::L1Track(), csc::L1Track::operator=(), csc::L1Track::Print(), L1MuDTTrack::print(), L1MuGMTEtaProjectionUnit::run(), and L1MuGMTPhiProjectionUnit::run().
|
inline |
return charge valid packed as in hardware (1=valid, 0=not valid)
Definition at line 104 of file L1MuRegionalCand.h.
References CHVALID_LENGTH, CHVALID_START, and readDataField().
Referenced by chargeValid(), csc::L1Track::L1Track(), and csc::L1Track::operator=().
|
inline |
is the charge valid ?
Definition at line 67 of file L1MuRegionalCand.h.
References charge_valid_packed().
Referenced by print().
|
inline |
get charge
Definition at line 64 of file L1MuRegionalCand.h.
References CHARGE_LENGTH, CHARGE_START, and readDataField().
Referenced by L1MuDTTrack::charge(), and print().
|
inlinevirtual |
return empty flag
Getters - values
Reimplemented in L1MuDTTrack.
Definition at line 50 of file L1MuRegionalCand.h.
References PHI_LENGTH, PHI_START, PT_LENGTH, PT_START, and readDataField().
Referenced by csc::L1Track::Print(), print(), L1MuGMTEtaProjectionUnit::run(), and L1MuGMTPhiProjectionUnit::run().
|
inline |
return eta packed as in hardware
Definition at line 95 of file L1MuRegionalCand.h.
References ETA_LENGTH, ETA_START, and readDataField().
Referenced by CSCTFanalyzer::analyze(), L1MuDTTrack::eta(), csc::L1Track::L1Track(), csc::L1Track::operator=(), csc::L1Track::Print(), print(), L1MuDTTrack::print(), L1MuGMTEtaProjectionUnit::run(), and L1MuGMTPhiProjectionUnit::run().
float L1MuRegionalCand::etaValue | ( | ) | const |
get eta-value of muon candidate
Definition at line 87 of file L1MuRegionalCand.cc.
References m_etaValue, and m_invalidValue.
Referenced by HLTDTActivityFilter::matchChamber(), print(), and L1DummyProducer::SimpleDigi().
|
inline |
return eta-fine (for DT) / halo (for CSC) bit
Definition at line 98 of file L1MuRegionalCand.h.
References FINEHALO_LENGTH, FINEHALO_START, and readDataField().
Referenced by isFineHalo(), csc::L1Track::L1Track(), csc::L1Track::operator=(), and L1MuDTTrack::print().
|
inline |
return data word
Definition at line 107 of file L1MuRegionalCand.h.
References m_dataWord.
Referenced by L1GtPatternGenerator::analyze(), csc::L1Track::L1Track(), csc::L1Track::operator=(), L1MuDTTrack::operator=(), and L1DummyProducer::SimpleDigi().
|
inline |
is it fine (DT) / halo (CSC) ?
Definition at line 70 of file L1MuRegionalCand.h.
References finehalo_packed().
Referenced by L1MuDTTrack::fineEtaBit(), and print().
|
inline |
return phi packed as in hardware
Getters - packed format
Definition at line 86 of file L1MuRegionalCand.h.
References PHI_LENGTH, PHI_START, and readDataField().
Referenced by CSCTFanalyzer::analyze(), csc::L1Track::L1Track(), csc::L1Track::operator=(), L1MuDTTrack::phi(), csc::L1Track::Print(), print(), L1MuDTTrack::print(), and L1MuGMTPhiProjectionUnit::run().
float L1MuRegionalCand::phiValue | ( | ) | const |
get phi-value of muon candidate in radians (low edge of bin)
Definition at line 80 of file L1MuRegionalCand.cc.
References m_invalidValue, and m_phiValue.
Referenced by HLTDTActivityFilter::matchChamber(), print(), and L1DummyProducer::SimpleDigi().
|
virtual |
print candidate
Reimplemented in L1MuDTTrack.
Definition at line 101 of file L1MuRegionalCand.cc.
References bx(), chargeValid(), chargeValue(), empty(), eta_packed(), etaValue(), alignBH_cfg::fixed, isFineHalo(), m_etaValue, m_invalidValue, m_phiValue, m_ptValue, phi_packed(), phiValue(), pt_packed(), ptValue(), quality(), and type_idx().
|
inline |
return pt packed as in hardware
Definition at line 89 of file L1MuRegionalCand.h.
References PT_LENGTH, PT_START, and readDataField().
Referenced by CSCTFanalyzer::analyze(), csc::L1Track::L1Track(), L1EmulBias::ModifyCollection(), csc::L1Track::operator=(), csc::L1Track::Print(), print(), L1MuDTTrack::print(), L1MuDTTrack::pt(), L1MuGMTEtaProjectionUnit::run(), and L1MuGMTPhiProjectionUnit::run().
float L1MuRegionalCand::ptValue | ( | ) | const |
get pt-value of muon candidate in GeV
Definition at line 94 of file L1MuRegionalCand.cc.
References m_invalidValue, and m_ptValue.
Referenced by print(), and L1DummyProducer::SimpleDigi().
|
inline |
return quality
Definition at line 73 of file L1MuRegionalCand.h.
References quality_packed().
Referenced by csc::L1Track::decodeRank(), csc::L1Track::encodeRank(), L1MuDTTrackCand::L1MuDTTrackCand(), L1MuRegionalCand(), L1EmulBias::ModifyCollection(), L1MuDTTrack::operator!=(), L1MuDTTrack::operator==(), print(), and L1MuDTTrack::setQuality().
|
inline |
return quality packed as in hardware
Definition at line 92 of file L1MuRegionalCand.h.
References QUAL_LENGTH, QUAL_START, and readDataField().
Referenced by csc::L1Track::L1Track(), csc::L1Track::operator=(), csc::L1Track::Print(), L1MuDTTrack::print(), quality(), and L1MuDTTrackCand::setTC().
|
private |
Definition at line 129 of file L1MuRegionalCand.cc.
References submitPVResolutionJobs::count, m_dataWord, ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::mask, and command_line::start.
Referenced by charge_packed(), charge_valid_packed(), chargeValue(), empty(), eta_packed(), finehalo_packed(), phi_packed(), pt_packed(), quality_packed(), and type_idx().
|
virtual |
reset
Reimplemented in L1MuDTTrack.
Definition at line 72 of file L1MuRegionalCand.cc.
References m_bx, m_dataWord, m_etaValue, m_invalidValue, m_phiValue, and m_ptValue.
Referenced by L1MuDTTrack::reset().
|
inline |
Set Bunch Crossing.
Definition at line 117 of file L1MuRegionalCand.h.
Referenced by csc::L1Track::L1Track(), csc::L1Track::operator=(), L1MuDTTrack::operator=(), L1MuDTAssignmentUnit::run(), CSCTFSPCoreLogic::run(), and L1DummyProducer::SimpleDigi().
|
inline |
Set Charge (0=pos, 1=neg)
Definition at line 129 of file L1MuRegionalCand.h.
References CHARGE_LENGTH, CHARGE_START, and writeDataField().
Referenced by L1MuDTTrackCand::L1MuDTTrackCand(), L1MuRegionalCand(), csc::L1Track::L1Track(), csc::L1Track::operator=(), and CSCTFSPCoreLogic::run().
|
inline |
Set Charge Valid.
Definition at line 157 of file L1MuRegionalCand.h.
References CHVALID_LENGTH, CHVALID_START, validateGeometry_cfg::valid, and writeDataField().
Referenced by L1MuDTTrack::L1MuDTTrack(), and L1MuDTTrack::setCharge().
|
inline |
Set Charge Valid.
Definition at line 132 of file L1MuRegionalCand.h.
References CHVALID_LENGTH, CHVALID_START, validateGeometry_cfg::valid, and writeDataField().
Referenced by L1MuDTTrackCand::L1MuDTTrackCand(), L1MuRegionalCand(), csc::L1Track::L1Track(), and csc::L1Track::operator=().
|
inline |
Set Charge Value: -1, 1.
Definition at line 154 of file L1MuRegionalCand.h.
References ALCARECOTkAlJpsiMuMu_cff::charge, CHARGE_LENGTH, CHARGE_START, and writeDataField().
Referenced by L1MuDTTrack::setCharge().
|
inline |
Set data word.
Definition at line 166 of file L1MuRegionalCand.h.
References m_dataWord.
Referenced by csc::L1Track::L1Track(), csc::L1Track::operator=(), L1MuDTTrack::operator=(), and L1DummyProducer::SimpleDigi().
|
inline |
Set Eta: 6-bit code.
Definition at line 135 of file L1MuRegionalCand.h.
References PVValHelper::eta, ETA_LENGTH, ETA_START, and writeDataField().
Referenced by L1MuDTTrackCand::L1MuDTTrackCand(), L1MuRegionalCand(), csc::L1Track::L1Track(), csc::L1Track::operator=(), CSCTFSPCoreLogic::run(), and L1MuDTTrack::setEta().
|
inline |
Set Eta Value (need to set type, first)
Definition at line 151 of file L1MuRegionalCand.h.
References m_etaValue.
Referenced by L1DummyProducer::SimpleDigi().
|
inline |
Set Fine / Halo.
Definition at line 160 of file L1MuRegionalCand.h.
References FINEHALO_LENGTH, FINEHALO_START, and writeDataField().
Referenced by L1MuDTTrack::setFineEtaBit().
|
inline |
Set Fine / Halo.
Definition at line 138 of file L1MuRegionalCand.h.
References FINEHALO_LENGTH, FINEHALO_START, and writeDataField().
Referenced by L1MuDTTrackCand::L1MuDTTrackCand(), L1MuRegionalCand(), csc::L1Track::L1Track(), csc::L1Track::operator=(), and CSCTFSPCoreLogic::run().
|
inline |
Set Phi: 0..143.
Definition at line 120 of file L1MuRegionalCand.h.
References phi, PHI_LENGTH, PHI_START, and writeDataField().
Referenced by L1MuDTTrackCand::L1MuDTTrackCand(), L1MuRegionalCand(), csc::L1Track::L1Track(), csc::L1Track::operator=(), and L1MuDTTrack::setPhi().
|
inline |
Set Phi Value.
Setters - values
Definition at line 145 of file L1MuRegionalCand.h.
References m_phiValue.
Referenced by L1DummyProducer::SimpleDigi().
|
inline |
Set Pt: 0..31.
Definition at line 123 of file L1MuRegionalCand.h.
References DiDispStaMuonMonitor_cfi::pt, PT_LENGTH, PT_START, and writeDataField().
Referenced by L1MuDTTrackCand::L1MuDTTrackCand(), L1MuRegionalCand(), csc::L1Track::L1Track(), L1EmulBias::ModifyCollection(), csc::L1Track::operator=(), and L1MuDTTrack::setPt().
|
inline |
Set Pt Value.
Definition at line 148 of file L1MuRegionalCand.h.
References m_ptValue.
Referenced by L1DummyProducer::SimpleDigi().
|
inline |
Set Quality: 0..7.
Definition at line 126 of file L1MuRegionalCand.h.
References QUAL_LENGTH, QUAL_START, and writeDataField().
Referenced by L1MuDTTrackCand::L1MuDTTrackCand(), L1MuRegionalCand(), csc::L1Track::L1Track(), csc::L1Track::operator=(), and L1MuDTTrack::setQuality().
|
inline |
Set Type: 0 DT, 1 bRPC, 2 CSC, 3 fRPC.
Setters - packed format
Definition at line 114 of file L1MuRegionalCand.h.
References TYPE_LENGTH, TYPE_START, and writeDataField().
Referenced by L1MuDTTrack::enable(), L1MuDTTrack::L1MuDTTrack(), L1MuDTTrackCand::L1MuDTTrackCand(), L1MuRegionalCand(), csc::L1Track::L1Track(), L1EmulBias::ModifyCollection(), and csc::L1Track::operator=().
|
inline |
return type: 0 DT, 1 bRPC, 2 CSC, 3 fRPC
Definition at line 76 of file L1MuRegionalCand.h.
References readDataField(), TYPE_LENGTH, and TYPE_START.
Referenced by L1MuDTTrackCand::L1MuDTTrackCand(), L1MuRegionalCand(), csc::L1Track::L1Track(), L1EmulBias::ModifyCollection(), csc::L1Track::operator=(), and print().
|
private |
Definition at line 134 of file L1MuRegionalCand.cc.
References submitPVResolutionJobs::count, m_dataWord, ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::mask, command_line::start, and mitigatedMETSequence_cff::U.
Referenced by setChargePacked(), setChargeValid(), setChargeValidPacked(), setChargeValue(), setEtaPacked(), setFineHalo(), setFineHaloPacked(), setPhiPacked(), setPtPacked(), setQualityPacked(), and setType().
|
private |
Definition at line 176 of file L1MuRegionalCand.h.
|
private |
Definition at line 177 of file L1MuRegionalCand.h.
Referenced by getDataWord(), readDataField(), reset(), setDataWord(), and writeDataField().
|
private |
Definition at line 180 of file L1MuRegionalCand.h.
Referenced by etaValue(), L1MuRegionalCand(), print(), reset(), and setEtaValue().
|
staticprivate |
Definition at line 182 of file L1MuRegionalCand.h.
Referenced by etaValue(), L1MuRegionalCand(), phiValue(), print(), ptValue(), and reset().
|
private |
Definition at line 179 of file L1MuRegionalCand.h.
Referenced by L1MuRegionalCand(), phiValue(), print(), reset(), and setPhiValue().
|
private |
Definition at line 181 of file L1MuRegionalCand.h.
Referenced by L1MuRegionalCand(), print(), ptValue(), reset(), and setPtValue().