|
[Rivet-svn] rivet: Promote enum to strongly typed "enum class" in Projection...Rivet Mercurial rivet at projects.hepforge.orgSat Jun 23 17:30:02 BST 2018
details: https://rivet.hepforge.org/hg/rivet/rev/4e466496389f branches: multiweight changeset: 6346:4e466496389f user: David Grellscheid <david.grellscheid at durham.ac.uk> date: Sat Jun 23 17:23:26 2018 +0100 description: Promote enum to strongly typed "enum class" in Projections. This prevents accidental argument order swaps diffs (truncated from 1740 to 50 lines): --- a/analyses/pluginATLAS/ATLAS_2011_I926145.cc Sat Jun 23 15:10:31 2018 +0100 +++ b/analyses/pluginATLAS/ATLAS_2011_I926145.cc Sat Jun 23 17:23:26 2018 +0100 @@ -38,11 +38,11 @@ const FinalState fs25(cut25); /// @todo Bare Zs ... - ZFinder zfinder_e(fs20, cut20, PID::ELECTRON, 66.0*GeV, 116.0*GeV, 0.1, ZFinder::NOCLUSTER); + ZFinder zfinder_e(fs20, cut20, PID::ELECTRON, 66.0*GeV, 116.0*GeV, 0.1, ZFinder::ClusterPhotons::NONE); declare(zfinder_e, "ZFinder_e"); - ZFinder zfinder_mu(fs20, cut20, PID::MUON, 66.0*GeV, 116.0*GeV, 0.1, ZFinder::NOCLUSTER); + ZFinder zfinder_mu(fs20, cut20, PID::MUON, 66.0*GeV, 116.0*GeV, 0.1, ZFinder::ClusterPhotons::NONE); declare(zfinder_mu, "ZFinder_mu"); - ZFinder zfinder_mufull(fs25, cut25, PID::MUON, 66.0*GeV, 116.0*GeV, 0.1, ZFinder::NOCLUSTER); + ZFinder zfinder_mufull(fs25, cut25, PID::MUON, 66.0*GeV, 116.0*GeV, 0.1, ZFinder::ClusterPhotons::NONE); declare(zfinder_mufull, "ZFinder_mufull"); /// @todo ... but dressed Ws? --- a/analyses/pluginATLAS/ATLAS_2011_I928289_W.cc Sat Jun 23 15:10:31 2018 +0100 +++ b/analyses/pluginATLAS/ATLAS_2011_I928289_W.cc Sat Jun 23 17:23:26 2018 +0100 @@ -28,10 +28,10 @@ Cut cut = (Cuts::pT >= 20*GeV); - WFinder wfinder_el_bare( fs, cut, PID::ELECTRON, 40.0*GeV, 7000.0*GeV, 25.0*GeV, 0.0, WFinder::CLUSTERNODECAY, WFinder::NOTRACK, WFinder::TRANSMASS); - WFinder wfinder_el_dressed(fs, cut, PID::ELECTRON, 40.0*GeV, 7000.0*GeV, 25.0*GeV, 0.1, WFinder::CLUSTERNODECAY, WFinder::NOTRACK, WFinder::TRANSMASS); - WFinder wfinder_mu_bare (fs, cut, PID::MUON , 40.0*GeV, 7000.0*GeV, 25.0*GeV, 0.0, WFinder::CLUSTERNODECAY, WFinder::NOTRACK, WFinder::TRANSMASS); - WFinder wfinder_mu_dressed(fs, cut, PID::MUON , 40.0*GeV, 7000.0*GeV, 25.0*GeV, 0.1, WFinder::CLUSTERNODECAY, WFinder::NOTRACK, WFinder::TRANSMASS); + WFinder wfinder_el_bare( fs, cut, PID::ELECTRON, 40.0*GeV, 7000.0*GeV, 25.0*GeV, 0.0, WFinder::ClusterPhotons::NODECAY, WFinder::AddPhotons::NO, WFinder::MassWindow::MT); + WFinder wfinder_el_dressed(fs, cut, PID::ELECTRON, 40.0*GeV, 7000.0*GeV, 25.0*GeV, 0.1, WFinder::ClusterPhotons::NODECAY, WFinder::AddPhotons::NO, WFinder::MassWindow::MT); + WFinder wfinder_mu_bare (fs, cut, PID::MUON , 40.0*GeV, 7000.0*GeV, 25.0*GeV, 0.0, WFinder::ClusterPhotons::NODECAY, WFinder::AddPhotons::NO, WFinder::MassWindow::MT); + WFinder wfinder_mu_dressed(fs, cut, PID::MUON , 40.0*GeV, 7000.0*GeV, 25.0*GeV, 0.1, WFinder::ClusterPhotons::NODECAY, WFinder::AddPhotons::NO, WFinder::MassWindow::MT); declare(wfinder_el_bare , "WFinder_el_bare"); declare(wfinder_el_dressed, "WFinder_el_dressed"); --- a/analyses/pluginATLAS/ATLAS_2011_I928289_Z.cc Sat Jun 23 15:10:31 2018 +0100 +++ b/analyses/pluginATLAS/ATLAS_2011_I928289_Z.cc Sat Jun 23 17:23:26 2018 +0100 @@ -27,10 +27,10 @@ Cut cut = (Cuts::pT >= 20.0*GeV); - ZFinder zfinder_ee_bare( fs, cut, PID::ELECTRON, 66.0*GeV, 116.0*GeV, 0.0, ZFinder::CLUSTERNODECAY, ZFinder::NOTRACK); - ZFinder zfinder_ee_dressed(fs, cut, PID::ELECTRON, 66.0*GeV, 116.0*GeV, 0.1, ZFinder::CLUSTERNODECAY, ZFinder::NOTRACK); - ZFinder zfinder_mm_bare( fs, cut, PID::MUON , 66.0*GeV, 116.0*GeV, 0.0, ZFinder::CLUSTERNODECAY, ZFinder::NOTRACK); - ZFinder zfinder_mm_dressed(fs, cut, PID::MUON , 66.0*GeV, 116.0*GeV, 0.1, ZFinder::CLUSTERNODECAY, ZFinder::NOTRACK); + ZFinder zfinder_ee_bare( fs, cut, PID::ELECTRON, 66.0*GeV, 116.0*GeV, 0.0, ZFinder::ClusterPhotons::NODECAY, ZFinder::AddPhotons::NO); + ZFinder zfinder_ee_dressed(fs, cut, PID::ELECTRON, 66.0*GeV, 116.0*GeV, 0.1, ZFinder::ClusterPhotons::NODECAY, ZFinder::AddPhotons::NO); + ZFinder zfinder_mm_bare( fs, cut, PID::MUON , 66.0*GeV, 116.0*GeV, 0.0, ZFinder::ClusterPhotons::NODECAY, ZFinder::AddPhotons::NO); + ZFinder zfinder_mm_dressed(fs, cut, PID::MUON , 66.0*GeV, 116.0*GeV, 0.1, ZFinder::ClusterPhotons::NODECAY, ZFinder::AddPhotons::NO); declare(zfinder_ee_bare , "ZFinder_ee_bare" );
More information about the Rivet-svn mailing list |