Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[12_5_X] EMTF Primitive Conversion LUT update #39844

Merged
merged 2 commits into from
Oct 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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