cms-l1trigger-menustudies/MenuGeneration — pull request #9 by mark-grimes (2014-04-13 12:29:58+00:00)
Title: Allow fit to use XML menus

This includes a lot of changes in the background, so I've also checked the rate plots and fitted menus for old and new code with text menus as well. For testing I used the files in test/unitTestData; these currently only have old triggers included, I'll update that soon.
There is no difference to the fitted menu results (using "diff" on the xml output) between the old code and new code when using text menus. There is a small difference when using xml menus, it looks like numerical accuracy. I wouldn't have expected even that though. For example, when fitting the test/unitTestData input for 200kHz, 300kHz and 400kHz diff gives:

[grimes@lxplus416 MenuGeneration]$ diff changeFitToUseXMLMenu-txtMenu-fittedMenu.xml changeFitToUseXMLMenu-xmlMenu-fittedMenu.xml
24c24
< 129.479
---
> 129.479
40c40
< 74.9888
---
> 74.9888
57c57
< 23.0934
---
> 23.0934
90c90
< 104.968
---
> 104.968
106c106
< 37.7911
---
> 37.7911
122c122
< 33.8159
---
> 33.8159
138c138
< 16.4063
---
> 16.4063
156c156
< 19.9155
---
> 19.9155
174c174
< 48.1667
---
> 48.1667
191c191
< 48.1667
---
> 48.1667
208c208
< 13.8883
---
> 13.8883
227c227
< 15.2136
---
> 15.2136
244c244
< 106.258
---
> 106.258
260c260
< 91.6775
---
> 91.6775
292,293c292,293
< 51.3178
< 51.3178
---
> 51.3177
> 51.3177
409c409
< 114.514
---
> 114.514
425c425
< 67.079
---
> 67.079
460c460
< 247.094
---
> 247.094
475c475
< 90.2597
---
> 90.2597
507c507
< 30.3507
---
> 30.3507
523c523
< 15.0734
---
> 15.0734
559c559
< 25.3812
---
> 25.3812
576c576
< 25.3812
---
> 25.3812
593c593
< 12.4694
---
> 12.4694
629c629
< 91.7297
---
> 91.7297
677c677
< 42.676
---
> 42.676
714c714
< 15.9677
---
> 15.9677
752c752
< 12.2744
---
> 12.2744
794c794
< 104.457
---
> 104.457
810c810
< 62.0994
---
> 62.0994
845c845
< 233.836
---
> 233.836
860c860
< 84.2932
---
> 84.2932
876c876
< 31.3471
---
> 31.3471
892c892
< 27.9683
---
> 27.9683
908c908
< 14.404
---
> 14.404
944c944
< 20.0411
---
> 20.0411
961c961
< 20.0411
---
> 20.0411
978c978
< 11.6879
---
> 11.6879
997c997
< 12.3306
---
> 12.3306
1014c1014
< 84.0987
---
> 84.0987
1030c1030
< 69.2928
---
> 69.2929
1045c1045
< 16.9734
---
> 16.9734
1099c1099
< 15.1232
---
> 15.1232
1137c1137
< 11.6952
---
> 11.6952
1155c1155
< 11.1323
---
> 11.1323

Most of the (tiny) differences are in the errors - slightly odd because it should get that from the rate plots. I'll look into this but the differences are pretty inconsequential so I don't consider it a problem.

Comparison of rate plots are below, there is no difference. They all appear green because all the series overlay each other and the green one is the one that's on top. The label "master" indicates the code before this pull request and "changeFitToUseXMLMenu" indicates the code after applying this pull request.

![isoeg_mu_ratevsthreshold](https://cloud.githubusercontent.com/assets/6480160/2689431/d5356c8a-c305-11e3-9ec7-6342610abfc8.png)
![isomu_eg_ratevsthreshold](https://cloud.githubusercontent.com/assets/6480160/2689430/d535617c-c305-11e3-9ca4-7ae8e5ff851d.png)
![isomu_tau_ratevsthreshold](https://cloud.githubusercontent.com/assets/6480160/2689432/d53fa20e-c305-11e3-9b55-b53d09185668.png)
![isotau_tau_ratevsthreshold](https://cloud.githubusercontent.com/assets/6480160/2689433/d5408a2a-c305-11e3-93d4-d6d26ef7a8cc.png)
![isomu_mu_ratevsthreshold](https://cloud.githubusercontent.com/assets/6480160/2689434/d5451fe0-c305-11e3-8af6-f26feedeb746.png)
![isoeg_tau_ratevsthreshold](https://cloud.githubusercontent.com/assets/6480160/2689435/d5453002-c305-11e3-9d4e-5c98691997aa.png)
![isoeg_eg_ratevsthreshold](https://cloud.githubusercontent.com/assets/6480160/2689436/d54f6a72-c305-11e3-8bb9-2a1048afbd0e.png)
![singleisotau_ratevsthreshold](https://cloud.githubusercontent.com/assets/6480160/2689437/d54fd64c-c305-11e3-99a6-b58270d770e3.png)
![singletau_ratevsthreshold](https://cloud.githubusercontent.com/assets/6480160/2689438/d5578748-c305-11e3-8609-d60f1b227a41.png)
![singlemu_htm_ratevsthreshold](https://cloud.githubusercontent.com/assets/6480160/2689439/d5598570-c305-11e3-84d0-c6ab254c3abf.png)
![singlemu_cjet_ratevsthreshold](https://cloud.githubusercontent.com/assets/6480160/2689440/d55dc798-c305-11e3-94aa-e250e15d827e.png)
![singleisomu_ratevsthreshold](https://cloud.githubusercontent.com/assets/6480160/2689441/d55f22c8-c305-11e3-8fad-9be4de5c5550.png)
![singlemu_ratevsthreshold](https://cloud.githubusercontent.com/assets/6480160/2689442/d567db66-c305-11e3-91f7-9995164be9af.png)
![singleisoeg_htm_ratevsthreshold](https://cloud.githubusercontent.com/assets/6480160/2689443/d56922a0-c305-11e3-8fa9-2102a50e25ab.png)
![quadjetc_ratevsthreshold](https://cloud.githubusercontent.com/assets/6480160/2689448/d580f24a-c305-11e3-9978-c2dcdb5f3faa.png)
![singleisoeg_ratevsthreshold](https://cloud.githubusercontent.com/assets/6480160/2689444/d571f2f4-c305-11e3-986a-bdebf81ef5cb.png)
![htt_ratevsthreshold](https://cloud.githubusercontent.com/assets/6480160/2689449/d5810b04-c305-11e3-9612-27d1c276501a.png)
![htm_ratevsthreshold](https://cloud.githubusercontent.com/assets/6480160/2689447/d5779506-c305-11e3-82c4-82390f267c6d.png)
![singleeg_ratevsthreshold](https://cloud.githubusercontent.com/assets/6480160/2689446/d57777d8-c305-11e3-98da-e7c9c5ade747.png)
![singleisoeg_cjet_ratevsthreshold](https://cloud.githubusercontent.com/assets/6480160/2689445/d5722792-c305-11e3-9017-9bf745293290.png)
![singlejetc_ratevsthreshold](https://cloud.githubusercontent.com/assets/6480160/2689450/d5c1e7dc-c305-11e3-9fdf-2a4dc26880f0.png)
![doublejet_ratevsthreshold](https://cloud.githubusercontent.com/assets/6480160/2689451/d5c22ee0-c305-11e3-9c03-9f4bb66c553a.png)