#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.
Namespaces | |
namespace | DDI |
Classes | |
class | DDDivision |
Typedefs | |
typedef DDI::Singleton < std::map< std::string, std::vector< DDName > > > | DIVNAMES |
Functions | |
void | DD_NDC (const DDName &) |
std::ostream & | operator<< (std::ostream &, const DDDivision &) |
typedef DDI::Singleton<std::map<std::string,std::vector<DDName> > > DIVNAMES |
Definition at line 127 of file DDDivision.h.
Definition at line 16 of file DDDivision.cc.
References DDI::Singleton< I >::instance(), DDName::name(), DDName::ns(), and p.
Referenced by DDDivision::DDDivision().
00016 { 00017 std::vector<DDName> & ns = DIVNAMES::instance()[n.name()]; 00018 typedef std::vector<DDName>::iterator IT; 00019 bool alreadyIn(false); 00020 for(IT p = ns.begin(); p != ns.end() ; ++p) { 00021 if ( p->ns() == n.ns()) { 00022 alreadyIn = true; 00023 break; 00024 } 00025 } 00026 if (!alreadyIn) { 00027 ns.push_back(n); 00028 } 00029 }
std::ostream& operator<< | ( | std::ostream & | , | |
const DDDivision & | ||||
) |
Definition at line 32 of file DDDivision.cc.
References DDBase< N, C >::isDefined(), and DDBase< N, C >::rep().
00033 { 00034 DDBase<DDName,Division*>::def_type defined(div.isDefined()); 00035 if (defined.first) { 00036 os << *(defined.first) << " "; 00037 if (defined.second) { 00038 div.rep().stream(os); 00039 } 00040 else { 00041 os << "* division not defined * "; 00042 } 00043 } 00044 else { 00045 os << "* division not declared * "; 00046 } 00047 return os; 00048 }