|
[Rivet-svn] rivet: SmearedMET constructor improvementRivet Mercurial rivet at projects.hepforge.orgThu Aug 4 13:15:01 BST 2016
details: https://rivet.hepforge.org/hg/rivet/rev/792e74800d66 branches: release-2-5-x changeset: 5380:792e74800d66 user: Andy Buckley <andy at insectnation.org> date: Thu Aug 04 13:03:44 2016 +0100 description: SmearedMET constructor improvement diffs (30 lines): --- a/include/Rivet/Projections/SmearedMET.hh Wed Aug 03 21:55:15 2016 +0100 +++ b/include/Rivet/Projections/SmearedMET.hh Thu Aug 04 13:03:44 2016 +0100 @@ -17,16 +17,24 @@ /// @name Constructors etc. //@{ - /// @brief Constructor with smearing function arg + /// @brief Constructor from a MissingMomentum projection and a smearing function template <typename V2VFN> - SmearedMET(const MissingMomentum& mm, - const V2VFN& metSmearFn) + SmearedMET(const MissingMomentum& mm, const V2VFN& metSmearFn) : _metSmearFn(metSmearFn) { setName("SmearedMET"); addProjection(mm, "TruthMET"); } + /// @brief Constructor from a Cut (on the particles used to determine missing momentum) and a smearing function + template <typename V2VFN> + SmearedMET(const V2VFN& metSmearFn, const Cut& cut) + : _metSmearFn(metSmearFn) + { + setName("SmearedMET"); + addProjection(MissingMomentum(cut), "TruthMET"); + } + /// Clone on the heap. DEFAULT_RIVET_PROJ_CLONE(SmearedMET);
More information about the Rivet-svn mailing list |