#include <CocoaUnitsTable.h>
Definition at line 94 of file CocoaUnitsTable.h.
◆ CocoaBestUnit() [1/2]
◆ CocoaBestUnit() [2/2]
CocoaBestUnit::CocoaBestUnit |
( |
const CLHEP::Hep3Vector & |
internalValue, |
|
|
const ALIstring & |
category |
|
) |
| |
◆ ~CocoaBestUnit()
CocoaBestUnit::~CocoaBestUnit |
( |
| ) |
|
◆ GetCategory()
const ALIstring& CocoaBestUnit::GetCategory |
( |
| ) |
const |
|
inline |
◆ GetIndexOfCategory()
size_t CocoaBestUnit::GetIndexOfCategory |
( |
| ) |
const |
|
inline |
◆ GetValue()
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
flux, |
|
|
CocoaBestUnit |
VU |
|
) |
| |
|
friend |
Definition at line 343 of file CocoaUnitsTable.cc.
346 ALIint len = theUnitsTable[
a.IndexOfCategory]->GetSymbMxLen();
348 ALIint ksup(-1), kinf(-1);
355 for (
size_t k = 0;
k < List.size();
k++) {
371 if ((ratio >= 1.) && (ratio < rsup)) {
375 if ((ratio < 1.) && (ratio > rinf)) {
389 flux <<
a.Value[
j] / (List[
index]->GetValue()) <<
" ";
392 std::ios::fmtflags oldform = flux.flags();
394 flux.setf(std::ios::left, std::ios::adjustfield);
395 flux << std::setw(len) << List[
index]->GetSymbol();
std::vector< CocoaUnitDefinition * > CocoaUnitsContainer
static CocoaUnitsTable & GetUnitsTable()
Abs< T >::type abs(const T &t)
std::vector< CocoaUnitsCategory * > CocoaUnitsTable
Basic3DVector unit() const
◆ Category
◆ IndexOfCategory
size_t CocoaBestUnit::IndexOfCategory |
|
private |
◆ nbOfVals
ALIint CocoaBestUnit::nbOfVals |
|
private |
◆ Value