CMS 3D CMS Logo

Functions
DDConstant.cc File Reference
#include "DetectorDescription/Core/interface/DDConstant.h"
#include <string>
#include <utility>
#include <vector>
#include "DetectorDescription/Base/interface/Store.h"
#include "DetectorDescription/ExprAlgo/interface/ClhepEvaluator.h"
#include "DetectorDescription/ExprAlgo/interface/ExprEvalSingleton.h"
#include "FWCore/Utilities/interface/Exception.h"

Go to the source code of this file.

Functions

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

Function Documentation

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

output operator for printing ...

Definition at line 24 of file DDConstant.cc.

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

25 {
26  os << "DDConstant name=" << cons.name();
27 
28  if(cons.isDefined().second) {
29  os << " val=" << cons.value();
30  }
31  else {
32  os << " constant is not yet defined, only declared.";
33  }
34  return os;
35 }
def_type isDefined() const
Definition: DDBase.h:110
const N & name() const
Definition: DDBase.h:78
double value() const
return the first stored value; does not check boundaries!
Definition: DDConstant.h:32