Skip to content

Commit c1df4fb

Browse files
authored
Merge pull request #44498 from zhenbinwu/GMT_24AR
Update of Phase-2 GMT Emulator
2 parents 5950987 + 0830f3b commit c1df4fb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+6786
-3249
lines changed

DQMOffline/L1Trigger/python/L1TPhase2MuonOffline_cfi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
useL1AtVtxCoord = cms.untracked.bool(False),
4141

4242
genParticlesInputTag = cms.untracked.InputTag("genParticles"),
43-
gmtMuonToken = cms.InputTag("l1tSAMuonsGmt", "promptSAMuons"),
43+
gmtMuonToken = cms.InputTag("l1tSAMuonsGmt", "prompt"),
4444
gmtTkMuonToken = cms.InputTag("l1tTkMuonsGmt",""),
4545

4646
efficiencyVsPtBins = cms.untracked.vdouble(effVsPtBins),

DataFormats/L1TMuonPhase2/interface/Constants.h

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ namespace Phase2L1GMT {
2828
const int BITSD0 = 12;
2929

3030
//Muon ROI
31-
const int BITSSTUBCOORD = 8;
31+
const int BITSSTUBCOORD = 10;
3232
const int BITSSTUBETA = 8;
33-
const int BITSSTUBID = 9;
33+
const int BITSSTUBID = 12;
3434
const int BITSSTUBPHIQUALITY = 4;
3535
const int BITSSTUBETAQUALITY = 4;
3636
const int BITSSTUBTIME = 8;
@@ -45,8 +45,8 @@ namespace Phase2L1GMT {
4545
const int BITSSIGMAETA = 4;
4646
const int BITSSIGMACOORD = 4;
4747
const int BITSPROPCOORD = 9;
48-
const int BITSPROPSIGMACOORD_A = 5;
49-
const int BITSPROPSIGMACOORD_B = 5;
48+
const int BITSPROPSIGMACOORD_A = 6;
49+
const int BITSPROPSIGMACOORD_B = 6;
5050
const int BITSPROPSIGMAETA_A = 5;
5151
const int BITSPROPSIGMAETA_B = 5;
5252

@@ -62,8 +62,9 @@ namespace Phase2L1GMT {
6262
const int BITSGTETA = 14;
6363
const int BITSGTZ0 = 10;
6464
const int BITSGTD0 = 10;
65-
const int BITSGTQUAL = 8;
66-
const int BITSGTISO = 4;
65+
const int BITSGTQUAL = 6;
66+
const int BITSGTQUALSC = 7;
67+
const int BITSGTISO = 6;
6768
const int BITSGTBETA = 4;
6869

6970
// Bitwidth for Tau->3mu object
@@ -91,22 +92,24 @@ namespace Phase2L1GMT {
9192
const float LSBpt = 0.03125;
9293
const float LSBphi = 2. * M_PI / pow(2, BITSPHI);
9394
const float LSBeta = 2. * M_PI / pow(2, BITSETA);
94-
const float LSBGTz0 = 0.05; // 0.5mm, in sync with GTT and Correlator
95-
const float LSBGTd0 = 0.03; // from GT interface doc
96-
const float LSBSAz0 = 1.6; // 0.05 * 32 cm, with range +- 25.6
97-
const float LSBSAd0 = 3.84; // 0.03 * 128 cm, with range +- 245.76
95+
const float LSBGTiso = 0.25; // 0.25GeV, LSBphi * 8
96+
const float LSBGTz0 = 0.05; // 0.5mm, in sync with GTT and Correlator
97+
const float LSBGTd0 = 0.03; // from GT interface doc
98+
const float LSBSAz0 = 1.6; // 0.05 * 32 cm, with range +- 25.6
99+
const float LSBSAd0 = 3.84; // 0.03 * 128 cm, with range +- 245.76
98100

99101
typedef ap_uint<64> wordtype;
100-
typedef ap_uint<1> valid_gt_t; //valid
101-
typedef ap_uint<1> q_gt_t; //charge
102-
typedef ap_uint<BITSGTPT> pt_gt_t; //pt of tracker muon
103-
typedef ap_int<BITSGTPHI> phi_gt_t; //phi of tracker muon
104-
typedef ap_int<BITSGTETA> eta_gt_t; //eta of tracker muon
105-
typedef ap_int<BITSGTZ0> z0_gt_t; //z0 of tracker muon
106-
typedef ap_int<BITSGTD0> d0_gt_t; //d0 of tracker muon
107-
typedef ap_uint<BITSGTISO> iso_gt_t; //isolation of tracker muon
108-
typedef ap_uint<BITSGTBETA> beta_gt_t; //beta of tracker muon
109-
typedef ap_uint<BITSGTQUAL> qual_gt_t; //quality of tracker muon
102+
typedef ap_uint<1> valid_gt_t; //valid
103+
typedef ap_uint<1> q_gt_t; //charge
104+
typedef ap_uint<BITSGTPT> pt_gt_t; //pt of tracker muon
105+
typedef ap_int<BITSGTPHI> phi_gt_t; //phi of tracker muon
106+
typedef ap_int<BITSGTETA> eta_gt_t; //eta of tracker muon
107+
typedef ap_int<BITSGTZ0> z0_gt_t; //z0 of tracker muon
108+
typedef ap_int<BITSGTD0> d0_gt_t; //d0 of tracker muon
109+
typedef ap_uint<BITSGTISO> iso_gt_t; //isolation of tracker muon
110+
typedef ap_uint<BITSGTBETA> beta_gt_t; //beta of tracker muon
111+
typedef ap_uint<BITSGTQUAL> qual_gt_t; //quality of tracker muon
112+
typedef ap_int<BITSGTQUALSC> qualsc_gt_t; //quality score of tracker muon (qual/q)
110113

111114
//Standalone muon datatype
112115
typedef ap_uint<1> valid_sa_t; //valid

DataFormats/L1TMuonPhase2/interface/EMTFTrack.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ namespace l1t::phase2 {
4141
void setEmtfBeta(int32_t aEmtfBeta) { emtf_beta_ = aEmtfBeta; }
4242
void setEmtfModeV1(int16_t aEmtfModeV1) { emtf_mode_v1_ = aEmtfModeV1; }
4343
void setEmtfModeV2(int16_t aEmtfModeV2) { emtf_mode_v2_ = aEmtfModeV2; }
44+
void setEmtfQuality(int16_t aEmtfQuality) { emtf_quality_ = aEmtfQuality; }
4445

4546
void setSiteHits(const site_hits_t& aSiteHits) { site_hits_ = aSiteHits; }
4647
void setSiteSegs(const site_segs_t& aSiteSegs) { site_segs_ = aSiteSegs; }
@@ -71,6 +72,7 @@ namespace l1t::phase2 {
7172
int32_t emtfBeta() const { return emtf_beta_; }
7273
int16_t emtfModeV1() const { return emtf_mode_v1_; }
7374
int16_t emtfModeV2() const { return emtf_mode_v2_; }
75+
int16_t emtfQuality() const { return emtf_quality_; }
7476

7577
const site_hits_t& siteHits() const { return site_hits_; }
7678
const site_segs_t& siteSegs() const { return site_segs_; }
@@ -101,6 +103,7 @@ namespace l1t::phase2 {
101103
int32_t emtf_beta_;
102104
int16_t emtf_mode_v1_;
103105
int16_t emtf_mode_v2_;
106+
int16_t emtf_quality_;
104107

105108
site_hits_t site_hits_;
106109
site_segs_t site_segs_;

0 commit comments

Comments
 (0)