CMS 3D CMS Logo

Functions
DDSpecifics.cc File Reference
#include "DetectorDescription/Core/interface/DDSpecifics.h"
#include <ostream>
#include "DetectorDescription/Core/interface/DDExpandedView.h"
#include "DetectorDescription/Core/interface/DDLogicalPart.h"
#include "DetectorDescription/Core/src/Specific.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/Utilities/interface/Exception.h"

Go to the source code of this file.

Functions

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

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const DDSpecifics sp 
)

Definition at line 48 of file DDSpecifics.cc.

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

48  {
50  if (defined.first) {
51  os << *(defined.first) << " ";
52  if (defined.second) {
53  sp.rep().stream(os);
54  } else {
55  os << "* specific not defined * ";
56  }
57  } else {
58  os << "* specific not declared * ";
59  }
60  return os;
61 }
Definition: DDBase.h:10
def_type isDefined() const
Definition: DDBase.h:90
const DDI::rep_traits< N, C >::reference rep() const
Definition: DDBase.h:65
std::ostream& operator<< ( std::ostream &  os,
const std::vector< std::string > &  v 
)

Definition at line 63 of file DDSpecifics.cc.

References findQualityFiles::v.

63  {
64  for (const auto& it : v) {
65  os << it << std::endl;
66  }
67  return os;
68 }