CMS 3D CMS Logo

Functions
DDConstant.cc File Reference
#include "DetectorDescription/Core/interface/DDConstant.h"
#include <string>
#include <utility>
#include <vector>
#include "DetectorDescription/Core/interface/ClhepEvaluator.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

◆ operator<<()

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

output operator for printing ...

Definition at line 16 of file DDConstant.cc.

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

16  {
17  os << "DDConstant name=" << cons.name();
18 
19  if (cons.isDefined().second) {
20  os << " val=" << cons.value();
21  } else {
22  os << " constant is not yet defined, only declared.";
23  }
24  return os;
25 }
double value() const
return the first stored value; does not check boundaries!
Definition: DDConstant.h:33
const N & name() const
Definition: DDBase.h:59
def_type isDefined() const
Definition: DDBase.h:90