Documentation API of the 'hephysics.vec.Hep3Vector' Java class
Hep3Vector
hephysics.vec

Class Hep3Vector

    • Constructor Detail

      • Hep3Vector

        public Hep3Vector()
        New 3-vector
      • Hep3Vector

        public Hep3Vector(double dx,                  double dy,                  double dz)
        Define a 3-vector
        Parameters:
        dx -
        dy -
        dz -
      • Hep3Vector

        public Hep3Vector(double[] d)
        Create a BasicHep3Vector from a double array
        Parameters:
        d - An array {x,y,z}
      • Hep3Vector

        public Hep3Vector(float[] f)
        Define a new vector
        Parameters:
        f -
    • Method Detail

      • abs

        public double abs()
        Magnitude
        Returns:
      • cosTheta

        public double cosTheta()
        cosTheta
        Returns:
      • phi

        public double phi()
        Phi
        Returns:
      • add

        public void add(Hep3Vector v)
        Add a vector
        Parameters:
        v -
      • sub

        public void sub(Hep3Vector v)
        Subtract
        Parameters:
        v -
      • mult

        public Hep3Vector mult(double scalar,                       Hep3Vector v)
        Multiply by a scaler
        Parameters:
        scalar -
        v -
        Returns:
      • mult

        public void mult(double scalar)
        Multiply by a scaler
        Parameters:
        scalar -
      • centerOfMass

        public Hep3Vector centerOfMass(List<Hep3Vector> vecSet)
        Return a center of mass of a list of vectors
        Parameters:
        vecSet -
        Returns:
      • dot

        public double dot(Hep3Vector v,                  Hep3Vector w)
        Dot product of 2 vectors
        Parameters:
        v - vector 1
        w - vector 2
        Returns:
        product
      • perp

        public double perp()
        Transverse
        Returns:
      • dot

        public double dot(Hep3Vector p)
        Dot operation
        Parameters:
        p -
        Returns:
      • perp2

        public double perp2()
        Transverse
        Returns:
      • angle

        public double angle(Hep3Vector momentum)
        Angle between 2 vectors
        Parameters:
        momentum -
        Returns:
      • setV

        public void setV(double dx,                 double dy,                 double dz)
        Set vector
        Parameters:
        dx -
        dy -
        dz -
      • x

        public double x()
      • y

        public double y()
      • z

        public double z()
      • setX

        public void setX(double x)
        Set X component
        Parameters:
        x -
      • setY

        public void setY(double y)
        Y component
        Parameters:
        y -
      • setZ

        public void setZ(double z)
        Set Z component
        Parameters:
        z -
      • mag2

        public double mag2()
      • theta

        public double theta()
        angle theta (=atan2(perp(),z)
        Returns:
      • cosTheta

        public double cosTheta(Hep3Vector vector)
        Cosine Theta
        Parameters:
        vector -
        Returns:
      • setPhi

        public void setPhi(double ph)
        Set phi
        Parameters:
        ph - phi in radians
      • pseudoRapidity

        public double pseudoRapidity()
        Pseudorapidity. eta=-ln (tan (theta/2)) )
        Returns:
      • rapidity

        public double rapidity()
        Rapidity. 0.5*log( (m+z)/(m-z) );
        Returns:
      • getEta

        public double getEta()
      • mag

        public double mag()
      • magnitudeSquared

        public double magnitudeSquared()
      • v

        public double[] v()

SCaVis 2.2 © jWork.ORG

Warning: You see this message because an access to the SCaVis documentation for third-party Java classes is denied. Guests can only view jhplot Java API. To enable the description of all Java classes of SCaVis, please request the full SCaVis membership.

If you are already a full member, please login to the SCaVis member area before visiting this documentation.