17 towerEtaWidths = [0, 0.087, 0.087, 0.087, 0.087, 0.087, 0.087, 0.087, 0.087, 0.087, 0.087,
18 0.087, 0.087, 0.087, 0.087, 0.087, 0.087, 0.087, 0.087, 0.087, 0.087,
19 0.090, 0.100, 0.113, 0.129, 0.150, 0.178, 0.150, 0.350,
20 0.132, 0.175, 0.176, 0.174, 0.176, 0.174, 0.177, 0.173, 0.175, 0.177, 0.173, 0.302]
31 for ring
in xrange(jetSeed-etaCen,jetSeed+etaFwd+1):
36 if ring >= len(towerEtaWidths):
40 etaFwdSize += towerEtaWidths[ring]
42 etaCenSize += towerEtaWidths[ring]
44 jetSize = (etaFwdSize + etaCenSize + towerEtaWidths[jetSeed])/0.8
45 seedCent = etaCenSize/etaFwdSize
47 jetProps = [jetSize, seedCent]
55 for seedEta
in etaRange:
57 print str(seedEta)+
"\t\t",
59 print str(seedEta+1)+
"\t\t",
62 for size
in jetEtaSizes:
65 print " 9x"+
str(size)+(
"\t"),
66 for seedEta
in etaRange:
68 etaFwdCen = (size-1)/2
70 print(
"%.2f / %.2f" %(jetProps[0],jetProps[1])),
74 print " 9x"+
str(size)+
" cen",
75 for seedEta
in etaRange:
80 print(
"%.2f / %.2f" %(jetProps[0],jetProps[1])),
82 print " 9x"+
str(size)+
" fwd",
83 for seedEta
in etaRange:
88 print(
"%.2f / %.2f" %(jetProps[0],jetProps[1])),
94 print "==============================================================================================================================================================================================================================" 95 print "Eta-dependence of jet sizes & seed centrality" 96 print "First number = jet diameter in eta, normalised to 0.8 (offline)" 97 print "Second number = jet size on forward side of jet seed / jet size on central side of jet seed" 98 print "Ideally, best jet choice is where both numbers are closest to unity!" 99 print "9xN cen = larger area on side of jet further from beam pipe" 100 print "9xN fwd = larger area on side of jet closer to beam pipe" 101 print "==============================================================================================================================================================================================================================" 104 beEtaRange = xrange(16,29)
105 hfEtaRange = xrange(29,41)
108 jetEtaSizes = [9,8,7,6,5,4,3]
118 print "==============================================================================================================================================================================================================================" def printJetProperties(etaRange)
S & print(S &os, JobReport::InputFile const &f)
def getJetProperties(jetSeed, etaFwd, etaCen)
Python script for studying eta dependence of jet sizes and seed centrality # Author: Aaron Bundock (a...
Abs< T >::type abs(const T &t)