Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CexmcSimpleRangeWithValue.cc File Reference
#include <iostream>
#include <iomanip>
#include <G4UnitsTable.hh>
#include "CexmcSimpleRangeWithValue.hh"
Include dependency graph for CexmcSimpleRangeWithValue.cc:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &out, const CexmcEnergyRangeWithDoubleValue &range)
 
std::ostream & operator<< (std::ostream &out, const CexmcEnergyRangeWithDoubleValueList &ranges)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const CexmcEnergyRangeWithDoubleValue range 
)

Definition at line 50 of file CexmcSimpleRangeWithValue.cc.

52 {
53  out << "[ " << std::setw( 3 ) << G4BestUnit( range.bottom, "Energy" ) <<
54  ", " << std::setw( 3 ) << G4BestUnit( range.top, "Energy" ) <<
55  " ) " << range.value;
56 
57  return out;
58 }
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
std::ostream& operator<< ( std::ostream &  out,
const CexmcEnergyRangeWithDoubleValueList ranges 
)

Definition at line 61 of file CexmcSimpleRangeWithValue.cc.

63 {
64  out << std::endl;
65  for ( CexmcEnergyRangeWithDoubleValueList::const_iterator
66  k( ranges.begin() ); k != ranges.end(); ++k )
67  {
68  out << " " << *k << std::endl;
69  }
70 
71  return out;
72 }