FreeHEP API
Version current

hep.graphics.heprep
Interface HepRepPoint

All Superinterfaces:
HepRepAttribute, HepRepConstants
All Known Implementing Classes:
DefaultHepRepPoint, HepRepPointAdapter, HepRepPointAdapter, HepRepPointAdapter

public interface HepRepPoint
extends HepRepAttribute

HepRepPoint interface. The HepRepMath class can be used to deal with the conversions.

Author:
Mark Donszelmann
Source Code:
HepRepPoint.java

Field Summary
 
Fields inherited from interface hep.graphics.heprep.HepRepConstants
SHOW_DESC, SHOW_EXTRA, SHOW_NAME, SHOW_NONE, SHOW_VALUE, TYPE_BOOLEAN, TYPE_COLOR, TYPE_DOUBLE, TYPE_INT, TYPE_LONG, TYPE_STRING, TYPE_UNKNOWN
 
Method Summary
 HepRepPoint copy(HepRepInstance parent)
          Returns a deep copy of this point.
 double getEta()
          Returns coordinate with respect to vertex at (0, 0, 0).
 double getEta(double xVertex, double yVertex, double zVertex)
          Returns coordinate with respect to vertex at (xVertex, yVertex, zVertex).
 HepRepInstance getInstance()
          Returns associated instance (parent).
 double getPhi()
          Returns coordinate with respect to vertex at (0, 0, 0).
 double getPhi(double xVertex, double yVertex, double zVertex)
          Returns coordinate with respect to vertex at (xVertex, yVertex, zVertex).
 double getR()
          Returns coordinate with respect to vertex at (0, 0, 0).
 double getR(double xVertex, double yVertex, double zVertex)
          Returns coordinate with respect to vertex at (xVertex, yVertex, zVertex).
 double getRho()
          Returns coordinate with respect to vertex at (0, 0, 0).
 double getRho(double xVertex, double yVertex, double zVertex)
          Returns coordinate with respect to vertex at (xVertex, yVertex, zVertex).
 double getTheta()
          Returns coordinate with respect to vertex at (0, 0, 0).
 double getTheta(double xVertex, double yVertex, double zVertex)
          Returns coordinate with respect to vertex at (xVertex, yVertex, zVertex).
 double getX()
          Returns coordinate with respect to vertex at (0, 0, 0).
 double getX(double xVertex, double yVertex, double zVertex)
          Returns coordinate with respect to vertex at (xVertex, yVertex, zVertex).
 double[] getXYZ(double[] xyz)
          Returns coordinate with respect to vertex at (0, 0, 0).
 double getY()
          Returns coordinate with respect to vertex at (0, 0, 0).
 double getY(double xVertex, double yVertex, double zVertex)
          Returns coordinate with respect to vertex at (xVertex, yVertex, zVertex).
 double getZ()
          Returns coordinate with respect to vertex at (0, 0, 0).
 double getZ(double xVertex, double yVertex, double zVertex)
          Returns coordinate with respect to vertex at (xVertex, yVertex, zVertex).
 
Methods inherited from interface hep.graphics.heprep.HepRepAttribute
addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, getAttValue, getAttValueFromNode, getAttValuesFromNode, removeAttValue
 

Method Detail

getX

public double getX()
Returns coordinate with respect to vertex at (0, 0, 0).

Returns:
dx-coordinate

getY

public double getY()
Returns coordinate with respect to vertex at (0, 0, 0).

Returns:
dy-coordinate

getZ

public double getZ()
Returns coordinate with respect to vertex at (0, 0, 0).

Returns:
dz-coordinate

getRho

public double getRho()
Returns coordinate with respect to vertex at (0, 0, 0).

Returns:
rho = sqrt(dx2+dy2);

getPhi

public double getPhi()
Returns coordinate with respect to vertex at (0, 0, 0).

Returns:
phi = atan2(dy, dx);

getTheta

public double getTheta()
Returns coordinate with respect to vertex at (0, 0, 0).

Returns:
theta = atan2(rho, dx);

getR

public double getR()
Returns coordinate with respect to vertex at (0, 0, 0).

Returns:
r = sqrt(dx2+dy2+dz2);

getEta

public double getEta()
Returns coordinate with respect to vertex at (0, 0, 0).

Returns:
eta = -0.5*clog((1.-ct)/(1.+ct)), where ct = .cos(getTheta(dx, dy, dz));

getX

public double getX(double xVertex,
                   double yVertex,
                   double zVertex)
Returns coordinate with respect to vertex at (xVertex, yVertex, zVertex).

Returns:
dx-coordinate

getY

public double getY(double xVertex,
                   double yVertex,
                   double zVertex)
Returns coordinate with respect to vertex at (xVertex, yVertex, zVertex).

Returns:
dy-coordinate

getZ

public double getZ(double xVertex,
                   double yVertex,
                   double zVertex)
Returns coordinate with respect to vertex at (xVertex, yVertex, zVertex).

Returns:
dz-coordinate

getRho

public double getRho(double xVertex,
                     double yVertex,
                     double zVertex)
Returns coordinate with respect to vertex at (xVertex, yVertex, zVertex).

Returns:
rho = sqrt(dx2+dy2);

getPhi

public double getPhi(double xVertex,
                     double yVertex,
                     double zVertex)
Returns coordinate with respect to vertex at (xVertex, yVertex, zVertex).

Returns:
phi = atan2(dy, dx);

getTheta

public double getTheta(double xVertex,
                       double yVertex,
                       double zVertex)
Returns coordinate with respect to vertex at (xVertex, yVertex, zVertex).

Returns:
theta = atan2(rho, dx);

getR

public double getR(double xVertex,
                   double yVertex,
                   double zVertex)
Returns coordinate with respect to vertex at (xVertex, yVertex, zVertex).

Returns:
r = sqrt(dx2+dy2+dz2);

getEta

public double getEta(double xVertex,
                     double yVertex,
                     double zVertex)
Returns coordinate with respect to vertex at (xVertex, yVertex, zVertex).

Returns:
eta = -0.5*clog((1.-ct)/(1.+ct)), where ct = .cos(getTheta(dx, dy, dz));

getXYZ

public double[] getXYZ(double[] xyz)
Returns coordinate with respect to vertex at (0, 0, 0).

Parameters:
xyz - list of three coordinates which are filled and returned. If null, a new list of three coordinates is allocated.
Returns:
list of 3 coordinates.

getInstance

public HepRepInstance getInstance()
Returns associated instance (parent).

Returns:
HepRepInstance.

copy

public HepRepPoint copy(HepRepInstance parent)
                 throws CloneNotSupportedException
Returns a deep copy of this point.

Parameters:
parent - to add the copy to.
Returns:
copy of this point.
Throws:
CloneNotSupportedException - if copying is not possible.

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.