-
Notifications
You must be signed in to change notification settings - Fork 4.6k
[L1T] DT Trigger Phase-2 Analytical Method (AM) v2.3 #49589
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
Open
jfernan2
wants to merge
19
commits into
cms-sw:master
Choose a base branch
from
jfernan2:AMv2.3
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+614
−26
Open
Changes from 18 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
dd679bd
Fix to plugin from Karol Bunkowski
jfernan2 02555c7
Removed unused collection
jfernan2 d1f475e
First plugin version
jfernan2 d31c206
Changes to avoid warning from deperecation
jfernan2 5ce8cfd
Additional changes
jfernan2 279edd4
Additional changes
jfernan2 cdf059b
Add Digis and Pairs of digis to event content
jfernan2 3cc7167
First cleaning
jfernan2 39fcd97
Add Pair Digi produciton to the L1 sequence
jfernan2 6f443aa
Changes to debug a crash
jfernan2 d84da11
Working version
jfernan2 da9d079
Add filter on possible duplicates
jfernan2 d2c192d
Code format
jfernan2 18c0f39
Added description
jfernan2 b78a050
Fixed small bug
jfernan2 3c95d2d
Removed t0 replacement for thetaDigis to preserve original t0 for pai…
jfernan2 ec4ff95
Last code format
jfernan2 773c3ac
Fix CUDA warning
jfernan2 d64ece3
Comments from Melissa Quinnan
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 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
43 changes: 43 additions & 0 deletions
43
DataFormats/L1DTTrackFinder/interface/L1Phase2MuDTExtPhiThetaPair.h
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 |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| #ifndef DataFormats_L1DTTrackFinder_L1Phase2MuDTExtPhiThetaPair_h | ||
| #define DataFormats_L1DTTrackFinder_L1Phase2MuDTExtPhiThetaPair_h | ||
|
|
||
| /** \class L1Phase2MuDTExtPhiThetaPair | ||
| * | ||
| * Data container for a matched pair of Phase-2 DT Phi and Theta digis. | ||
| * Provides utilities to retrieve the closest-N time-position pairs per chamber ordered by Phi quality. | ||
| * | ||
| * \author J. Fernandez | ||
| * \date 2025-11-19 | ||
| */ | ||
|
|
||
| #include "DataFormats/L1DTTrackFinder/interface/L1Phase2MuDTExtPhDigi.h" | ||
| #include "DataFormats/L1DTTrackFinder/interface/L1Phase2MuDTExtThDigi.h" | ||
| #include <vector> | ||
| #include <algorithm> | ||
|
|
||
| class L1Phase2MuDTExtPhiThetaPair { | ||
| public: | ||
| /// Default constructor | ||
| L1Phase2MuDTExtPhiThetaPair() = default; | ||
|
|
||
| /// Constructor with digis and quality | ||
| L1Phase2MuDTExtPhiThetaPair(const L1Phase2MuDTExtPhDigi& phi, const L1Phase2MuDTExtThDigi& theta, int quality); | ||
|
|
||
| // Explicitly allow copy/move | ||
| L1Phase2MuDTExtPhiThetaPair(const L1Phase2MuDTExtPhiThetaPair&) = default; | ||
| L1Phase2MuDTExtPhiThetaPair& operator=(const L1Phase2MuDTExtPhiThetaPair&) = default; | ||
| L1Phase2MuDTExtPhiThetaPair(L1Phase2MuDTExtPhiThetaPair&&) = default; | ||
| L1Phase2MuDTExtPhiThetaPair& operator=(L1Phase2MuDTExtPhiThetaPair&&) = default; | ||
|
|
||
| /// Accessors | ||
| const L1Phase2MuDTExtPhDigi& phiDigi() const { return phi_; } | ||
| const L1Phase2MuDTExtThDigi& thetaDigi() const { return theta_; } | ||
| int quality() const { return quality_; } | ||
|
|
||
| private: | ||
| L1Phase2MuDTExtPhDigi phi_; | ||
| L1Phase2MuDTExtThDigi theta_; | ||
| int quality_; | ||
| }; | ||
|
|
||
| #endif |
50 changes: 50 additions & 0 deletions
50
DataFormats/L1DTTrackFinder/interface/L1Phase2MuDTExtPhiThetaPairContainer.h
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 |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| //------------------------------------------------- | ||
| // | ||
| // Class L1Phase2MuDTExtPhiThetaPairContainer | ||
| // | ||
| // Description: trigger primtive data for the | ||
| // muon barrel Phase2 trigger | ||
| // | ||
| // | ||
| // Author List: J. Fernandez - Oviedo ICTEA | ||
| // | ||
| // | ||
| //-------------------------------------------------- | ||
| #ifndef L1Phase2MuDTExtPhiThetaPairContainer_H | ||
| #define L1Phase2MuDTExtPhiThetaPairContainer_H | ||
|
|
||
| //------------------------------------ | ||
| // Collaborating Class Declarations -- | ||
| //------------------------------------ | ||
| #include "DataFormats/L1DTTrackFinder/interface/L1Phase2MuDTExtPhiThetaPair.h" | ||
|
|
||
| //---------------------- | ||
| // Base Class Headers -- | ||
| //---------------------- | ||
| #include <vector> | ||
|
|
||
| //--------------- | ||
| // C++ Headers -- | ||
| //--------------- | ||
|
|
||
| //--------------------- | ||
| //-- Class Interface -- | ||
| //--------------------- | ||
|
|
||
| class L1Phase2MuDTExtPhiThetaPairContainer { | ||
| public: | ||
| typedef std::vector<L1Phase2MuDTExtPhiThetaPair> Segment_Container; | ||
| typedef Segment_Container::const_iterator Segment_iterator; | ||
|
|
||
| // Constructor | ||
| L1Phase2MuDTExtPhiThetaPairContainer(); | ||
|
|
||
| void setContainer(const Segment_Container& inputSegments); | ||
|
|
||
| Segment_Container const* getContainer() const; | ||
|
|
||
| private: | ||
| Segment_Container m_segments; | ||
| }; | ||
|
|
||
| #endif | ||
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
6 changes: 6 additions & 0 deletions
6
DataFormats/L1DTTrackFinder/src/L1Phase2MuDTExtPhiThetaPair.cc
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 |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| #include "DataFormats/L1DTTrackFinder/interface/L1Phase2MuDTExtPhiThetaPair.h" | ||
|
|
||
| L1Phase2MuDTExtPhiThetaPair::L1Phase2MuDTExtPhiThetaPair(const L1Phase2MuDTExtPhDigi& phi, | ||
| const L1Phase2MuDTExtThDigi& theta, | ||
| int quality) | ||
| : phi_(phi), theta_(theta), quality_(quality) {} |
46 changes: 46 additions & 0 deletions
46
DataFormats/L1DTTrackFinder/src/L1Phase2MuDTExtPhiThetaPairContainer.cc
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 |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| //------------------------------------------------- | ||
| // | ||
| // Class L1Phase2MuDTExtPhiThetaPairContainer | ||
| // | ||
| // Description: trigger primtive data for the | ||
| // muon barrel Phase2 trigger | ||
| // | ||
| // | ||
| // Author List: J. Fernandez - Oviedo ICTEA | ||
| // | ||
| // | ||
| //-------------------------------------------------- | ||
|
|
||
| //----------------------- | ||
| // This Class's Header -- | ||
| //----------------------- | ||
| #include "DataFormats/L1DTTrackFinder/interface/L1Phase2MuDTExtPhiThetaPairContainer.h" | ||
|
|
||
| //------------------------------- | ||
| // Collaborating Class Headers -- | ||
| //------------------------------- | ||
|
|
||
| //--------------- | ||
| // C++ Headers -- | ||
| //--------------- | ||
|
|
||
| //------------------- | ||
| // Initializations -- | ||
| //------------------- | ||
|
|
||
| //---------------- | ||
| // Constructors -- | ||
| //---------------- | ||
| L1Phase2MuDTExtPhiThetaPairContainer::L1Phase2MuDTExtPhiThetaPairContainer() {} | ||
|
|
||
| //-------------- | ||
| // Operations -- | ||
| //-------------- | ||
| void L1Phase2MuDTExtPhiThetaPairContainer::setContainer(const Segment_Container& inputSegments) { | ||
| m_segments = inputSegments; | ||
| } | ||
|
|
||
| L1Phase2MuDTExtPhiThetaPairContainer::Segment_Container const* L1Phase2MuDTExtPhiThetaPairContainer::getContainer() | ||
| const { | ||
| return &m_segments; | ||
| } |
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
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.
Uh oh!
There was an error while loading. Please reload this page.