Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Particle Class Reference

#include <Particle.hh>

List of all members.


Detailed Description

This class is used to represent particles projected from a HepMC::GenEvent.

Definition at line 17 of file Particle.hh.


Public Member Functions

 Particle ()
 Default constructor.
 Particle (const GenParticle &gp)
 Constructor from a HepMC GenParticle.
 Particle (const Particle &p)
 Copy-constructor.
 ~Particle ()
 Destructor.
Particleoperator= (const Particle &p)
const GenParticlegetHepMCParticle () const
 Get a const reference to the original GenParticle.
bool hasHepMCParticle () const
 Check if the particle corresponds to a GenParticle.
const long getPdgId () const
 The PDG ID code for this Particle.
CLHEP::LorentzVectorgetMomentum ()
 The momentum of this projection of the Particle.
const CLHEP::LorentzVectorgetMomentum () const
 The momentum of this projection of the Particle.
const double getMass () const
 The mass of this Particle.

Constructor & Destructor Documentation

Particle  )  [inline]
 

Default constructor.

Definition at line 21 of file Particle.hh.

Particle const GenParticle gp  ) 
 

Constructor from a HepMC GenParticle.

Definition at line 8 of file Particle.cc.

References CLHEP::LorentzVector.

Particle const Particle p  ) 
 

Copy-constructor.

Definition at line 16 of file Particle.cc.

~Particle  ) 
 

Destructor.

Definition at line 23 of file Particle.cc.


Member Function Documentation

const GenParticle& getHepMCParticle  )  const [inline]
 

Get a const reference to the original GenParticle.

Definition at line 40 of file Particle.hh.

References Rivet::GenParticle.

Referenced by FinalStateHCM::project(), and DISKinematics::project().

const double getMass  )  const [inline]
 

The mass of this Particle.

Definition at line 55 of file Particle.hh.

const CLHEP::LorentzVector& getMomentum  )  const [inline]
 

The momentum of this projection of the Particle.

Definition at line 52 of file Particle.hh.

CLHEP::LorentzVector& getMomentum  )  [inline]
 

The momentum of this projection of the Particle.

Definition at line 49 of file Particle.hh.

Referenced by DISKinematics::project().

const long getPdgId  )  const [inline]
 

The PDG ID code for this Particle.

Definition at line 46 of file Particle.hh.

bool hasHepMCParticle  )  const [inline]
 

Check if the particle corresponds to a GenParticle.

Definition at line 43 of file Particle.hh.

Referenced by DISLepton::project().

Particle & operator= const Particle p  ) 
 

Definition at line 28 of file Particle.cc.

References Particle::_id, Particle::_mass, Particle::_momentum, Particle::_original, and CLHEP::LorentzVector.


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