L2jet: Changes between 3x3 and 5x5 Jet Patch Code

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.