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
    <         <parameter errorHigh="2.52083" errorLow="3.47917" name="threshold1">129.479</parameter>
    ---
    >         <parameter errorHigh="2.52081" errorLow="3.47919" name="threshold1">129.479</parameter>
    40c40
    <         <parameter errorHigh="1.01118" errorLow="2.98882" name="threshold1">74.9888</parameter>
    ---
    >         <parameter errorHigh="1.01117" errorLow="2.98883" name="threshold1">74.9888</parameter>
    57c57
    <         <parameter errorHigh="0.306567" errorLow="0.593433" name="threshold1">23.0934</parameter>
    ---
    >         <parameter errorHigh="0.306565" errorLow="0.593435" name="threshold1">23.0934</parameter>
    90c90
    <         <parameter errorHigh="3.03173" errorLow="2.96827" name="threshold1">104.968</parameter>
    ---
    >         <parameter errorHigh="3.03172" errorLow="2.96828" name="threshold1">104.968</parameter>
    106c106
    <         <parameter errorHigh="0.608874" errorLow="0.591126" name="threshold1">37.7911</parameter>
    ---
    >         <parameter errorHigh="0.60887" errorLow="0.59113" name="threshold1">37.7911</parameter>
    122c122
    <         <parameter errorHigh="0.284105" errorLow="0.815895" name="threshold1">33.8159</parameter>
    ---
    >         <parameter errorHigh="0.284101" errorLow="0.815899" name="threshold1">33.8159</parameter>
    138c138
    <         <parameter errorHigh="0.593714" errorLow="0.406286" name="leg1threshold1">16.4063</parameter>
    ---
    >         <parameter errorHigh="0.593712" errorLow="0.406288" name="leg1threshold1">16.4063</parameter>
    156c156
    <         <parameter errorHigh="0.0844593" errorLow="0.915541" name="leg1threshold1">19.9155</parameter>
    ---
    >         <parameter errorHigh="0.0844574" errorLow="0.915543" name="leg1threshold1">19.9155</parameter>
    174c174
    <         <parameter errorHigh="2.23327" errorLow="7.56673" name="threshold1">48.1667</parameter>
    ---
    >         <parameter errorHigh="2.23326" errorLow="7.56674" name="threshold1">48.1667</parameter>
    191c191
    <         <parameter errorHigh="2.23327" errorLow="7.56673" name="threshold1">48.1667</parameter>
    ---
    >         <parameter errorHigh="2.23326" errorLow="7.56674" name="threshold1">48.1667</parameter>
    208c208
    <         <parameter errorHigh="0.111733" errorLow="0.888267" name="leg1threshold1">13.8883</parameter>
    ---
    >         <parameter errorHigh="0.111732" errorLow="0.888268" name="leg1threshold1">13.8883</parameter>
    227c227
    <         <parameter errorHigh="0.786437" errorLow="0.213563" name="leg1threshold1">15.2136</parameter>
    ---
    >         <parameter errorHigh="0.786436" errorLow="0.213564" name="leg1threshold1">15.2136</parameter>
    244c244
    <         <parameter errorHigh="6.5417" errorLow="3.0583" name="threshold1">106.258</parameter>
    ---
    >         <parameter errorHigh="6.54168" errorLow="3.05832" name="threshold1">106.258</parameter>
    260c260
    <         <parameter errorHigh="1.92253" errorLow="2.87747" name="threshold1">91.6775</parameter>
    ---
    >         <parameter errorHigh="1.92253" errorLow="2.87748" name="threshold1">91.6775</parameter>
    292,293c292,293
    <         <parameter errorHigh="1.68225" errorLow="2.31775" name="leg1threshold1">51.3178</parameter>
    <         <parameter name="leg2threshold1">51.3178</parameter>
    ---
    >         <parameter errorHigh="1.68225" errorLow="2.31775" name="leg1threshold1">51.3177</parameter>
    >         <parameter name="leg2threshold1">51.3177</parameter>
    409c409
    <         <parameter errorHigh="5.48596" errorLow="3.51404" name="threshold1">114.514</parameter>
    ---
    >         <parameter errorHigh="5.48595" errorLow="3.51405" name="threshold1">114.514</parameter>
    425c425
    <         <parameter errorHigh="0.920959" errorLow="3.07904" name="threshold1">67.079</parameter>
    ---
    >         <parameter errorHigh="0.920952" errorLow="3.07905" name="threshold1">67.079</parameter>
    460c460
    <         <parameter errorHigh="0.906372" errorLow="7.09363" name="threshold1">247.094</parameter>
    ---
    >         <parameter errorHigh="0.906357" errorLow="7.09364" name="threshold1">247.094</parameter>
    475c475
    <         <parameter errorHigh="3.74031" errorLow="2.25969" name="threshold1">90.2597</parameter>
    ---
    >         <parameter errorHigh="3.7403" errorLow="2.2597" name="threshold1">90.2597</parameter>
    507c507
    <         <parameter errorHigh="0.449286" errorLow="0.650714" name="threshold1">30.3507</parameter>
    ---
    >         <parameter errorHigh="0.449284" errorLow="0.650716" name="threshold1">30.3507</parameter>
    523c523
    <         <parameter errorHigh="0.926612" errorLow="0.0733881" name="leg1threshold1">15.0734</parameter>
    ---
    >         <parameter errorHigh="0.926611" errorLow="0.0733891" name="leg1threshold1">15.0734</parameter>
    559c559
    <         <parameter errorHigh="5.41877" errorLow="0.181233" name="threshold1">25.3812</parameter>
    ---
    >         <parameter errorHigh="5.41876" errorLow="0.181237" name="threshold1">25.3812</parameter>
    576c576
    <         <parameter errorHigh="5.41877" errorLow="0.181233" name="threshold1">25.3812</parameter>
    ---
    >         <parameter errorHigh="5.41876" errorLow="0.181237" name="threshold1">25.3812</parameter>
    593c593
    <         <parameter errorHigh="0.530641" errorLow="0.469359" name="leg1threshold1">12.4694</parameter>
    ---
    >         <parameter errorHigh="0.53064" errorLow="0.46936" name="leg1threshold1">12.4694</parameter>
    629c629
    <         <parameter errorHigh="1.87028" errorLow="0.529721" name="threshold1">91.7297</parameter>
    ---
    >         <parameter errorHigh="1.87027" errorLow="0.529729" name="threshold1">91.7297</parameter>
    677c677
    <         <parameter errorHigh="0.324017" errorLow="1.67598" name="leg1threshold1">42.676</parameter>
    ---
    >         <parameter errorHigh="0.32402" errorLow="1.67598" name="leg1threshold1">42.676</parameter>
    714c714
    <         <parameter errorHigh="0.0322914" errorLow="0.967709" name="leg1threshold1">15.9677</parameter>
    ---
    >         <parameter errorHigh="0.0322924" errorLow="0.967708" name="leg1threshold1">15.9677</parameter>
    752c752
    <         <parameter errorHigh="0.725649" errorLow="0.274351" name="leg1threshold1">12.2744</parameter>
    ---
    >         <parameter errorHigh="0.72565" errorLow="0.27435" name="leg1threshold1">12.2744</parameter>
    794c794
    <         <parameter errorHigh="3.54299" errorLow="2.45701" name="threshold1">104.457</parameter>
    ---
    >         <parameter errorHigh="3.54298" errorLow="2.45702" name="threshold1">104.457</parameter>
    810c810
    <         <parameter errorHigh="1.90056" errorLow="2.09944" name="threshold1">62.0994</parameter>
    ---
    >         <parameter errorHigh="1.90055" errorLow="2.09945" name="threshold1">62.0994</parameter>
    845c845
    <         <parameter errorHigh="6.16415" errorLow="1.83585" name="threshold1">233.836</parameter>
    ---
    >         <parameter errorHigh="6.16414" errorLow="1.83586" name="threshold1">233.836</parameter>
    860c860
    <         <parameter errorHigh="1.70685" errorLow="0.293152" name="threshold1">84.2932</parameter>
    ---
    >         <parameter errorHigh="1.70684" errorLow="0.293159" name="threshold1">84.2932</parameter>
    876c876
    <         <parameter errorHigh="0.45287" errorLow="0.14713" name="threshold1">31.3471</parameter>
    ---
    >         <parameter errorHigh="0.452866" errorLow="0.147134" name="threshold1">31.3471</parameter>
    892c892
    <         <parameter errorHigh="0.631744" errorLow="0.468256" name="threshold1">27.9683</parameter>
    ---
    >         <parameter errorHigh="0.631742" errorLow="0.468258" name="threshold1">27.9683</parameter>
    908c908
    <         <parameter errorHigh="0.595987" errorLow="0.404013" name="leg1threshold1">14.404</parameter>
    ---
    >         <parameter errorHigh="0.595986" errorLow="0.404014" name="leg1threshold1">14.404</parameter>
    944c944
    <         <parameter errorHigh="0.958948" errorLow="1.84105" name="threshold1">20.0411</parameter>
    ---
    >         <parameter errorHigh="0.958944" errorLow="1.84106" name="threshold1">20.0411</parameter>
    961c961
    <         <parameter errorHigh="0.958948" errorLow="1.84105" name="threshold1">20.0411</parameter>
    ---
    >         <parameter errorHigh="0.958944" errorLow="1.84106" name="threshold1">20.0411</parameter>
    978c978
    <         <parameter errorHigh="0.312109" errorLow="0.687891" name="leg1threshold1">11.6879</parameter>
    ---
    >         <parameter errorHigh="0.312108" errorLow="0.687892" name="leg1threshold1">11.6879</parameter>
    997c997
    <         <parameter errorHigh="0.669421" errorLow="0.330579" name="leg1threshold1">12.3306</parameter>
    ---
    >         <parameter errorHigh="0.669419" errorLow="0.330581" name="leg1threshold1">12.3306</parameter>
    1014c1014
    <         <parameter errorHigh="2.30131" errorLow="0.0986862" name="threshold1">84.0987</parameter>
    ---
    >         <parameter errorHigh="2.30131" errorLow="0.0986938" name="threshold1">84.0987</parameter>
    1030c1030
    <         <parameter errorHigh="0.307153" errorLow="2.09285" name="threshold1">69.2928</parameter>
    ---
    >         <parameter errorHigh="0.307146" errorLow="2.09285" name="threshold1">69.2929</parameter>
    1045c1045
    <         <parameter errorHigh="0.0266209" errorLow="0.973379" name="leg1threshold1">16.9734</parameter>
    ---
    >         <parameter errorHigh="0.0266228" errorLow="0.973377" name="leg1threshold1">16.9734</parameter>
    1099c1099
    <         <parameter errorHigh="0.876753" errorLow="0.123247" name="leg1threshold1">15.1232</parameter>
    ---
    >         <parameter errorHigh="0.876754" errorLow="0.123246" name="leg1threshold1">15.1232</parameter>
    1137c1137
    <         <parameter errorHigh="0.30482" errorLow="0.69518" name="leg1threshold1">11.6952</parameter>
    ---
    >         <parameter errorHigh="0.304821" errorLow="0.695179" name="leg1threshold1">11.6952</parameter>
    1155c1155
    <         <parameter errorHigh="1.86765" errorLow="0.132347" name="threshold1">11.1323</parameter>
    ---
    >         <parameter errorHigh="1.86765" errorLow="0.132346" name="threshold1">11.1323</parameter>

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)