[Rivet-svn] rivet: 6 new changesets

Rivet Mercurial rivet at projects.hepforge.org
Thu Apr 7 16:30:02 BST 2016


details:   https://rivet.hepforge.org/hg/rivet/rev/796dd17e8e26
branches:  
changeset: 5103:796dd17e8e26
user:      Andy Buckley <andy at insectnation.org>
date:      Thu Apr 07 08:49:37 2016 +0100
description:
Rename and improve PID and Particle Z,A,lambda functions -> nuclZ,nuclA,nuclNlambda.

details:   https://rivet.hepforge.org/hg/rivet/rev/3b98e3c8cb3a
branches:  
changeset: 5104:3b98e3c8cb3a
user:      Andy Buckley <andy at insectnation.org>
date:      Thu Apr 07 08:50:11 2016 +0100
description:
Restructure Beam projection functions for beam particle and sqrtS extraction, and add asqrtS functions.

details:   https://rivet.hepforge.org/hg/rivet/rev/d257adb6f552
branches:  
changeset: 5105:d257adb6f552
user:      Andy Buckley <andy at insectnation.org>
date:      Thu Apr 07 15:55:01 2016 +0100
description:
Interface and documentation improvements

details:   https://rivet.hepforge.org/hg/rivet/rev/649534bd4110
branches:  
changeset: 5106:649534bd4110
user:      Andy Buckley <andy at insectnation.org>
date:      Thu Apr 07 15:55:14 2016 +0100
description:
Adding functions/methods to compute beam boosts

details:   https://rivet.hepforge.org/hg/rivet/rev/b260d9b74638
branches:  
changeset: 5107:b260d9b74638
user:      Andy Buckley <andy at insectnation.org>
date:      Thu Apr 07 15:59:35 2016 +0100
description:
Add comBoost functions and methods to Beam.hh, and tidy LorentzTransformation.

details:   https://rivet.hepforge.org/hg/rivet/rev/5f9fd6751046
branches:  
changeset: 5108:5f9fd6751046
user:      Andy Buckley <andy at insectnation.org>
date:      Thu Apr 07 16:26:03 2016 +0100
description:
Remove implicit conventional event rotation for HERA -- this needs to be done explicitly from now.

diffs (truncated from 661 to 50 lines):

--- a/ChangeLog	Wed Apr 06 17:12:46 2016 +0100
+++ b/ChangeLog	Thu Apr 07 16:26:03 2016 +0100
@@ -1,3 +1,17 @@
+2016-04-07  Andy Buckley  <andy.buckley at cern.ch>
+
+	* Remove implicit conventional event rotation for HERA -- this
+	needs to be done explicitly from now.
+
+	* Add comBoost functions and methods to Beam.hh, and tidy
+	LorentzTransformation.
+
+	* Restructure Beam projection functions for beam particle and
+	sqrtS extraction, and add asqrtS functions.
+
+	* Rename and improve PID and Particle Z,A,lambda functions ->
+	nuclZ,nuclA,nuclNlambda.
+
 2016-04-05  Andy Buckley  <andy.buckley at cern.ch>
 
 	* Improve binIndex function, with an optional argument to allow
--- a/include/Rivet/Math/LorentzTrans.hh	Wed Apr 06 17:12:46 2016 +0100
+++ b/include/Rivet/Math/LorentzTrans.hh	Thu Apr 07 16:26:03 2016 +0100
@@ -1,27 +1,44 @@
 #ifndef RIVET_MATH_LORENTZTRANS
 #define RIVET_MATH_LORENTZTRANS
 
-#include <iostream>
-
 #include "Rivet/Math/MathHeader.hh"
 #include "Rivet/Math/MathUtils.hh"
 #include "Rivet/Math/MatrixN.hh"
 #include "Rivet/Math/Matrix3.hh"
 #include "Rivet/Math/Vector4.hh"
+#include <iostream>
 
 namespace Rivet {
 
 
-  inline double lorentzGamma(const double beta) {
-    return 1.0 / sqrt(1 - beta*beta);
+  /// @name Simple Lorentz factor conversions
+  //@{
+
+  /// Calculate the gamma factor from beta
+  inline double lorentzBeta2Gamma(double beta) {
+    return 1.0 / sqrt(1 - sqr(beta));
   }
 
+  /// Calculate beta from the gamma factor
+  inline double lorentzGamma2Beta(double gamma) {


More information about the Rivet-svn mailing list