CMS 3D CMS Logo

DDConstant.h File Reference

#include "DetectorDescription/Core/interface/DDBase.h"
#include "DetectorDescription/Core/interface/DDName.h"
#include <vector>
#include <iostream>

Go to the source code of this file.

Classes

class  DDConstant
 a named constant corresponding to the DDL-XML tag <Constant> and <ConstantsVector> More...

Typedefs

typedef DDConstant DDNumeric
 std::maps the XML naming convention, i.e. <Numeric name="foo" value="4711"> -> DDNumeric

Functions

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


Typedef Documentation

typedef DDConstant DDNumeric

std::maps the XML naming convention, i.e. <Numeric name="foo" value="4711"> -> DDNumeric

Definition at line 38 of file DDConstant.h.


Function Documentation

std::ostream& operator<< ( std::ostream &  o,
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().

00023 {
00024   os << "DDConstant name=" << cons.name(); 
00025   
00026   if(cons.isDefined().second) {
00027     os << " val=" << cons.value();
00028   }
00029   else {
00030     os << " constant is not yet defined, only declared.";
00031   }  
00032   return os;
00033 }


Generated on Tue Jun 9 17:52:18 2009 for CMSSW by  doxygen 1.5.4