CMS 3D CMS Logo

Functions
DDSpecifics.cc File Reference
#include "DetectorDescription/Core/interface/DDSpecifics.h"
#include <ostream>
#include "DetectorDescription/Core/interface/Store.h"
#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 73 of file DDSpecifics.cc.

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

74 {
76  if (defined.first) {
77  os << *(defined.first) << " ";
78  if (defined.second) {
79  sp.rep().stream(os);
80  }
81  else {
82  os << "* specific not defined * ";
83  }
84  }
85  else {
86  os << "* specific not declared * ";
87  }
88  return os;
89 }
Definition: DDBase.h:10
const DDI::rep_traits< N, C >::reference rep() const
Definition: DDBase.h:84
def_type isDefined() const
Definition: DDBase.h:110
std::ostream& operator<< ( std::ostream &  os,
const std::vector< std::string > &  v 
)

Definition at line 91 of file DDSpecifics.cc.

References findQualityFiles::v.

92 {
93  for( const auto& it : v ) {
94  os << it << std::endl;
95  }
96  return os;
97 }