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.

00020               {
00021     E=0.;
00022     px=0.;
00023     py=0.;
00024     pz=0.;
00025     index = -1;
00026     return;
00027   }

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.

00030                                                                                       : 
00031     E(E_in), px(px_in), py(py_in), pz(pz_in), index(index_in) {
00032     return;
00033   }

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

Definition at line 36 of file HepEntity.h.

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


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.

00064                                       {
00065     E += el.E;
00066     px += el.px;
00067     py += el.py;
00068     pz += el.pz;
00069     return;
00070   }

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().

00072                                                                                              {
00073     E = E_in;
00074     px = px_in;
00075     py = py_in;
00076     pz = pz_in;
00077     index = index_in;
00078     return;
00079   }

void fastjet::d0::HepEntity::p4vec ( float *  p  )  const [inline]

Definition at line 56 of file HepEntity.h.

00056                                     {
00057     p[0] = px;
00058     p[1] = py;
00059     p[2] = pz;
00060     p[3] = E;
00061     return;
00062   }

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

Definition at line 46 of file HepEntity.h.

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

00046                             {
00047      return inline_maths::phi(px,py);
00048   }

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

Definition at line 51 of file HepEntity.h.

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

00051                            {
00052      return sqrt(inline_maths::sqr(px)+inline_maths::sqr(py));
00053   }

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

Definition at line 41 of file HepEntity.h.

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

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


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:

Generated on 26 Feb 2010 for fastjet by  doxygen 1.6.1