-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 #12183 from richard-cms/HI_L1_FirmwareDevel_75X
Level-1 Trigger changes for HI Firmware (75X backport of #12176)
- Loading branch information
Showing
91 changed files
with
2,024 additions
and
1,067 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,83 +1,3 @@ | ||
#include "CondFormats/L1TObjects/interface/CaloParams.h" | ||
|
||
using namespace l1t; | ||
|
||
int CaloParams::etSumEtaMin(unsigned isum) const { | ||
if (etSumEtaMin_.size()>isum) return etSumEtaMin_.at(isum); | ||
else return 0; | ||
} | ||
|
||
int CaloParams::etSumEtaMax(unsigned isum) const { | ||
if (etSumEtaMax_.size()>isum) return etSumEtaMax_.at(isum); | ||
else return 0; | ||
} | ||
|
||
double CaloParams::etSumEtThreshold(unsigned isum) const { | ||
if (etSumEtThreshold_.size()>isum) return etSumEtThreshold_.at(isum); | ||
else return 0.; | ||
} | ||
|
||
void CaloParams::setEtSumEtaMin(unsigned isum, int eta) { | ||
if (etSumEtaMin_.size()<=isum) etSumEtaMin_.resize(isum+1); | ||
etSumEtaMin_.at(isum) = eta; | ||
} | ||
|
||
void CaloParams::setEtSumEtaMax(unsigned isum, int eta) { | ||
if (etSumEtaMax_.size()<=isum) etSumEtaMax_.resize(isum+1); | ||
etSumEtaMax_.at(isum) = eta; | ||
} | ||
|
||
void CaloParams::setEtSumEtThreshold(unsigned isum, double thresh) { | ||
if (etSumEtThreshold_.size()<=isum) etSumEtThreshold_.resize(isum+1); | ||
etSumEtThreshold_.at(isum) = thresh; | ||
} | ||
|
||
void CaloParams::print(std::ostream& out) const { | ||
|
||
out << "L1 Calo Parameters" << std::endl; | ||
out << "Towers" << std::endl; | ||
out << " LSB H : " << this->towerLsbH() << std::endl; | ||
out << " LSB E : " << this->towerLsbE() << std::endl; | ||
out << " LSB Sum : " << this->towerLsbSum() << std::endl; | ||
out << " Nbits H : " << this->towerNBitsH() << std::endl; | ||
out << " Nbits E : " << this->towerNBitsE() << std::endl; | ||
out << " Nbits Sum : " << this->towerNBitsSum() << std::endl; | ||
out << " Nbits Ratio : " << this->towerNBitsRatio() << std::endl; | ||
out << " Mask E : " << this->towerMaskE() << std::endl; | ||
out << " Mask H : " << this->towerMaskH() << std::endl; | ||
out << " Mask Sum : " << this->towerMaskSum() << std::endl; | ||
out << " Mask Ratio : " << this->towerMaskRatio() << std::endl; | ||
out << " Encoding : " << this->doTowerEncoding() << std::endl; | ||
|
||
out << "Regions" << std::endl; | ||
out << " PUS : " << this->regionPUSType() << std::endl; | ||
out << " LSB : " << this->regionLsb() << std::endl; | ||
|
||
out << "EG" << std::endl; | ||
out << " LSB : " << this->egLsb() << std::endl; | ||
out << " Seed thresh : " << this->egSeedThreshold() << std::endl; | ||
out << " Neighbour thresh : " << this->egNeighbourThreshold() << std::endl; | ||
out << " HCAL thresh : " << this->egHcalThreshold() << std::endl; | ||
out << " HCAL max Et : " << this->egMaxHcalEt() << std::endl; | ||
out << " Iso PUS type : " << this->egPUSType() << std::endl; | ||
|
||
out << "Tau" << std::endl; | ||
out << " Seed thresh : " << this->tauSeedThreshold() << std::endl; | ||
out << " Neighbour thresh : " << this->tauNeighbourThreshold() << std::endl; | ||
out << " Iso PUS type : " << this->tauPUSType() << std::endl; | ||
|
||
out << "Jets" << std::endl; | ||
out << " LSB : " << this->jetLsb() << std::endl; | ||
out << " Seed thresh : " << this->jetSeedThreshold() << std::endl; | ||
out << " Neighbour thresh : " << this->jetNeighbourThreshold() << std::endl; | ||
out << " PUS type : " << this->jetPUSType() << std::endl; | ||
out << " Calibration type : " << this->jetCalibrationType() << std::endl; | ||
|
||
out << "Sums" << std::endl; | ||
for (unsigned i=0; i<etSumEtaMin_.size(); ++i) { | ||
out << " EtSum" << i << " eta min : " << this->etSumEtaMin(i) << std::endl; | ||
if (etSumEtaMax_.size()>i) out << " EtSum" << i << " eta max : " << this->etSumEtaMax(i) << std::endl; | ||
if (etSumEtThreshold_.size()>i) out << " EtSum" << i << " Et thresh : " << this->etSumEtThreshold(i) << std::endl; | ||
} | ||
|
||
} |
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
27 changes: 27 additions & 0 deletions
27
L1Trigger/L1TCalorimeter/data/centrality_extended_LUT_preRun.txt
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,27 @@ | ||
# LUT for centrality thresholds in hw scale | ||
# Index is just threshold number (0-7 inclusive) | ||
#anything after # is ignored with the exception of the header | ||
#the header is first valid line starting with #<header> versionStr(unused but may be in future) nrBitsAddress nrBitsData </header> | ||
#<header> V2 5 14 </header> | ||
0 0 | ||
1 92 | ||
2 591 | ||
3 1774 | ||
4 4155 | ||
5 5091 | ||
6 6000 | ||
7 7000 | ||
8 87 | ||
9 97 | ||
10 561 | ||
11 621 | ||
12 1685 | ||
13 1863 | ||
14 4113 | ||
15 4197 | ||
16 5040 | ||
17 5142 | ||
18 5940 | ||
19 6060 | ||
20 6930 | ||
21 7070 |
Oops, something went wrong.