CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Namespaces | Typedefs | Functions
DDDivision.h File Reference
#include "DetectorDescription/Core/interface/DDName.h"
#include "DetectorDescription/Core/interface/DDLogicalPart.h"
#include "DetectorDescription/Core/interface/DDBase.h"
#include "DetectorDescription/Core/interface/DDAxes.h"
#include "DetectorDescription/Base/interface/Singleton.h"

Go to the source code of this file.

Classes

class  DDDivision
 

Namespaces

 DDI
 A DDDivision contains the parameterization that Geant4 needs in order to do its divisions.
 

Typedefs

typedef DDI::Singleton
< std::map< std::string,
std::vector< DDName > > > 
DIVNAMES
 

Functions

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

Typedef Documentation

typedef DDI::Singleton<std::map<std::string,std::vector<DDName> > > DIVNAMES

Definition at line 127 of file DDDivision.h.

Function Documentation

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

Definition at line 24 of file DDDivision.cc.

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

25 {
26  DDBase<DDName,Division*>::def_type defined(div.isDefined());
27  if (defined.first) {
28  os << *(defined.first) << " ";
29  if (defined.second) {
30  div.rep().stream(os);
31  }
32  else {
33  os << "* division not defined * ";
34  }
35  }
36  else {
37  os << "* division not declared * ";
38  }
39  return os;
40 }
std::pair< const N *, bool > def_type
Definition: DDBase.h:77