CMS 3D CMS Logo

Functions

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/DetectorDescription/Core/src/DDConstant.cc File Reference

#include "DetectorDescription/Core/interface/DDConstant.h"
#include "DetectorDescription/Base/interface/DDException.h"
#include "DetectorDescription/ExprAlgo/interface/ExprEvalSingleton.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const DDConstant &cons)
 output operator for printing ...

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const DDConstant cons 
)

output operator for printing ...

Definition at line 22 of file DDConstant.cc.

References DDBase< N, C >::isDefined(), DDBase< N, C >::name(), and DDConstant::value().

{
  os << "DDConstant name=" << cons.name(); 
  
  if(cons.isDefined().second) {
    os << " val=" << cons.value();
  }
  else {
    os << " constant is not yet defined, only declared.";
  }  
  return os;
}