CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Namespaces | Variables
generateTowerEtThresholdLUT.py File Reference

Go to the source code of this file.

Namespaces

 generateTowerEtThresholdLUT
 

Variables

int generateTowerEtThresholdLUT.addr = 0
 
tuple generateTowerEtThresholdLUT.compNTT4Range = xrange(0,32)
 
tuple generateTowerEtThresholdLUT.etaRange = xrange(0,41)
 
int generateTowerEtThresholdLUT.extraCount = 0
 
string generateTowerEtThresholdLUT.printBins = ""
 
list generateTowerEtThresholdLUT.towerAreas
 
tuple generateTowerEtThresholdLUT.towEtThresh = int(round(pow(float(towerAreas[ieta]),1.4)*(1/(1+math.exp(-0.07*(ieta))))*(pow(float(compNTT4),2)/100)))
 
tuple generateTowerEtThresholdLUT.towEtThreshLUTFile = open(os.environ['LOCALRT']+"/src/L1Trigger/L1TCalorimeter/data/lut_towEtThresh_2017v7.txt", "w")
 Python script for generating LUT to return tower Et threshold for energy sums # Input 1: 5 bits - compressed pileup estimate, as used for EG # Input 2: 6 bits - abs(ieta) = absolute value of ieta of the trigger tower # Tower Et threshold not applied for ieta <= 15 # LUT address input = compressedPileupEstimate << 6 | abs(ieta) # Returns 9 bits for tower et threshold # Author: Aaron Bundock (aaron. More...