Hammer  1.0.0
Helicity Amplitude Module for Matrix Element Reweighting
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Hammer::Particle Class Reference

Particle class. More...

#include <Particle.hh>

+ Collaboration diagram for Hammer::Particle:

Public Member Functions

 Particle ()
 
 Particle (const FourMomentum &p, PdgId code)
 
 Particle (const Particle &other)=default
 
Particleoperator= (const Particle &other)=default
 
 ~Particle ()
 
ParticlesetMomentum (const FourMomentum &p)
 
ParticlesetPdgId (PdgId code)
 
PdgId pdgId () const
 
const FourMomentummomentum () const
 
FourMomentummomentum ()
 
const FourMomentump () const
 
FourMomentump ()
 

Private Attributes

PdgId _code
 
FourMomentum _momentum
 

Detailed Description

Particle class.

Defines a particle, ...

Definition at line 30 of file Particle.hh.

Constructor & Destructor Documentation

Hammer::Particle::Particle ( )

Definition at line 26 of file Particle.cc.

Hammer::Particle::Particle ( const FourMomentum p,
PdgId  code 
)
Parameters
[in]p
[in]code

Definition at line 31 of file Particle.cc.

Hammer::Particle::Particle ( const Particle other)
default
Hammer::Particle::~Particle ( )
inline

Definition at line 46 of file Particle.hh.

Member Function Documentation

const FourMomentum & Hammer::Particle::momentum ( ) const
Returns

Definition at line 56 of file Particle.cc.

FourMomentum & Hammer::Particle::momentum ( )
Returns

Definition at line 60 of file Particle.cc.

Particle& Hammer::Particle::operator= ( const Particle other)
default
const FourMomentum & Hammer::Particle::p ( ) const
Returns

Definition at line 64 of file Particle.cc.

FourMomentum & Hammer::Particle::p ( )
Returns

Definition at line 68 of file Particle.cc.

PdgId Hammer::Particle::pdgId ( ) const
Returns

Definition at line 52 of file Particle.cc.

Particle & Hammer::Particle::setMomentum ( const FourMomentum p)
Parameters
[in]p
Returns

Definition at line 42 of file Particle.cc.

Particle & Hammer::Particle::setPdgId ( PdgId  code)
Parameters
[in]code
Returns

Definition at line 47 of file Particle.cc.

Member Data Documentation

PdgId Hammer::Particle::_code
private

Definition at line 82 of file Particle.hh.

FourMomentum Hammer::Particle::_momentum
private

Definition at line 83 of file Particle.hh.


The documentation for this class was generated from the following files: