CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_5_3_3/src/DetectorDescription/Core/src/DDDivision.cc File Reference

#include "DetectorDescription/Core/interface/DDDivision.h"
#include "Division.h"
#include "DetectorDescription/Base/interface/DDdebug.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const DDDivision &div)

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const DDDivision div 
)

Definition at line 24 of file DDDivision.cc.

References DDBase< N, C >::isDefined(), and DDBase< N, C >::rep().

{
  DDBase<DDName,Division*>::def_type defined(div.isDefined());
  if (defined.first) {
    os << *(defined.first) << " ";
    if (defined.second) {
      div.rep().stream(os); 
    }
    else {
      os << "* division not defined * ";  
    }
  }  
  else {
    os << "* division not declared * ";  
  }  
  return os;
}