- pagebs's home page
- Posts
- 2017
- June (1)
- 2016
- 2015
- 2014
- December (2)
- November (1)
- October (2)
- September (4)
- August (1)
- July (2)
- June (2)
- May (3)
- April (2)
- March (2)
- February (2)
- January (1)
- 2013
- November (1)
- October (3)
- September (2)
- August (3)
- July (4)
- June (4)
- May (2)
- April (2)
- March (2)
- February (4)
- January (2)
- 2012
- December (2)
- November (3)
- October (2)
- September (1)
- August (3)
- July (3)
- June (6)
- May (2)
- April (3)
- March (3)
- February (2)
- January (2)
- 2011
- December (2)
- November (1)
- October (7)
- September (3)
- August (2)
- July (5)
- June (2)
- May (2)
- April (4)
- March (2)
- January (1)
- 2010
- December (2)
- October (4)
- September (1)
- August (4)
- July (1)
- June (2)
- May (2)
- March (4)
- February (2)
- January (2)
- 2009
- December (1)
- November (2)
- October (1)
- September (2)
- August (1)
- July (2)
- June (1)
- May (2)
- April (2)
- March (1)
- February (1)
- January (6)
- 2008
- My blog
- Post new blog entry
- All blogs
L2jet: Changes between 3x3 and 5x5 Jet Patch Code
Updated on Fri, 2009-01-23 18:55. Originally created by pagebs on 2009-01-23 18:55.
Changes between 3x3 and 5x5 code
The 2008 L2jet code which used a 3x3 jet patch can be found here while the 2009 code which uses a 5x5 jet patch can be found here. Both sets of code use L2VirtualAlgo2006 and so are not the same as the official 2009 code put out by Ross. However, the changes needed to run with L2VirtualAlgo2009 are completely seperate from the changes needed to switch from 3x3 to 5x5 so the code linked above acurately represents the change from 3x3 to 5x5 in the official 2009 code as well. The changes in code relavent to the enlarged JP are listed below.
In the .h File:
- I changed the values of the enumerated variables 'cl2jet_par_mxPhiBin' and 'cl2jet_par_mxEtaBin' from 3 to 5 so that all code which loops over eta and phi bins loops the correct number of times. (line 31)
In the Function initRun:
- I changed the value of the parameter 'par_minPhiBinDiff' from 5 to 7 so that the highest energy jet patch and second highest energy jet patch would not overlap in phi. (line 145 5x5 code).
In the Function scanPhi:
- Starting at line 916 in the 5x5 code I added the two lines: 'eve_phiEne[cl2jetMaxPhiBins + 2] = eve_phiEne[2]' and 'eve_phiEne[cl2jetMaxPhiBins + 3] = eve_phiEne[3]'. This allows the code to search for the highest 5 phi bin grouping even if the group crosses zero. ie it can find the group 29-0-1-2-3.
- At line 944 in the 5x5 code I repeat the code which looks for the phi bin group with the highest ET but now sum 5 phi bins at a time instead of 3.
In the Function scanEta:
- At line 1052 in the 5x5 code I repeat the code which looks for the eta bin group with the highest ET within the phi bin group found in scanPhi. Again I now sum 5 eta bins at a time instead of 3.
»
- pagebs's blog
- Login or register to post comments