CMS 3D CMS Logo

Functions
DDDivision.cc File Reference
#include "DetectorDescription/Core/interface/DDDivision.h"
#include <ostream>
#include "DetectorDescription/Core/src/Division.h"
#include "FWCore/MessageLogger/interface/MessageLogger.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 11 of file DDDivision.cc.

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

12 {
14  if( defined.first ) {
15  os << *( defined.first ) << " ";
16  if( defined.second ) {
17  div.rep().stream( os );
18  }
19  else {
20  os << "* division not defined * ";
21  }
22  }
23  else {
24  os << "* division not declared * ";
25  }
26  return os;
27 }
def_type isDefined() const
Definition: DDBase.h:107
const DDI::rep_traits< N, C >::reference rep() const
Definition: DDBase.h:80
std::pair< const N *, bool > def_type
Definition: DDBase.h:66