-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
[DT] Position fix and new filter to TPs from Phase2 L1T emulator #44924
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
7b82037
Changes from Javi Lorente
jfernan2 1edc53f
Remove unused lines and couts to LogDebugs
jfernan2 6bc9259
Code format and cleaning of commented code
jfernan2 eb5d101
Coincidence filter from D. Moran
jfernan2 c2f143b
Bring back right Theta extended parameters
jfernan2 5a3b843
Rename to avoid confusion with mpathcorfilter_
jfernan2 9c1e293
Code format
jfernan2 3f7102c
Changes to avoid using pow in constexpr
jfernan2 4a413a6
Code format
jfernan2 bf9f155
Second version of the coincidence filter
jfernan2 26adbda
Code format
jfernan2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
#ifndef Phase2L1Trigger_DTTrigger_MPCoincidenceFilter_h | ||
#define Phase2L1Trigger_DTTrigger_MPCoincidenceFilter_h | ||
|
||
#include "L1Trigger/DTTriggerPhase2/interface/MPFilter.h" | ||
|
||
#include <iostream> | ||
#include <fstream> | ||
|
||
// =============================================================================== | ||
// Previous definitions and declarations | ||
// =============================================================================== | ||
|
||
// =============================================================================== | ||
// Class declarations | ||
// =============================================================================== | ||
|
||
class MPCoincidenceFilter : public MPFilter { | ||
public: | ||
// Constructors and destructor | ||
MPCoincidenceFilter(const edm::ParameterSet &pset); | ||
~MPCoincidenceFilter() override = default; | ||
|
||
// Main methods | ||
void initialise(const edm::EventSetup &iEventSetup) override; | ||
void run(edm::Event &iEvent, | ||
const edm::EventSetup &iEventSetup, | ||
std::vector<cmsdt::metaPrimitive> &inMPath, | ||
std::vector<cmsdt::metaPrimitive> &outMPath) override{}; | ||
void run(edm::Event &iEvent, | ||
const edm::EventSetup &iEventSetup, | ||
std::vector<cmsdt::metaPrimitive> &allMPaths, | ||
std::vector<cmsdt::metaPrimitive> &inMPaths, | ||
std::vector<cmsdt::metaPrimitive> &outMPaths) override; | ||
void run(edm::Event &iEvent, | ||
const edm::EventSetup &iEventSetup, | ||
MuonPathPtrs &inMPath, | ||
MuonPathPtrs &outMPath) override{}; | ||
|
||
void finish() override; | ||
|
||
// Other public methods | ||
|
||
// Public attributes | ||
|
||
std::map<std::string, float> mphi_mean{{"wh-2ch1", 1.0}, {"wh-1ch1", 0.9}, {"wh0ch1", -0.3}, {"wh1ch1", 0.9}, | ||
{"wh2ch1", 1.0}, {"wh-2ch2", 1.4}, {"wh-1ch2", -0.4}, {"wh0ch2", -0.3}, | ||
{"wh1ch2", -0.4}, {"wh2ch2", 1.5}, {"wh-2ch3", -0.1}, {"wh-1ch3", -0.2}, | ||
{"wh0ch3", -0.1}, {"wh1ch3", -0.3}, {"wh2ch3", -0.4}, {"wh-2ch4", -1.0}, | ||
{"wh-1ch4", -1.1}, {"wh0ch4", -1.0}, {"wh1ch4", -1.1}, {"wh2ch4", -0.8}}; | ||
|
||
std::map<std::string, float> mphi_width{{"wh-2ch1", 7.2}, {"wh-1ch1", 7.0}, {"wh0ch1", 11.2}, {"wh1ch1", 7.4}, | ||
{"wh2ch1", 7.1}, {"wh-2ch2", 6.6}, {"wh-1ch2", 8.5}, {"wh0ch2", 11.1}, | ||
{"wh1ch2", 8.5}, {"wh2ch2", 6.5}, {"wh-2ch3", 8.0}, {"wh-1ch3", 9.2}, | ||
{"wh0ch3", 11.2}, {"wh1ch3", 9.1}, {"wh2ch3", 7.8}, {"wh-2ch4", 8.0}, | ||
{"wh-1ch4", 9.6}, {"wh0ch4", 11.8}, {"wh1ch4", 9.3}, {"wh2ch4", 7.7}}; | ||
|
||
std::map<std::string, float> mth_mean{{"wh-2ch1", -17.4}, {"wh-1ch1", -9.5}, {"wh0ch1", -0.8}, {"wh1ch1", -9.8}, | ||
{"wh2ch1", -17.1}, {"wh-2ch2", -18.9}, {"wh-1ch2", -6.6}, {"wh0ch2", 0.5}, | ||
{"wh1ch2", -6.8}, {"wh2ch2", -19.2}, {"wh-2ch3", -16.3}, {"wh-1ch3", -3.2}, | ||
{"wh0ch3", 1.9}, {"wh1ch3", -3.6}, {"wh2ch3", -17.5}, {"wh-2ch4", 0.0}, | ||
{"wh-1ch4", 0.0}, {"wh0ch4", 0.0}, {"wh1ch4", 0.0}, {"wh2ch4", 0.0}}; | ||
|
||
std::map<std::string, float> mth_width{{"wh-2ch1", 33.5}, {"wh-1ch1", 12.6}, {"wh0ch1", 10.1}, {"wh1ch1", 14.4}, | ||
{"wh2ch1", 44.8}, {"wh-2ch2", 23.0}, {"wh-1ch2", 13.2}, {"wh0ch2", 11.6}, | ||
{"wh1ch2", 14.0}, {"wh2ch2", 25.6}, {"wh-2ch3", 22.5}, {"wh-1ch3", 13.8}, | ||
{"wh0ch3", 13.9}, {"wh1ch3", 14.2}, {"wh2ch3", 24.2}, {"wh-2ch4", 9.4}, | ||
{"wh-1ch4", 9.4}, {"wh0ch4", 9.4}, {"wh1ch4", 9.4}, {"wh2ch4", 9.4}}; | ||
|
||
private: | ||
// Private methods | ||
std::vector<cmsdt::metaPrimitive> filter(std::vector<cmsdt::metaPrimitive> inMPs, | ||
std::vector<cmsdt::metaPrimitive> allMPs, | ||
int co_option, | ||
int co_quality, | ||
double shift_back); | ||
|
||
// Private attributes | ||
const bool debug_; | ||
int co_option_; | ||
int co_quality_; | ||
int scenario_; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these files already committed or in a PR somewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, of course, in the corresponding:
https://github.com/cms-data/L1Trigger-DTTriggerPhase2