C++ Interface to Tauola
include
TauSpinner
include/TauSpinner/SimpleParticle.h
1
#ifndef _SIMPLE_PARTICLE_H_
2
#define _SIMPLE_PARTICLE_H_
3
/**
4
Single particle for user convenience.
5
Just 4-momentum and pdgid.
6
*/
7
8
namespace
TauSpinner
{
9
10
class
SimpleParticle
11
{
12
public
:
13
SimpleParticle
() { _px=_py=_pz=_e=0; _pdgid=0; }
14
SimpleParticle
(
double
x,
double
y,
double
z,
double
e,
int
id
) { _px=x; _py=y; _pz=z; _e=e; _pdgid=id; }
15
16
double
px() {
return
_px; }
17
double
py() {
return
_py; }
18
double
pz() {
return
_pz; }
19
double
e () {
return
_e; }
20
int
pdgid() {
return
_pdgid; }
21
22
void
setPx(
double
x ) { _px = x; }
23
void
setPy(
double
y ) { _py = y; }
24
void
setPz(
double
z ) { _pz = z; }
25
void
setE (
double
e ) { _e = e; }
26
void
setPdgid(
int
id
) { _pdgid = id; }
27
28
private
:
29
double
_px,_py,_pz,_e;
30
int
_pdgid;
31
};
32
33
}
// namespace TauSpinner
34
#endif
TauSpinner::SimpleParticle
Definition:
include/TauSpinner/SimpleParticle.h:11
TauSpinner
Definition:
include/Tauola/TauolaParticlePair.h:33
Generated by
1.9.1