[Rivet-svn] rivet: 2 new changesets

Rivet Mercurial rivet at projects.hepforge.org
Tue Jul 10 08:15:02 BST 2018


details:   https://rivet.hepforge.org/hg/rivet/rev/9166dc3baadb
branches:  release-2-6-x
changeset: 6371:9166dc3baadb
user:      Andy Buckley <andy at insectnation.org>
date:      Tue Jul 10 08:06:20 2018 +0100
description:
Tweaks

details:   https://rivet.hepforge.org/hg/rivet/rev/0df8d19eb92d
branches:  release-2-6-x
changeset: 6372:0df8d19eb92d
user:      Andy Buckley <andy at insectnation.org>
date:      Tue Jul 10 08:06:41 2018 +0100
description:
Add LorentzTransform factory functions direct from FourMomentum, and operator()s

diffs (truncated from 83 to 50 lines):

--- a/ChangeLog	Mon Jul 02 21:08:05 2018 +0100
+++ b/ChangeLog	Tue Jul 10 08:06:41 2018 +0100
@@ -1,3 +1,7 @@
+2018-07-08  Andy Buckley  <andy.buckley at cern.ch>
+
+	* Add LorentzTransform factory functions direct from FourMomentum, and operator()s
+
 2018-06-20  Andy Buckley  <andy.buckley at cern.ch>
 
 	* Add FinalState(fs, cut) augmenting constructor, and PrevFS projection machinery. Validated for a abscharge > 0 cut.
--- a/bin/rivet-mkanalysis	Mon Jul 02 21:08:05 2018 +0100
+++ b/bin/rivet-mkanalysis	Tue Jul 10 08:06:41 2018 +0100
@@ -183,14 +183,16 @@
 
     if ANANAME.startswith("MC_"):
         HISTOBOOKING = """\
-      _h_XXXX = bookProfile1D("myobs1", 20, 0.0, 100.0);
-      _h_YYYY = bookHisto1D("myobs2", {0.0, 1.0, 2.0, 4.0, 8.0, 16.0}); // or logspace(20, 1e-2, 1e3)
-      _h_ZZZZ = bookCounter("myobs3");""" % KEYWORDS
+      _h_XXXX = bookHisto1D("myh1", 20, 0.0, 100.0);
+      _h_YYYY = bookHisto1D("myh2", logspace(20, 1e-2, 1e3));
+      _h_ZZZZ = bookHisto1D("myh3", {0.0, 1.0, 2.0, 4.0, 8.0, 16.0});
+      _p_AAAA = bookProfile1D("myp", 20, 0.0, 100.0);
+      _c_BBBB = bookCounter("myc");""" % KEYWORDS
     else:
         HISTOBOOKING = """\
       _h_XXXX = bookProfile1D(1, 1, 1);
-      _h_YYYY = bookHisto1D(2, 1, 1);
-      _h_ZZZZ = bookCounter(3, 1, 1);""" % KEYWORDS
+      _p_AAAA = bookHisto1D(2, 1, 1);
+      _c_BBBB = bookCounter(3, 1, 1);""" % KEYWORDS
     KEYWORDS["HISTOBOOKING"] = HISTOBOOKING
 
 
@@ -250,9 +252,9 @@
 
     /// @name Histograms
     //@{
-    Profile1DPtr _h_XXXX;
-    Histo1DPtr _h_YYYY;
-    CounterPtr _h_ZZZZ;
+    Histo1DPtr _h_XXXX, _h_YYYY, _h_ZZZZ;
+    Profile1DPtr _p_AAAA;
+    CounterPtr _c_BBBB;
     //@}
 %(INLINEMETHODS)s
 
--- a/include/Rivet/Math/LorentzTrans.hh	Mon Jul 02 21:08:05 2018 +0100
+++ b/include/Rivet/Math/LorentzTrans.hh	Tue Jul 10 08:06:41 2018 +0100
@@ -82,6 +82,16 @@


More information about the Rivet-svn mailing list