12#include <CLHEP/Geometry/Point3D.h>
13#include <CLHEP/Matrix/SymMatrix.h>
14#include <CLHEP/Vector/LorentzVector.h>
15#include <Math/Vector3D.h>
16#include <Math/Vector4D.h>
17#include <TMatrixFSym.h>
25 namespace CLHEPToROOT {
31 inline ROOT::Math::PxPyPzEVector
32 getLorentzVector(
const CLHEP::HepLorentzVector& vector)
34 return ROOT::Math::PxPyPzEVector(vector.x(), vector.y(), vector.z(), vector.t());
43 return ROOT::Math::XYZVector(point.x(), point.y(), point.z());
50 inline TMatrixFSym getTMatrixFSym(
const CLHEP::HepSymMatrix& matrix)
52 int n = matrix.num_row();
57 for (
int i = 0; i < n; ++i) {
58 for (
int j = 0; j < n; ++j)
59 m[i][j] = matrix[i][j];
68 inline TMatrixDSym getTMatrixDSym(
const CLHEP::HepSymMatrix& matrix)
70 int n = matrix.num_row();
75 for (
int i = 0; i < n; ++i) {
76 for (
int j = 0; j < n; ++j)
77 m[i][j] = matrix[i][j];
Abstract base class for different kinds of events.