checkmate
is hosted by
Hepforge
,
IPPP Durham
Home
Downloads
CheckMATE Prompt Searches Version @GitHub
CheckMATE LLP Version @GitHub
Previous CM versions
Manuals and Documentation
CheckMATE 1
CheckMATE 2
Analysis Manager
Doxygen Documentation
Analyses
ATLAS 7 TeV
CMS 7 TeV
ATLAS 8 TeV
CMS 8 TeV
ATLAS 13 TeV (only in CM2)
CMS 13 TeV (only in CM2)
ATLAS 14 TeV, High Lumi
CMS 14 TeV, High Lumi (coming soon)
Tutorials
Installation Tutorial (Ver 2)
CheckMATE Tutorial (Ver 2)
(Re)interpreting Workshop Tutorial 2021
Questions/Comments/Bugs
F.A.Q.
Contact
AnalysisBase Documentation
1.2.0
Start
AnalysisBase Features
Class Listing
branches
new_features
improve_analysismanager
tools
analysis
src
base
Units.cc
Go to the documentation of this file.
1
#include "
Units.h
"
2
3
namespace
units {
4
double
strToUnit
(std::string unit) {
5
if
(unit ==
"KB"
)
return
KB
;
6
else
if
(unit ==
"B"
)
return
B
;
7
else
if
(unit ==
"MB"
)
return
MB
;
8
else
if
(unit ==
"MUB"
)
return
MUB
;
9
else
if
(unit ==
"NB"
)
return
NB
;
10
else
if
(unit ==
"PB"
)
return
PB
;
11
else
if
(unit ==
"FB"
)
return
FB
;
12
else
if
(unit ==
"AB"
)
return
AB
;
13
else
if
(unit ==
"ZB"
)
return
ZB
;
14
else
if
(unit ==
"INVKB"
)
return
INVKB
;
15
else
if
(unit ==
"INVB"
)
return
INVB
;
16
else
if
(unit ==
"INVMB"
)
return
INVMB
;
17
else
if
(unit ==
"INVMUB"
)
return
INVMUB
;
18
else
if
(unit ==
"INVNB"
)
return
INVNB
;
19
else
if
(unit ==
"INVPB"
)
return
INVPB
;
20
else
if
(unit ==
"INVFB"
)
return
INVFB
;
21
else
if
(unit ==
"INVAB"
)
return
INVAB
;
22
else
if
(unit ==
"INVZB"
)
return
INVZB
;
23
else
{std::cerr <<
"Unit unknown!"
<< std::endl; exit(1);}
24
}
25
}
units::MUB
const double MUB
Definition:
Units.h:11
units::INVB
const double INVB
Definition:
Units.h:12
units::INVAB
const double INVAB
Definition:
Units.h:12
units::strToUnit
double strToUnit(std::string unit)
Returns the factor that corresponds to a given unit.
Definition:
Units.cc:4
units::INVNB
const double INVNB
Definition:
Units.h:12
units::INVPB
const double INVPB
Definition:
Units.h:12
units::B
const double B
Definition:
Units.h:11
units::ZB
const double ZB
Definition:
Units.h:11
units::INVFB
const double INVFB
Definition:
Units.h:12
units::FB
const double FB
Definition:
Units.h:11
units::INVMB
const double INVMB
Definition:
Units.h:12
units::AB
const double AB
Definition:
Units.h:11
units::KB
const double KB
Definition:
Units.h:11
Units.h
units::NB
const double NB
Definition:
Units.h:11
units::PB
const double PB
Definition:
Units.h:11
units::MB
const double MB
Definition:
Units.h:11
units::INVZB
const double INVZB
Definition:
Units.h:12
units::INVMUB
const double INVMUB
Definition:
Units.h:12
units::INVKB
const double INVKB
Definition:
Units.h:12
Generated on Tue Dec 9 2014 17:18:36 for AnalysisBase Documentation by
1.8.6