3 from __future__
import print_function
18 towerEtaWidths = [0, 0.087, 0.087, 0.087, 0.087, 0.087, 0.087, 0.087, 0.087, 0.087, 0.087,
19 0.087, 0.087, 0.087, 0.087, 0.087, 0.087, 0.087, 0.087, 0.087, 0.087,
20 0.090, 0.100, 0.113, 0.129, 0.150, 0.178, 0.150, 0.350,
21 0.132, 0.175, 0.176, 0.174, 0.176, 0.174, 0.177, 0.173, 0.175, 0.177, 0.173, 0.302]
32 for ring
in xrange(jetSeed-etaCen,jetSeed+etaFwd+1):
37 if ring >= len(towerEtaWidths):
41 etaFwdSize += towerEtaWidths[ring]
43 etaCenSize += towerEtaWidths[ring]
45 jetSize = (etaFwdSize + etaCenSize + towerEtaWidths[jetSeed])/0.8
46 seedCent = etaCenSize/etaFwdSize
48 jetProps = [jetSize, seedCent]
55 print(
"Size \ eta\t", end=
' ')
56 for seedEta
in etaRange:
60 print(
str(seedEta+1)+
"\t\t", end=
' ')
63 for size
in jetEtaSizes:
66 print(
" 9x"+
str(size)+(
"\t"), end=
' ')
67 for seedEta
in etaRange:
68 print((
"\t"), end=
' ')
69 etaFwdCen = (size-1)/2
71 print((
"%.2f / %.2f" %(jetProps[0],jetProps[1])), end=
' ')
75 print(
" 9x"+
str(size)+
" cen", end=
' ')
76 for seedEta
in etaRange:
77 print((
"\t"), end=
' ')
81 print((
"%.2f / %.2f" %(jetProps[0],jetProps[1])), end=
' ')
83 print(
" 9x"+
str(size)+
" fwd", end=
' ')
84 for seedEta
in etaRange:
85 print((
"\t"), end=
' ')
89 print((
"%.2f / %.2f" %(jetProps[0],jetProps[1])), end=
' ')
95 print(
"==============================================================================================================================================================================================================================")
96 print(
"Eta-dependence of jet sizes & seed centrality")
97 print(
"First number = jet diameter in eta, normalised to 0.8 (offline)")
98 print(
"Second number = jet size on forward side of jet seed / jet size on central side of jet seed")
99 print(
"Ideally, best jet choice is where both numbers are closest to unity!")
100 print(
"9xN cen = larger area on side of jet further from beam pipe")
101 print(
"9xN fwd = larger area on side of jet closer to beam pipe")
102 print(
"==============================================================================================================================================================================================================================")
105 beEtaRange = xrange(16,29)
106 hfEtaRange = xrange(29,41)
109 jetEtaSizes = [9,8,7,6,5,4,3]
119 print(
"==============================================================================================================================================================================================================================")
def printJetProperties(etaRange)
def getJetProperties(jetSeed, etaFwd, etaCen)
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Abs< T >::type abs(const T &t)
if(threadIdxLocalY==0 &&threadIdxLocalX==0)