#include "Alignment/CocoaModel/interface/ALIUnitsTable.h"
#include <CLHEP/Units/SystemOfUnits.h>
#include <iomanip>
#include <cstdlib>
#include <cmath>
Go to the source code of this file.
◆ operator<<()
std::ostream& operator<< |
( |
std::ostream & |
flux, |
|
|
ALIBestUnit |
a |
|
) |
| |
Definition at line 330 of file ALIUnitsTable.cc.
References a, funct::abs(), gather_cfg::cout, ALIUnitDefinition::GetUnitsTable(), dqmiolumiharvest::j, dqmdumpme::k, SiStripPI::max, and unit().
333 ALIint len = theUnitsTable[
a.IndexOfCategory]->GetSymbMxLen();
335 ALIint ksup(-1), kinf(-1);
342 for (
size_t k = 0;
k < List.size();
k++) {
344 if (
value == 1.E12) {
349 }
else if (
value <= -1.E12) {
358 if ((ratio >= 1.) && (ratio < rsup)) {
362 if ((ratio < 1.) && (ratio > rinf)) {
376 flux <<
a.Value[
j] / (List[
index]->GetValue()) <<
" ";
379 #ifdef ALIUSE_STD_NAMESPACE 380 std::ios::fmtflags oldform =
std::cout.flags();
385 flux.setf(std::ios::left, std::ios::adjustfield);
386 flux << std::setw(len) << List[
index]->GetSymbol();
std::vector< ALIUnitsCategory * > ALIUnitsTable
Abs< T >::type abs(const T &t)
Basic3DVector unit() const
std::vector< std::shared_ptr< ALIUnitDefinition > > ALIUnitsContainer
static ALIUnitsTable & GetUnitsTable()