Skip to content

Commit

Permalink
Merge pull request #39844 from eyigitba/EMTF_pcLUTUpdate_125X_Oct22
Browse files Browse the repository at this point in the history
[12_5_X] EMTF Primitive Conversion LUT update
  • Loading branch information
cmsbuild authored Oct 27, 2022
2 parents 9d0926f + 1735dc0 commit f416895
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions L1Trigger/L1TMuonEndCap/src/ConditionHelper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,17 @@ unsigned int ConditionHelper::get_pc_lut_version() const {
// because of rigid CondFormats naming conventions - AWB 02.06.17
// std::cout << " - Getting proper PC LUT version from ConditionHelper: version = " << params_->PhiMatchWindowSt1_ << std::endl;
// return params_->PhiMatchWindowSt1_;

// Hack until we figure out why the database is returning "0" for 2017 data - AWB 04.08.17
// std::cout << " - Getting hacked PC LUT version from ConditionHelper: version = " << (params_->firmwareVersion_ >= 50000) << std::endl;
if (params_->firmwareVersion_ < 50000) { // For 2016
return 0;
} else if (params_->firmwareVersion_ < 1537467271) { // From the beginning of 2017
return 1; // Corresponding to FW timestamps before Sept. 20, 2018
} else if (params_->firmwareVersion_ <
1664468309) { // Corresponds to September 29, 2022. The firmware got deployed on October 6, 2022.
return 2; // Starting September 26, 2018 with run 323556 (data only, not in MC)
} else {
return 2; // Starting September 26, 2018 with run 323556 (data only, not in MC)
return 3; // Starting October 6, 2022 with run 359924 (data only, not in MC)
}
}

Expand Down
2 changes: 2 additions & 0 deletions L1Trigger/L1TMuonEndCap/src/SectorProcessorLUT.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ void SectorProcessorLUT::read(bool pc_lut_data, int pc_lut_version) {
coord_lut_dir = "ph_lut_v2"; // Beginning of 2017, improved alignment from ideal CMS geometry (MC)
else if (pc_lut_version == 2 && pc_lut_data)
coord_lut_dir = "ph_lut_v3_data"; // Update in September 2017 from ReReco alignment, data only
else if (pc_lut_version == 3 && pc_lut_data)
coord_lut_dir = "ph_lut_Run3_2022_data"; // Update in October 2022 from Run 3 2022 alignment, data only
else if (pc_lut_version == 2)
coord_lut_dir = "ph_lut_v2"; // MC still uses ideal CMS aligment
else if (pc_lut_version == -1 && pc_lut_data)
Expand Down

0 comments on commit f416895

Please sign in to comment.