Particle { public double euclideanDistance(Particle part) { double xx = (this.vector().px() - part.vector().px()); double yy = (this.vector().py() - part.vector().py()); double zz = (this.vector().pz() - part.vector().pz()); return Math.sqrt(xx * xx + yy * yy + zz * zz); } Particle();  Particle(Particle p);  Particle(int pid, double px, double py, double pz, double vx, double vy, double vz);  Particle(int pid, double px, double py, double pz);  Particle(int pid, double mass, byte charge, double px, double py, double pz, double vx, double vy, double vz); static Particle createWithMassCharge(double mass, int charge ,double px, double py, double pz, double vx, double vy, double vz); static Particle createWithPid(int pid ,double px, double py, double pz, double vx, double vy, double vz); final void initParticleWithMass(double mass, double px, double py, double pz, double vx, double vy, double vz); final void initParticle(int pid, double px, double py, double pz, double vx, double vy, double vz); void setP(double mom); void setTheta(double theta); void changePid(int pid); void setParticleWithMass(double mass, byte charge, double px, double py, double pz, double vx, double vy, double vz); void setVector(int pid, double px, double py, double pz, double vx, double vy, double vz); double px(); double py(); double pz(); double p(); double theta(); double phi(); double e(); double vx(); double vy(); double vz(); void clearProperties(); void setVector(int pid, Vector3 nvect, Vector3 nvert); double euclideanDistance(Particle part); double cosTheta(Particle part); void initParticleWithPidMassSquare(int pid, int charge, double mass2, double px, double py, double pz, double vx, double vy,
	        double vz); void setVector(LorentzVector nvec, Vector3 nvert); double mass(); double mass2(); int charge(); int pid(); int gid(); LorentzVector vector(); Vector3 vertex(); double getProperty(String pname); Particle inFrame(Particle parent); double get(String pname); boolean hasProperty(String pname); void setProperty(String pname, double value); String propertyString(); String toLundString(); @Override String toString(); void copyParticle(Particle part); void copy(Particle part); void combine(Particle cpart, int sign); Vector3 particleDoca(Particle cpart);  }
@Test public void testEuclideanDistance() { Particle p1 = new Particle(); p1.setVector(11, 3.0, 0.0, 0.0, 0.0, 0.0, 0.0); Particle p2 = new Particle(22, 0.0, 4.0, 0.0); assertEquals(p1.euclideanDistance(p2), 5.0, 1e-6); }