CMS 3D CMS Logo

Classes | Namespaces | Typedefs | Functions

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch1/src/DetectorDescription/Core/interface/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

namespace  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 21 of file DDSpecifics.h.


Function Documentation

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

Definition at line 109 of file DDSpecifics.cc.

References v.

{
  std::vector<std::string>::const_iterator it = v.begin();
  for (; it!=v.end(); ++it) {
    os << *it << std::endl;
  }
  return os;
}
std::ostream& operator<< ( std::ostream &  ,
const DDSpecifics  
)

Definition at line 89 of file DDSpecifics.cc.

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

{
  DDBase<DDName,DDI::Specific*>::def_type defined(sp.isDefined());
  if (defined.first) {
    os << *(defined.first) << " ";
    if (defined.second) {
      sp.rep().stream(os); 
    }
    else {
      os << "* specific not defined * ";  
    }
  }  
  else {
    os << "* specific not declared * ";  
  }  
  return os;

}