ATLAS Offline Software
Functions
Value.cxx File Reference
#include "Value.h"
Include dependency graph for Value.cxx:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &s, const Value &v)
 

Detailed Description


Author
M.Sutton
Date
Fri May 11 17:29:29 BST 2007

Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration

Definition in file Value.cxx.

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  s,
const Value v 
)

Definition at line 24 of file Value.cxx.

24  {
25 
26  const std::vector<std::string>& vals = v.Val();
27  s << v.Tag() << "\t= ";
28  if ( vals.size()>1 ) {
29  s << "{ ";
30  if ( vals.size()>12 ) s<< "\t";
31  for ( unsigned i=0 ; i<vals.size()-1 ; i++ ) {
32  if ( i && i%12==0 ) s << "\n\t\t";
33  s << vals[i] << ", ";
34  }
35  }
36  if ( vals.size()>0 ) s << vals[vals.size()-1];
37  if ( vals.size()>12 ) s << " ";
38  if ( vals.size()>1 ) s << " }";
39 
40  return s;
41 }
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
lumiFormat.i
int i
Definition: lumiFormat.py:85
python.PyAthena.v
v
Definition: PyAthena.py:154
PlotCalibFromCool.vals
vals
Definition: PlotCalibFromCool.py:474