ATLAS Offline Software
PhysicsAnalysis
CommonTools
ExpressionEvaluation
Root
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
14
namespace
ExpressionParsing
{
15
NTUPUnitInterpreter::NTUPUnitInterpreter
()
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
26
NTUPUnitInterpreter::~NTUPUnitInterpreter
()
27
{
28
}
29
30
const
std::map<std::string, double> &
NTUPUnitInterpreter::unitMap
()
const
31
{
32
return
m_unitStringToValue
;
33
}
34
}
ExpressionParsing::NTUPUnitInterpreter::m_unitStringToValue
std::map< std::string, double > m_unitStringToValue
Definition:
NTUPUnitInterpreter.h:27
ExpressionParsing::NTUPUnitInterpreter::unitMap
virtual const std::map< std::string, double > & unitMap() const
Definition:
NTUPUnitInterpreter.cxx:30
ExpressionParsing
Namespace holding all the expression evaluation code.
Definition:
ExpressionParser.h:26
NTUPUnitInterpreter.h
ExpressionParsing::NTUPUnitInterpreter::NTUPUnitInterpreter
NTUPUnitInterpreter()
Definition:
NTUPUnitInterpreter.cxx:15
ExpressionParsing::NTUPUnitInterpreter::~NTUPUnitInterpreter
virtual ~NTUPUnitInterpreter()
Definition:
NTUPUnitInterpreter.cxx:26
Generated on Tue Dec 24 2024 21:15:53 for ATLAS Offline Software by
1.8.18