1#ifndef D0RunIIconeJets_HepEntity_class
2#define D0RunIIconeJets_HepEntity_class
4#include "inline_maths.h"
6#include <fastjet/internal/base.hh>
51 HepEntity(
double E_in,
double px_in,
double py_in,
double pz_in,
int index_in = -1) :
52 E(E_in), px(px_in), py(py_in), pz(pz_in), index(index_in) {
57 HepEntity(
const HepEntity& in) : E(in.E), px(in.px), py(in.py), pz(in.pz), index(in.index) {
62 inline double y()
const {
63 return inline_maths::y(E,pz);
67 inline double phi()
const {
68 return inline_maths::phi(px,py);
72 inline double pT()
const {
73 return sqrt(inline_maths::sqr(px)+inline_maths::sqr(py));
77 inline void p4vec(
float* p)
const {
85 inline void Add(
const HepEntity el) {
93 inline void Fill(
double E_in,
double px_in,
double py_in,
double pz_in,
int index_in = -1) {