#include "Alignment/CocoaModel/interface/ALIUnitsTable.h"
#include "CLHEP/Units/GlobalSystemOfUnits.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 329 of file ALIUnitsTable.cc.
References a, funct::abs(), gather_cfg::cout, ALIUnitDefinition::GetUnitsTable(), dqmiolumiharvest::j, dqmdumpme::k, SiStripPI::max, particleFlowDisplacedVertex_cfi::ratio, and unit().
332 ALIint len = theUnitsTable[
a.IndexOfCategory]->GetSymbMxLen();
334 ALIint ksup(-1), kinf(-1);
341 for (
size_t k = 0;
k < List.size();
k++) {
343 if (
value == 1.E12) {
348 }
else if (
value <= -1.E12) {
375 flux <<
a.Value[
j] / (List[
index]->GetValue()) <<
" ";
378 #ifdef ALIUSE_STD_NAMESPACE 379 std::ios::fmtflags oldform =
std::cout.flags();
384 flux.setf(std::ios::left, std::ios::adjustfield);
385 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()