|
|
Go to the documentation of this file.
11 int sector = in_track.
Sector() - 1;
26 (ptlut_data.
bt_vi[0] == 0 && ptlut_data.
bt_vi[1] != 0) ? ptlut_data.
bt_ci[1] + 16 : ptlut_data.
bt_ci[0];
27 int me2_ch_id = ptlut_data.
bt_ci[2];
28 int me3_ch_id = ptlut_data.
bt_ci[3];
29 int me4_ch_id = ptlut_data.
bt_ci[4];
31 int me1_seg_id = (ptlut_data.
bt_vi[0] == 0 && ptlut_data.
bt_vi[1] != 0) ? ptlut_data.
bt_si[1] : ptlut_data.
bt_si[0];
32 int me2_seg_id = ptlut_data.
bt_si[2];
33 int me3_seg_id = ptlut_data.
bt_si[3];
34 int me4_seg_id = ptlut_data.
bt_si[4];
36 auto get_gmt_chamber_me1 = [](
int ch) {
44 else if (ch == 3 + 16)
46 else if (ch == 6 + 16)
48 else if (ch == 9 + 16)
53 auto get_gmt_chamber = [](
int ch) {
67 int EMTF_kBX = (
abs(global_event_BX) % 2048) - 25 + in_track.
BX();
92 for (
const auto& in_track : in_tracks) {
93 int bx = in_track.BX();
95 if (gmtMinBX <=
bx &&
bx <= gmtMaxBX) {
113 int emtfMaxProc = 11;
116 auto sortedCands = std::make_unique<l1t::RegionalMuonCandBxCollection>();
117 sortedCands->clear();
120 for (
int proc = emtfMinProc;
proc <= emtfMaxProc;
proc++) {
123 int cand_proc =
cand->processor();
126 if (cand_proc !=
proc)
128 sortedCands->push_back(iBX, *
cand);
void convert_all(const edm::Event &iEvent, const EMTFTrackCollection &in_tracks, l1t::RegionalMuonCandBxCollection &out_cands) const
void setHwSign(int bits)
Set charge sign bit (charge = (-1)^(sign))
std::vector< RegionalMuonCand >::const_iterator const_iterator
l1t::EMTFTrackCollection EMTFTrackCollection
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
void setTFIdentifiers(int processor, tftype trackFinder)
Set the processor ID, track-finder type. From these two, the link is set.
void setHwPt(int bits)
Set compressed pT as transmitted by hardware LSB = 0.5 (9 bits)
void setHwHF(bool bit)
Set HF (halo / fine eta) bit (EMTF: halo -> 1; BMTF: fine eta -> 1)
void sort_uGMT_muons(l1t::RegionalMuonCandBxCollection &cands)
void setHwEta(int bits)
Set compressed eta as transmitted by hardware LSB = 0.010875 (9 bits)
void setTrackSubAddress(bmtfAddress subAddress, int value)
Set a part of the muon candidates track address; specialised for BMTF.
void setHwQual(int bits)
Set compressed quality code as transmitted by hardware (4 bits)
void setHwSignValid(int bits)
Set whether charge measurement is valid (0 for high pT muons)
int GMT_charge_valid() const
Abs< T >::type abs(const T &t)
void setHwPhi(int bits)
Set compressed relative phi as transmitted by hardware LSB = 2*pi/576 (8 bits)
void setBXRange(int bxFirst, int bxLast)
void push_back(int bx, T object)
void convert(const int global_event_BX, const EMTFTrack &in_track, l1t::RegionalMuonCand &out_cand) const