fastjet 2.4.5
Public Member Functions | Public Attributes
fastjet::d0::HepEntity Class Reference

#include <HepEntity.h>

List of all members.

Public Member Functions

 HepEntity ()
 HepEntity (double E_in, double px_in, double py_in, double pz_in, int index_in=-1)
 HepEntity (const HepEntity &in)
double y () const
double phi () const
double pT () const
void p4vec (float *p) const
void Add (const HepEntity el)
void Fill (double E_in, double px_in, double py_in, double pz_in, int index_in=-1)

Public Attributes

double E
double px
double py
double pz
int index

Detailed Description

Definition at line 16 of file HepEntity.h.


Constructor & Destructor Documentation

fastjet::d0::HepEntity::HepEntity ( ) [inline]

Definition at line 20 of file HepEntity.h.

              {
    E=0.;
    px=0.;
    py=0.;
    pz=0.;
    index = -1;
    return;
  }
fastjet::d0::HepEntity::HepEntity ( double  E_in,
double  px_in,
double  py_in,
double  pz_in,
int  index_in = -1 
) [inline]

Definition at line 30 of file HepEntity.h.

                                                                                      : 
    E(E_in), px(px_in), py(py_in), pz(pz_in), index(index_in) {
    return;
  }
fastjet::d0::HepEntity::HepEntity ( const HepEntity in) [inline]

Definition at line 36 of file HepEntity.h.

                                   : E(in.E), px(in.px), py(in.py), pz(in.pz), index(in.index) {
    return;
  }

Member Function Documentation

void fastjet::d0::HepEntity::Add ( const HepEntity  el) [inline]

Definition at line 64 of file HepEntity.h.

References E, px, py, and pz.

                                      {
    E += el.E;
    px += el.px;
    py += el.py;
    pz += el.pz;
    return;
  }
void fastjet::d0::HepEntity::Fill ( double  E_in,
double  px_in,
double  py_in,
double  pz_in,
int  index_in = -1 
) [inline]

Definition at line 72 of file HepEntity.h.

Referenced by fastjet::d0::main().

                                                                                             {
    E = E_in;
    px = px_in;
    py = py_in;
    pz = pz_in;
    index = index_in;
    return;
  }
void fastjet::d0::HepEntity::p4vec ( float *  p) const [inline]

Definition at line 56 of file HepEntity.h.

                                    {
    p[0] = px;
    p[1] = py;
    p[2] = pz;
    p[3] = E;
    return;
  }
double fastjet::d0::HepEntity::phi ( ) const [inline]

Definition at line 46 of file HepEntity.h.

References fastjet::d0::inline_maths::phi().

                            {
     return inline_maths::phi(px,py);
  }
double fastjet::d0::HepEntity::pT ( ) const [inline]

Definition at line 51 of file HepEntity.h.

References fastjet::d0::inline_maths::sqr().

double fastjet::d0::HepEntity::y ( ) const [inline]

Definition at line 41 of file HepEntity.h.

References fastjet::d0::inline_maths::y().

                          {
    return inline_maths::y(E,pz);
  }

Member Data Documentation

Definition at line 82 of file HepEntity.h.

Referenced by Add().

Definition at line 86 of file HepEntity.h.

Definition at line 83 of file HepEntity.h.

Referenced by Add().

Definition at line 84 of file HepEntity.h.

Referenced by Add().

Definition at line 85 of file HepEntity.h.

Referenced by Add().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines