#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) |
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; }