HepMC Reference Documentation

HepMC

HepMC::Units Namespace Reference


Enumerations

enum  MomentumUnit { MEV, GEV }
enum  LengthUnit { MM, CM }

Functions

LengthUnit default_length_unit ()
 default unit is defined by configure
MomentumUnit default_momentum_unit ()
 default unit is defined by configure
std::string name (MomentumUnit)
 convert enum to string
std::string name (LengthUnit)
 convert enum to string
double conversion_factor (MomentumUnit from, MomentumUnit to)
 scaling factor relative to MeV
double conversion_factor (LengthUnit from, LengthUnit to)


Enumeration Type Documentation

enum HepMC::Units::MomentumUnit

Enumerator:
MEV 
GEV 

Definition at line 25 of file Units.h.

enum HepMC::Units::LengthUnit

Enumerator:
MM 
CM 

Definition at line 26 of file Units.h.


Function Documentation

LengthUnit HepMC::Units::default_length_unit (  ) 

default unit is defined by configure

Examples:
testUnits.cc.

Referenced by HepMC::GenEvent::clear(), and main().

MomentumUnit HepMC::Units::default_momentum_unit (  ) 

default unit is defined by configure

Examples:
testUnits.cc.

Referenced by HepMC::GenEvent::clear(), and main().

std::string HepMC::Units::name ( MomentumUnit   ) 

convert enum to string

Examples:
testHepMC.cc.in, testStreamIO.cc.in, and testUnits.cc.

Referenced by HepMC::IO_PDG_ParticleDataTable::add_quarks_to_table(), main(), HepMC::IO_PDG_ParticleDataTable::read_entry(), HepMC::GenEvent::write(), and HepMC::GenEvent::write_units().

std::string HepMC::Units::name ( LengthUnit   ) 

convert enum to string

double HepMC::Units::conversion_factor ( MomentumUnit  from,
MomentumUnit  to 
)

scaling factor relative to MeV

Examples:
testUnits.cc.

Referenced by main().

double HepMC::Units::conversion_factor ( LengthUnit  from,
LengthUnit  to 
)


Generated on Thu Jan 7 13:10:21 2010 for HepMC by  doxygen 1.4.7