#include <iomanip>
#include <sstream>
#include "G4UnitsTable.hh"
#include "G4SystemOfUnits.hh"
#include "G4Threading.hh"
 
Go to the source code of this file.
      
        
          | std::ostream& operator<<  | 
          ( | 
          std::ostream &  | 
          flux,  | 
        
        
           | 
           | 
          G4BestUnit  | 
          a  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 545 of file G4UnitsTable.cc.
  550   G4int len = theUnitsTable[a.IndexOfCategory]->GetSymbMxLen();
 
  552   G4int    ksup(-1), kinf(-1);
 
  558                                      std::fabs(a.Value[1])),
 
  559                             std::fabs(a.Value[2]));
 
  561   for (
size_t k=0; k<List.size(); k++)
 
  563        G4double unit = List[k]->GetValue();
 
  565          {
if(unit>umax) {umax=unit; ksup=k;}}
 
  567          {
if(unit<umin) {umin=unit; kinf=k;}}
 
  571          if ((ratio>=1.)&&(ratio<rsup)) {rsup=ratio; ksup=k;}
 
  572          if ((ratio< 1.)&&(ratio>rinf)) {rinf=ratio; kinf=k;}
 
  577   if(index==-1) { index=kinf; }
 
  578   if(index==-1) { index=0; }
 
  580   for (
G4int j=0; j<a.nbOfVals; j++) 
 
  581      { flux << a.Value[j]/(List[index]->GetValue()) << 
" "; }
 
  583   std::ios::fmtflags oldform = flux.flags();
 
  585   flux.setf(std::ios::left,std::ios::adjustfield);
 
  586   flux << std::setw(len) << List[index]->GetSymbol();       
 
std::vector< G4UnitsCategory * > G4UnitsTable
 
const XML_Char int const XML_Char * value
 
static G4UnitsTable & GetUnitsTable()
 
T max(const T t1, const T t2)
brief Return the largest of the two arguments 
 
std::vector< G4UnitDefinition * > G4UnitsContainer