CMS 3D CMS Logo

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

Go to the source code of this file.

Namespaces

 generateTowerEtThresholdLUT_excl30
 

Variables

int generateTowerEtThresholdLUT_excl30.addr = 0
 
tuple generateTowerEtThresholdLUT_excl30.compNTT4Range = xrange(0,32)
 
tuple generateTowerEtThresholdLUT_excl30.etaRange = xrange(0,41)
 
int generateTowerEtThresholdLUT_excl30.extraCount = 0
 
string generateTowerEtThresholdLUT_excl30.printBins = ""
 
list generateTowerEtThresholdLUT_excl30.towerAreas
 
tuple generateTowerEtThresholdLUT_excl30.towEtThresh = int(round(float(towerAreas[ieta])*(1/(1+math.exp(-0.2*(ieta-5))))*(float(compNTT4)/10)))
 
tuple generateTowerEtThresholdLUT_excl30.towEtThreshLUTFile = open(os.environ['LOCALRT']+"/src/L1Trigger/L1TCalorimeter/data/lut_towEtThresh_2017v4_excl30.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...