def test1TGLVertex3OperatorPlus(self): """Try invoking TGLVertex3::operator+ twice""" # ROOT-10166 if not legacy_pyroot: scatteringPoint = TGLVertex3(2., 3., 0.2) glvec3 = TGLVector3(1, 2, 3) vertexEnd = scatteringPoint + glvec3 vertexEnd = scatteringPoint + glvec3
def test2TGLLine3Constructor(self): """Check that the right constructor of TGLLine3 is called""" # ROOT-10102 if not legacy_pyroot: trackAfterScattering = TGLLine3(TGLVertex3(2., 3., 0.2), TGLVector3(0., 0., -20.)) self.assertEqual(trackAfterScattering.Vector().X(), .0) self.assertEqual(trackAfterScattering.Vector().Y(), .0) self.assertEqual(trackAfterScattering.Vector().Z(), -20.0)
def test1TGLVertex3OperatorPlus(self): """Try invoking TGLVertex3::operator+ twice""" # ROOT-10166 if exp_pyroot: from ROOT import TGLVertex3, TGLVector3 scatteringPoint = TGLVertex3(2., 3., 0.2) glvec3 = TGLVector3(1, 2, 3) vertexEnd = scatteringPoint + glvec3 vertexEnd = scatteringPoint + glvec3