CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/DetectorDescription/Core/src/DDConstant.cc File Reference

#include "DetectorDescription/Core/interface/DDConstant.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 20 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;
}