CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Namespaces | Typedefs | Functions
DDSpecifics.h File Reference
#include <map>
#include <string>
#include <vector>
#include "DetectorDescription/Core/interface/DDName.h"
#include "DetectorDescription/Core/interface/DDBase.h"
#include "DetectorDescription/Core/interface/DDsvalues.h"
#include "DetectorDescription/Core/interface/DDExpandedView.h"

Go to the source code of this file.

Classes

class  DDSpecifics
 Interface to attach user specific data to nodes in the expanded-view. More...
 

Namespaces

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

Typedefs

typedef std::vector< std::string > selectors_type
 

Functions

std::ostream & operator<< (std::ostream &, const std::vector< std::string > &)
 
std::ostream & operator<< (std::ostream &, const DDSpecifics &)
 

Typedef Documentation

typedef std::vector<std::string> selectors_type

Definition at line 18 of file DDSpecifics.h.

Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const std::vector< std::string > &   
)

Definition at line 84 of file DDSpecifics.cc.

References python.connectstrParser::o, cmsHarvester::sep, AlCaHLTBitMon_QueryRunRegistry::string, and findQualityFiles::v.

85 {
86  for( const auto& it : v ) {
87  os << it << std::endl;
88  }
89  return os;
90 }
std::ostream& operator<< ( std::ostream &  ,
const DDSpecifics  
)

Definition at line 66 of file DDSpecifics.cc.

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

67 {
68  DDBase<DDName,DDI::Specific*>::def_type defined(sp.isDefined());
69  if (defined.first) {
70  os << *(defined.first) << " ";
71  if (defined.second) {
72  sp.rep().stream(os);
73  }
74  else {
75  os << "* specific not defined * ";
76  }
77  }
78  else {
79  os << "* specific not declared * ";
80  }
81  return os;
82 }
Definition: DDBase.h:10
const DDI::rep_traits< N, C >::reference rep() const
Definition: DDBase.h:84