forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #103 from gpetruc/merge_l1t_v3p4p50
Merge l1t-phase2-v3.4.50
- Loading branch information
Showing
58 changed files
with
1,222 additions
and
757 deletions.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Class to store the 96-bit TkJet word for L1 Track Trigger. | ||
// Author: Benjamin Radburn-Smith (September 2022) | ||
|
||
#include "DataFormats/L1Trigger/interface/TkJetWord.h" | ||
|
||
namespace l1t { | ||
TkJetWord::TkJetWord(pt_t pt, glbeta_t eta, glbphi_t phi, z0_t z0, nt_t nt, nx_t nx, tkjetunassigned_t unassigned) { | ||
setTkJetWord(pt, eta, phi, z0, nt, nx, unassigned); | ||
} | ||
|
||
void TkJetWord::setTkJetWord(pt_t pt, glbeta_t eta, glbphi_t phi, z0_t z0, nt_t nt, nx_t nx, tkjetunassigned_t unassigned) { | ||
// pack the TkJet word | ||
unsigned int offset = 0; | ||
for (unsigned int b = offset; b < (offset + TkJetBitWidths::kPtSize); b++) { | ||
tkJetWord_.set(b, pt[b - offset]); | ||
} | ||
offset += TkJetBitWidths::kPtSize; | ||
for (unsigned int b = offset; b < (offset + TkJetBitWidths::kGlbEtaSize); b++) { | ||
tkJetWord_.set(b, eta[b - offset]); | ||
} | ||
offset += TkJetBitWidths::kGlbEtaSize; | ||
for (unsigned int b = offset; b < (offset + TkJetBitWidths::kGlbPhiSize); b++) { | ||
tkJetWord_.set(b, phi[b - offset]); | ||
} | ||
offset += TkJetBitWidths::kGlbPhiSize; | ||
for (unsigned int b = offset; b < (offset + TkJetBitWidths::kZ0Size); b++) { | ||
tkJetWord_.set(b, z0[b - offset]); | ||
} | ||
offset += TkJetBitWidths::kZ0Size; | ||
for (unsigned int b = offset; b < (offset + TkJetBitWidths::kNtSize); b++) { | ||
tkJetWord_.set(b, nt[b - offset]); | ||
} | ||
offset += TkJetBitWidths::kNtSize; | ||
for (unsigned int b = offset; b < (offset + TkJetBitWidths::kXtSize); b++) { | ||
tkJetWord_.set(b, nx[b - offset]); | ||
} | ||
offset += TkJetBitWidths::kXtSize; | ||
for (unsigned int b = offset; b < (offset + TkJetBitWidths::kUnassignedSize); b++) { | ||
tkJetWord_.set(b, unassigned[b - offset]); | ||
} | ||
} | ||
|
||
} //namespace l1t |
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
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.