#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 186 of file L1MuRegionalCand.h.
anonymous enum |
Enumerator | |
---|---|
PT_LENGTH |
Definition at line 186 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 |
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 m_etaValue, m_invalidValue, m_phiValue, m_ptValue, setChargePacked(), setChargeValidPacked(), setEtaPacked(), setFineHaloPacked(), setPhiPacked(), setPtPacked(), setQualityPacked(), and setType().
|
inlinevirtual |
|
inline |
return bunch crossing identifier
Definition at line 74 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(), RPCTrigger::produce(), L1MuDTTrackFinder::run(), setBx(), and L1DummyProducer::SimpleDigi().
|
inline |
return charge packed as in hardware (0=pos, 1=neg)
Definition at line 97 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(), RPCTrigger::produce(), L1MuGMTMerger::projectedPhi(), L1MuGMTEtaProjectionUnit::run(), L1MuGMTPhiProjectionUnit::run(), and L1MuGMTMerger::sysign().
|
inline |
return charge valid packed as in hardware (1=valid, 0=not valid)
Definition at line 100 of file L1MuRegionalCand.h.
References CHVALID_LENGTH, CHVALID_START, and readDataField().
Referenced by chargeValid(), csc::L1Track::L1Track(), csc::L1Track::operator=(), and L1MuGMTMerger::sysign().
|
inline |
is the charge valid ?
Definition at line 62 of file L1MuRegionalCand.h.
References charge_valid_packed().
Referenced by print().
|
inline |
get charge
Definition at line 59 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 45 of file L1MuRegionalCand.h.
References etaValue(), PHI_LENGTH, PHI_START, phiValue(), PT_LENGTH, PT_START, ptValue(), and readDataField().
Referenced by L1MuGMTSortRankUnit::getVeryLowQualityLevel(), L1MuGMTSortRankUnit::isDisabled(), L1MuGMTMerger::merge_rank(), csc::L1Track::Print(), print(), L1MuGMTEtaProjectionUnit::run(), L1MuGMTPhiProjectionUnit::run(), Vispa.Gui.VispaWidget.TextField::setAutosizeFont(), Vispa.Gui.VispaWidget.TextField::setAutotruncate(), L1MuGMTSortRankUnit::sort_rank(), and L1GlobalTriggerRawToDigi::unpackGMT().
|
inline |
return eta packed as in hardware
Definition at line 91 of file L1MuRegionalCand.h.
References ETA_LENGTH, ETA_START, and readDataField().
Referenced by CSCTFanalyzer::analyze(), L1MuGMTMerger::convertedEta(), L1MuDTTrack::eta(), L1MuGMTSortRankUnit::getVeryLowQualityLevel(), L1MuGMTSortRankUnit::isDisabled(), csc::L1Track::L1Track(), L1MuGMTMerger::merge_rank(), csc::L1Track::operator=(), csc::L1Track::Print(), print(), L1MuDTTrack::print(), RPCTrigger::produce(), L1MuGMTMerger::projectedPhi(), L1MuGMTPSB::receiveData(), L1MuGMTEtaProjectionUnit::run(), L1MuGMTPhiProjectionUnit::run(), L1MuGMTSortRankUnit::sort_rank(), and L1GlobalTriggerRawToDigi::unpackGMT().
float L1MuRegionalCand::etaValue | ( | ) | const |
get eta-value of muon candidate
Definition at line 84 of file L1MuRegionalCand.cc.
References m_etaValue, and m_invalidValue.
Referenced by empty(), HLTDTActivityFilter::matchChamber(), print(), and L1DummyProducer::SimpleDigi().
|
inline |
return eta-fine (for DT) / halo (for CSC) bit
Definition at line 94 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 103 of file L1MuRegionalCand.h.
References m_dataWord.
Referenced by L1GtPatternGenerator::analyze(), csc::L1Track::L1Track(), csc::L1Track::operator=(), L1MuDTTrack::operator=(), L1MuDTTrackFinder::run(), and L1DummyProducer::SimpleDigi().
|
inline |
is it fine (DT) / halo (CSC) ?
Definition at line 65 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 82 of file L1MuRegionalCand.h.
References PHI_LENGTH, PHI_START, and readDataField().
Referenced by CSCTFanalyzer::analyze(), L1MuGMTSortRankUnit::isDisabled(), csc::L1Track::L1Track(), L1MuGMTMerger::merge_rank(), csc::L1Track::operator=(), L1MuDTTrack::phi(), csc::L1Track::Print(), print(), L1MuDTTrack::print(), RPCTrigger::produce(), L1MuGMTMerger::projectedPhi(), L1MuGMTPSB::receiveData(), L1MuGMTPhiProjectionUnit::run(), L1MuGMTSortRankUnit::sort_rank(), and L1GlobalTriggerRawToDigi::unpackGMT().
float L1MuRegionalCand::phiValue | ( | ) | const |
get phi-value of muon candidate in radians (low edge of bin)
Definition at line 76 of file L1MuRegionalCand.cc.
References m_invalidValue, and m_phiValue.
Referenced by empty(), HLTDTActivityFilter::matchChamber(), print(), and L1DummyProducer::SimpleDigi().
|
virtual |
print candidate
Reimplemented in L1MuDTTrack.
Definition at line 100 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().
Referenced by setDataWord().
|
inline |
return pt packed as in hardware
Definition at line 85 of file L1MuRegionalCand.h.
References PT_LENGTH, PT_START, and readDataField().
Referenced by CSCTFanalyzer::analyze(), csc::L1Track::L1Track(), L1MuGMTMerger::merge_rank(), L1EmulBias::ModifyCollection(), csc::L1Track::operator=(), csc::L1Track::Print(), print(), L1MuDTTrack::print(), L1MuGMTMerger::projectedPhi(), L1MuDTTrack::pt(), L1MuGMTPSB::receiveData(), L1MuGMTEtaProjectionUnit::run(), L1MuGMTPhiProjectionUnit::run(), L1MuGMTSortRankUnit::sort_rank(), and L1GlobalTriggerRawToDigi::unpackGMT().
float L1MuRegionalCand::ptValue | ( | ) | const |
get pt-value of muon candidate in GeV
Definition at line 92 of file L1MuRegionalCand.cc.
References m_invalidValue, and m_ptValue.
Referenced by empty(), print(), and L1DummyProducer::SimpleDigi().
|
inline |
return quality
Definition at line 68 of file L1MuRegionalCand.h.
References quality_packed().
Referenced by csc::L1Track::BX(), L1EmulBias::ModifyCollection(), L1MuDTTrack::operator!=(), L1MuDTTrack::operator==(), print(), RPCTrigger::produce(), and L1MuDTTrack::rank().
|
inline |
return quality packed as in hardware
Definition at line 88 of file L1MuRegionalCand.h.
References QUAL_LENGTH, QUAL_START, and readDataField().
Referenced by L1MuGMTSortRankUnit::getVeryLowQualityLevel(), csc::L1Track::L1Track(), L1MuGMTMerger::merge_rank(), csc::L1Track::operator=(), csc::L1Track::Print(), L1MuDTTrack::print(), quality(), L1MuDTTrackCand::setTC(), and L1MuGMTSortRankUnit::sort_rank().
|
private |
Definition at line 133 of file L1MuRegionalCand.cc.
References KineDebug3::count(), m_dataWord, RecoTauDiscriminantConfiguration::mask, and command_line::start.
Referenced by charge_packed(), charge_valid_packed(), chargeValue(), empty(), eta_packed(), finehalo_packed(), phi_packed(), pt_packed(), quality_packed(), setDataWord(), and type_idx().
|
virtual |
reset
Reimplemented in L1MuDTTrack.
Definition at line 66 of file L1MuRegionalCand.cc.
References m_bx, m_dataWord, m_etaValue, m_invalidValue, m_phiValue, and m_ptValue.
Referenced by L1MuDTTrack::reset(), and setFineHalo().
|
inline |
Set Bunch Crossing.
Definition at line 113 of file L1MuRegionalCand.h.
Referenced by csc::L1Track::L1Track(), csc::L1Track::operator=(), L1MuDTTrack::operator=(), RPCTrigger::produce(), L1MuGMTHWFileReader::readNextEvent(), CSCTFSectorProcessor::run(), L1MuDTAssignmentUnit::run(), CSCTFSPCoreLogic::run(), and L1DummyProducer::SimpleDigi().
|
inline |
Set Charge (0=pos, 1=neg)
Definition at line 125 of file L1MuRegionalCand.h.
References CHARGE_LENGTH, CHARGE_START, and writeDataField().
Referenced by L1MuDTTrackCand::L1MuDTTrackCand(), L1MuRegionalCand(), csc::L1Track::L1Track(), csc::L1Track::operator=(), RPCTrigger::produce(), and CSCTFSPCoreLogic::run().
|
inline |
Set Charge Valid.
Definition at line 154 of file L1MuRegionalCand.h.
References CHVALID_LENGTH, CHVALID_START, and writeDataField().
Referenced by L1MuDTTrack::L1MuDTTrack(), RPCTrigger::produce(), and L1MuDTTrack::setCharge().
|
inline |
Set Charge Valid.
Definition at line 128 of file L1MuRegionalCand.h.
References CHVALID_LENGTH, CHVALID_START, and writeDataField().
Referenced by L1MuDTTrackCand::L1MuDTTrackCand(), L1MuRegionalCand(), csc::L1Track::L1Track(), csc::L1Track::operator=(), and CSCTFSectorProcessor::run().
|
inline |
Set Charge Value: -1, 1.
Definition at line 151 of file L1MuRegionalCand.h.
References CHARGE_LENGTH, CHARGE_START, and writeDataField().
Referenced by L1MuDTTrack::setCharge().
|
inline |
Set data word.
Definition at line 164 of file L1MuRegionalCand.h.
References KineDebug3::count(), m_dataWord, print(), readDataField(), and writeDataField().
Referenced by csc::L1Track::L1Track(), csc::L1Track::operator=(), L1MuDTTrack::operator=(), and L1DummyProducer::SimpleDigi().
|
inline |
Set Eta: 6-bit code.
Definition at line 131 of file L1MuRegionalCand.h.
References ETA_LENGTH, ETA_START, and writeDataField().
Referenced by L1MuDTTrackCand::L1MuDTTrackCand(), L1MuRegionalCand(), csc::L1Track::L1Track(), csc::L1Track::operator=(), RPCTrigger::produce(), CSCTFSectorProcessor::run(), CSCTFSPCoreLogic::run(), and L1MuDTTrack::setEta().
|
inline |
Set Eta Value (need to set type, first)
Definition at line 148 of file L1MuRegionalCand.h.
References m_etaValue.
Referenced by L1MuGMTPSB::receiveData(), L1DummyProducer::SimpleDigi(), and L1GlobalTriggerRawToDigi::unpackGMT().
|
inline |
Set Fine / Halo.
Definition at line 157 of file L1MuRegionalCand.h.
References FINEHALO_LENGTH, FINEHALO_START, reset(), and writeDataField().
Referenced by L1MuDTTrack::setFineEtaBit().
|
inline |
Set Fine / Halo.
Definition at line 134 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 116 of file L1MuRegionalCand.h.
References PHI_LENGTH, PHI_START, and writeDataField().
Referenced by L1MuDTTrackCand::L1MuDTTrackCand(), L1MuRegionalCand(), csc::L1Track::L1Track(), csc::L1Track::operator=(), RPCTrigger::produce(), and L1MuDTTrack::setPhi().
|
inline |
Set Phi Value.
Setters - values
Definition at line 142 of file L1MuRegionalCand.h.
References m_phiValue.
Referenced by L1MuGMTPSB::receiveData(), L1DummyProducer::SimpleDigi(), and L1GlobalTriggerRawToDigi::unpackGMT().
|
inline |
Set Pt: 0..31.
Definition at line 119 of file L1MuRegionalCand.h.
References PT_LENGTH, PT_START, and writeDataField().
Referenced by L1MuDTTrackCand::L1MuDTTrackCand(), L1MuRegionalCand(), csc::L1Track::L1Track(), L1EmulBias::ModifyCollection(), csc::L1Track::operator=(), RPCTrigger::produce(), and L1MuDTTrack::setPt().
|
inline |
Set Pt Value.
Definition at line 145 of file L1MuRegionalCand.h.
References m_ptValue.
Referenced by L1MuGMTPSB::receiveData(), L1DummyProducer::SimpleDigi(), and L1GlobalTriggerRawToDigi::unpackGMT().
|
inline |
Set Quality: 0..7.
Definition at line 122 of file L1MuRegionalCand.h.
References QUAL_LENGTH, QUAL_START, and writeDataField().
Referenced by L1MuDTTrackCand::L1MuDTTrackCand(), L1MuRegionalCand(), csc::L1Track::L1Track(), L1EmulBias::ModifyCollection(), csc::L1Track::operator=(), RPCTrigger::produce(), and L1MuDTTrack::setQuality().
|
inline |
Set Type: 0 DT, 1 bRPC, 2 CSC, 3 fRPC.
Setters - packed format
Definition at line 110 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(), csc::L1Track::operator=(), RPCTrigger::produce(), L1MuGMTHWFileReader::readNextEvent(), and L1GlobalTriggerRawToDigi::unpackGMT().
|
inline |
return type: 0 DT, 1 bRPC, 2 CSC, 3 fRPC
Definition at line 71 of file L1MuRegionalCand.h.
References readDataField(), TYPE_LENGTH, and TYPE_START.
Referenced by L1MuGMTMerger::convertedEta(), L1MuGMTSortRankUnit::getVeryLowQualityLevel(), L1MuGMTSortRankUnit::isDisabled(), csc::L1Track::L1Track(), L1MuGMTMerger::merge_rank(), L1EmulBias::ModifyCollection(), csc::L1Track::operator=(), print(), RPCTrigger::produce(), L1MuGMTMerger::projectedPhi(), L1MuGMTPSB::receiveData(), L1MuGMTSortRankUnit::sort_rank(), and L1GlobalTriggerRawToDigi::unpackGMT().
|
private |
Definition at line 138 of file L1MuRegionalCand.cc.
References KineDebug3::count(), m_dataWord, RecoTauDiscriminantConfiguration::mask, command_line::start, and mitigatedMETSequence_cff::U.
Referenced by setChargePacked(), setChargeValid(), setChargeValidPacked(), setChargeValue(), setDataWord(), setEtaPacked(), setFineHalo(), setFineHaloPacked(), setPhiPacked(), setPtPacked(), setQualityPacked(), and setType().
|
private |
Definition at line 174 of file L1MuRegionalCand.h.
|
private |
Definition at line 175 of file L1MuRegionalCand.h.
Referenced by getDataWord(), readDataField(), reset(), setDataWord(), and writeDataField().
|
private |
Definition at line 178 of file L1MuRegionalCand.h.
Referenced by etaValue(), L1MuRegionalCand(), print(), reset(), and setEtaValue().
|
staticprivate |
Definition at line 180 of file L1MuRegionalCand.h.
Referenced by etaValue(), L1MuRegionalCand(), phiValue(), print(), ptValue(), and reset().
|
private |
Definition at line 177 of file L1MuRegionalCand.h.
Referenced by L1MuRegionalCand(), phiValue(), print(), reset(), and setPhiValue().
|
private |
Definition at line 179 of file L1MuRegionalCand.h.
Referenced by L1MuRegionalCand(), print(), ptValue(), reset(), and setPtValue().