CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_4_1_8_patch13/src/DetectorDescription/Core/src/DDName.cc File Reference

#include "DetectorDescription/Core/interface/DDName.h"
#include "DetectorDescription/Core/interface/DDCurrentNamespace.h"
#include "DetectorDescription/Base/interface/DDException.h"
#include "DetectorDescription/Core/interface/DDSplit.h"
#include "DetectorDescription/Base/interface/Singleton.h"
#include <sstream>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const DDName &n)

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const DDName n 
)

Definition at line 9 of file DDName.cc.

References DDName::id(), DDName::name(), and DDName::ns().

{ 
  os << n.ns() << ':' << n.name();
  static const char * ev = getenv("DDNAMEID");
  if (ev) os << '[' << n.id() << ']';
  return os;
}