Commit d5058870 authored by adelmann's avatar adelmann 🎗
Browse files

add general p*p

parent db91d46e
......@@ -518,6 +518,7 @@ private:
double calculateAngle2(double x, double y);
double pSqr(Vector_t p1, Vector_t p2) const;
void calcEMean(); // update eKin_m;
......@@ -681,6 +682,12 @@ private:
};
inline double PartBunch::pSqr(Vector_t p1, Vector_t p2) const {
return p1[0]*p2[0] + p1[0]*p2[1] + p1[0]*p2[2] + p1[1]*p2[0] + p1[1]*p2[1] + p1[1]*p2[2] + p1[2]*p2[0] + p1[2]*p2[1] + p1[2]*p2[2];
}
inline
bool PartBunch::isDcBeam() { return dcBeam_m;}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment