#include <CocoaUnitsTable.h>
Definition at line 103 of file CocoaUnitsTable.h.
CocoaBestUnit::CocoaBestUnit |
( |
const CLHEP::Hep3Vector & |
internalValue, |
|
|
const ALIstring & |
category |
|
) |
| |
CocoaBestUnit::~CocoaBestUnit |
( |
| ) |
|
const ALIstring& CocoaBestUnit::GetCategory |
( |
| ) |
const |
|
inline |
size_t CocoaBestUnit::GetIndexOfCategory |
( |
| ) |
const |
|
inline |
std::ostream& operator<< |
( |
std::ostream & |
flux, |
|
|
CocoaBestUnit |
VU |
|
) |
| |
|
friend |
Definition at line 377 of file CocoaUnitsTable.cc.
382 ALIint len = theUnitsTable[
a.IndexOfCategory]->GetSymbMxLen();
384 ALIint ksup(-1), kinf(-1);
392 for (
size_t k=0;
k<List.size();
k++)
399 if ((ratio>=1.)&&(ratio<rsup)) {rsup=ratio; ksup=
k;}
400 if ((ratio< 1.)&&(ratio>rinf)) {rinf=ratio; kinf=
k;}
404 ALIint index=ksup;
if(index==-1) index=kinf;
if(index==-1) index=0;
407 {flux <<
a.Value[
j]/(List[
index]->GetValue()) <<
" ";}
409 std::ios::fmtflags oldform = flux.flags();
411 flux.setf(std::ios::left,std::ios::adjustfield);
412 flux << std::setw(len) << List[
index]->GetSymbol();
std::vector< CocoaUnitDefinition * > CocoaUnitsContainer
static CocoaUnitsTable & GetUnitsTable()
const T & max(const T &a, const T &b)
std::vector< CocoaUnitsCategory * > CocoaUnitsTable
size_t CocoaBestUnit::IndexOfCategory |
|
private |
ALIint CocoaBestUnit::nbOfVals |
|
private |