#include <L1MuGMTCancelOutUnit.h>
Public Member Functions | |
const bool | cancelMyChipMuon (int idx) const |
return cancel bit for DT (m_id==0 || m_id==3) or CSC (m_id==1 || m_id==2) muon More... | |
const bool | cancelOtherChipMuon (int idx) const |
return cancel bit for barrel RPC (m_id==2) or forward RPC (m_id==3) muon More... | |
int | id () const |
return ID (0..DT/CSC in barrel chip, 1..DT/CSC in fwd chip, 2..CSC/bRPC, 3..DT/fRPC) More... | |
L1MuGMTCancelOutUnit (const L1MuGlobalMuonTrigger &gmt, int id) | |
constructor More... | |
void | print () |
print cancel-out bits More... | |
void | reset () |
clear cancel-out unit More... | |
void | run () |
run cancel-out unit More... | |
virtual | ~L1MuGMTCancelOutUnit () |
destructor More... | |
Private Member Functions | |
void | decide () |
Private Attributes | |
const L1MuGlobalMuonTrigger & | m_gmt |
int | m_id |
L1MuGMTMatcher | m_matcher |
std::vector< bool > | m_MyChipCancelbits |
std::vector< bool > | m_OtherChipCancelbits |
L1 Global Muon Trigger Cancel-Out Unit.
It compares (attempts to match) muons in the overlap region in order to cancel out duplicates. The following four instances exist:
INPUTS
0 DT/CSC brl DT CSC 1 CSC/DT fwd CSC DT 2 bRPC/CSC brl bRPC CSC 3 fRPC/DT fwd fRPC DT (mine) (other chip)
The first input muons are direct inputs to the chip where the COU is located, while the second muons are CSC or DT muon from the other Logic FPGA.
Along with the input muons to be compared the COU accesses information on whether the input muons are matched with a cnadiate from the complementary system in the respective main matcher.
The output are cancel-bits which indicate whether to delete one of the inputs.
Definition at line 69 of file L1MuGMTCancelOutUnit.h.
L1MuGMTCancelOutUnit::L1MuGMTCancelOutUnit | ( | const L1MuGlobalMuonTrigger & | gmt, |
int | id | ||
) |
constructor
Definition at line 53 of file L1MuGMTCancelOutUnit.cc.
|
virtual |
|
inline |
return cancel bit for DT (m_id==0 || m_id==3) or CSC (m_id==1 || m_id==2) muon
Definition at line 91 of file L1MuGMTCancelOutUnit.h.
References m_MyChipCancelbits.
Referenced by L1MuGMTMerger::merge().
|
inline |
return cancel bit for barrel RPC (m_id==2) or forward RPC (m_id==3) muon
Definition at line 94 of file L1MuGMTCancelOutUnit.h.
References m_OtherChipCancelbits.
Referenced by L1MuGMTMerger::merge().
|
private |
Definition at line 128 of file L1MuGMTCancelOutUnit.cc.
References L1MuGMTMatrix< T >::colAny(), L1MuGlobalMuonTrigger::DebugBlockForFill(), L1MuGMTConfig::getRegCDLConfig(), L1MuGMTReg::getValue(), m_gmt, m_id, m_matcher, m_MyChipCancelbits, m_OtherChipCancelbits, L1MuGlobalMuonTrigger::Matcher(), L1MuGMTMatcher::pairM(), L1MuGMTMatrix< T >::rowAny(), and L1MuGMTDebugBlock::SetCancelBits().
Referenced by run().
|
inline |
return ID (0..DT/CSC in barrel chip, 1..DT/CSC in fwd chip, 2..CSC/bRPC, 3..DT/fRPC)
Definition at line 88 of file L1MuGMTCancelOutUnit.h.
References m_id.
void L1MuGMTCancelOutUnit::print | ( | void | ) |
print cancel-out bits
Definition at line 101 of file L1MuGMTCancelOutUnit.cc.
References i, m_id, m_MyChipCancelbits, and m_OtherChipCancelbits.
Referenced by L1MuGlobalMuonTrigger::produce().
void L1MuGMTCancelOutUnit::reset | ( | void | ) |
clear cancel-out unit
Definition at line 87 of file L1MuGMTCancelOutUnit.cc.
References i, m_matcher, m_MyChipCancelbits, m_OtherChipCancelbits, and L1MuGMTMatcher::reset().
Referenced by L1MuGlobalMuonTrigger::reset(), and ~L1MuGMTCancelOutUnit().
void L1MuGMTCancelOutUnit::run | ( | void | ) |
run cancel-out unit
Definition at line 74 of file L1MuGMTCancelOutUnit.cc.
References L1MuGMTConfig::Debug(), decide(), m_matcher, L1MuGMTMatcher::print(), and L1MuGMTMatcher::run().
Referenced by L1MuGlobalMuonTrigger::produce().
|
private |
Definition at line 101 of file L1MuGMTCancelOutUnit.h.
Referenced by decide().
|
private |
Definition at line 102 of file L1MuGMTCancelOutUnit.h.
|
private |
Definition at line 104 of file L1MuGMTCancelOutUnit.h.
|
private |
Definition at line 105 of file L1MuGMTCancelOutUnit.h.
Referenced by cancelMyChipMuon(), decide(), print(), and reset().
|
private |
Definition at line 106 of file L1MuGMTCancelOutUnit.h.
Referenced by cancelOtherChipMuon(), decide(), print(), and reset().