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::Units Class Reference

Hammer class for dealing with units. More...

#include <Units.hh>

+ Collaboration diagram for Hammer::Units:

Public Member Functions

double getUnitsRescalingToMC (std::string mcunits, std::string localunits) const
 

Static Public Member Functions

static Unitsinstance ()
 

Protected Member Functions

 Units ()
 
 Units (const Units &)=delete
 
Unitsoperator= (const Units &)=delete
 
 Units (Units &&)=delete
 
Unitsoperator= (Units &&)=delete
 
 ~Units ()=default
 
void init ()
 initializes the units map More...
 

Static Protected Member Functions

static UnitsgetUnitsInstance ()
 

Private Attributes

std::map< std::string, double > _unitfactors
 

Static Private Attributes

static Units_theUnits = nullptr
 

Detailed Description

Hammer class for dealing with units.

Organized as a singleton accessed by the instance() method

Definition at line 38 of file Units.hh.

Constructor & Destructor Documentation

Hammer::Units::Units ( )
inlineprotected

Definition at line 41 of file Units.hh.

Hammer::Units::Units ( const Units )
protecteddelete
Hammer::Units::Units ( Units &&  )
protecteddelete
Hammer::Units::~Units ( )
protecteddefault

Member Function Documentation

Units * Hammer::Units::getUnitsInstance ( )
staticprotected
Returns

Definition at line 22 of file Units.cc.

double Hammer::Units::getUnitsRescalingToMC ( std::string  mcunits,
std::string  localunits 
) const
Returns

Definition at line 53 of file Units.cc.

void Hammer::Units::init ( )
protected

initializes the units map

Definition at line 34 of file Units.cc.

Units & Hammer::Units::instance ( )
static
Returns

Definition at line 30 of file Units.cc.

Units& Hammer::Units::operator= ( const Units )
protecteddelete
Units& Hammer::Units::operator= ( Units &&  )
protecteddelete

Member Data Documentation

Units * Hammer::Units::_theUnits = nullptr
staticprivate

Definition at line 67 of file Units.hh.

std::map<std::string, double> Hammer::Units::_unitfactors
private

Definition at line 69 of file Units.hh.


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