test
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 9 of file DDDivision.cc.

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

10 {
11  DDBase<DDName,Division*>::def_type defined(div.isDefined());
12  if (defined.first) {
13  os << *(defined.first) << " ";
14  if (defined.second) {
15  div.rep().stream(os);
16  }
17  else {
18  os << "* division not defined * ";
19  }
20  }
21  else {
22  os << "* division not declared * ";
23  }
24  return os;
25 }
std::pair< const N *, bool > def_type
Definition: DDBase.h:73