|
[Rivet] Rivet 2.1.2: LorentzTransform with 0 Boost should do nothingAndy Buckley andy.buckley at cern.chFri Aug 29 17:33:06 BST 2014
Hi Michael, Fantastic -- thanks very much. I'll merge and test these asap, and we should soon have a new release out with this included. Good timing! Andy On 29/08/14 16:59, Michael Große wrote: > Hi, > > I'm using Rivet 2.1.2 and I noticed incorrect behavior of the class > LorentzTransform, if it is created with a (0,0,0) boost-vector. In > this case the resulting boost-matrix should be the unity-matrix, since > we are already in the restframe and no boosting should be happening. > > My current workaround is to add an if-condition to the constructor > LorentzTransform& setBoost(const Vector3& boost) in LorentzTrans.hh, > but I'm not sure if this is the proper place to fix this, since I > suspect that the error is somewhere in the calculation of the angle > between a vector and a vector with length 0. > I have also added another unittest to testMatVec.cc to check for this. > > I have attached both my files to this email. > > Cheers, > > Michael > > > > _______________________________________________ > Rivet mailing list > Rivet at projects.hepforge.org > https://www.hepforge.org/lists/listinfo/rivet > -- Dr Andy Buckley, Royal Society University Research Fellow Particle Physics Expt Group, University of Glasgow / PH Dept, CERN
More information about the Rivet mailing list |