-
Notifications
You must be signed in to change notification settings - Fork 4.6k
(Un)packers for hadronic showers at the uGMT input and output #35627
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
Merged
cmsbuild
merged 7 commits into
cms-sw:master
from
dinyar:hadronic_shower_unpacker-12_1_X-dev
Dec 9, 2021
Merged
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
9960aaa
Use the same interface to set TF identifiers for RegionalMuonShower a…
dinyar 6532025
Add (un)packing functions for RegionalMuonShower
dinyar 2f38793
Add tokens and collections for unpacked muon showers
dinyar aac112d
(Un)pack regional muon showers
dinyar 7db9784
(Un)packing of hadronic showers at the uGMT output
dinyar 13a5b38
Add muon shower emulators to Phase2 sequence
dinyar 52fd601
Explicitly name constant indicating number of output copies
dinyar 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -5,11 +5,11 @@ | |
| #include "EventFilter/L1TRawToDigi/plugins/PackingSetupFactory.h" | ||
| #include "EventFilter/L1TRawToDigi/plugins/UnpackerFactory.h" | ||
|
|
||
| #include "EventFilter/L1TRawToDigi/plugins/implementations_stage2/RegionalMuonGMTUnpacker.h" | ||
| #include "EventFilter/L1TRawToDigi/plugins/implementations_stage2/RegionalMuonGMTPacker.h" | ||
| #include "EventFilter/L1TRawToDigi/plugins/implementations_stage2/RegionalMuonGMTUnpacker.h" | ||
| #include "EventFilter/L1TRawToDigi/plugins/implementations_stage2/MuonPacker.h" | ||
| #include "EventFilter/L1TRawToDigi/plugins/implementations_stage2/IntermediateMuonUnpacker.h" | ||
| #include "EventFilter/L1TRawToDigi/plugins/implementations_stage2/MuonUnpacker.h" | ||
| #include "EventFilter/L1TRawToDigi/plugins/implementations_stage2/IntermediateMuonUnpacker.h" | ||
|
|
||
| #include "GMTSetup.h" | ||
|
|
||
|
|
@@ -36,13 +36,18 @@ namespace l1t { | |
| ->setComment("uGMT intermediate muon from neg. OMTF side after first sorting stage"); | ||
| desc.addOptional<edm::InputTag>("ImdInputLabelOMTFPos") | ||
| ->setComment("uGMT intermediate muon from pos. OMTF side after first sorting stage"); | ||
| desc.addOptional<edm::InputTag>("ShowerInputLabel")->setComment("for Run3"); | ||
| desc.addOptional<edm::InputTag>("EMTFShowerInputLabel")->setComment("for Run3"); | ||
| } | ||
|
|
||
| PackerMap GMTSetup::getPackers(int fed, unsigned int fw) { | ||
| PackerMap res; | ||
| if (fed == 1402) { | ||
| auto gmt_in_packer = static_pointer_cast<l1t::stage2::RegionalMuonGMTPacker>( | ||
| PackerFactory::get()->make("stage2::RegionalMuonGMTPacker")); | ||
| if (fw >= 0x7000000) { | ||
| gmt_in_packer->setUseEmtfShowers(); | ||
| } | ||
| if (fw >= 0x6010000) { | ||
| gmt_in_packer->setUseEmtfDisplacementInfo(); | ||
| } | ||
|
|
@@ -76,6 +81,12 @@ namespace l1t { | |
| prod.produces<MuonBxCollection>("imdMuonsEMTFPos"); | ||
| prod.produces<MuonBxCollection>("imdMuonsOMTFNeg"); | ||
| prod.produces<MuonBxCollection>("imdMuonsOMTFPos"); | ||
|
|
||
| prod.produces<RegionalMuonShowerBxCollection>("EMTF"); | ||
| prod.produces<MuonShowerBxCollection>("MuonShower"); | ||
| for (int i = 1; i < 6; ++i) { | ||
|
||
| prod.produces<MuonShowerBxCollection>("MuonShowerCopy" + std::to_string(i)); | ||
| } | ||
| } | ||
|
|
||
| std::unique_ptr<UnpackerCollections> GMTSetup::getCollections(edm::Event& e) { | ||
|
|
@@ -89,6 +100,9 @@ namespace l1t { | |
| // input muons on links 36-71 | ||
| auto gmt_in_unp = static_pointer_cast<l1t::stage2::RegionalMuonGMTUnpacker>( | ||
| UnpackerFactory::get()->make("stage2::RegionalMuonGMTUnpacker")); | ||
| if (fw >= 0x7000000) { | ||
| gmt_in_unp->setUseEmtfShowers(); | ||
| } | ||
| if (fw >= 0x6010000) { | ||
| gmt_in_unp->setUseEmtfDisplacementInfo(); | ||
| } | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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.
Could this "6" be made a named constant (if it cannot be taken from somewhere else) to be used also in https://github.com/cms-sw/cmssw/pull/35627/files#diff-b58cb5d2c0f29e48000d3f6f50516977599983b3142acf4599330e59d0268067R74 ?
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.
Hi Andrea,
True, fair point. I've replaced it by a constant. It's the number of uGT boards we have installed so it's unlikely to be changed however it's now a bit more explicit.
Cheers,
Dinyar