#include "Alignment/CocoaToDDL/interface/CocoaUnitsTable.h"
#include <CLHEP/Units/SystemOfUnits.h>
#include <iomanip>
#include <cmath>
Go to the source code of this file.
◆ operator<<()
std::ostream& operator<< |
( |
std::ostream & |
flux, |
|
|
CocoaBestUnit |
a |
|
) |
| |
Definition at line 343 of file CocoaUnitsTable.cc.
References a, funct::abs(), ALI_DBL_MAX, ALI_DBL_MIN, CocoaUnitDefinition::GetUnitsTable(), dqmiolumiharvest::j, isotrackApplyRegressor::k, WZElectronSkims53X_cff::max, and unit().
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