ATLAS Offline Software
Loading...
Searching...
No Matches
NTUPUnitInterpreter.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
6// NTUPUnitInterpreter.cxx, (c) ATLAS Detector software
8// Author: Thomas Gillam (thomas.gillam@cern.ch)
9// ExpressionParsing library
11
12#include "NTUPUnitInterpreter.h"
13
14namespace ExpressionParsing {
16 {
17 m_unitStringToValue["keV"] = 0.001;
18 m_unitStringToValue["MeV"] = 1.;
19 m_unitStringToValue["GeV"] = 1000.;
20 m_unitStringToValue["TeV"] = 1000000.;
21
22 m_unitStringToValue["mm"] = 1.;
23 m_unitStringToValue["cm"] = 10.;
24 }
25
29
30 const std::map<std::string, double> &NTUPUnitInterpreter::unitMap() const
31 {
33 }
34}
virtual const std::map< std::string, double > & unitMap() const
std::map< std::string, double > m_unitStringToValue
Namespace holding all the expression evaluation code.