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 72 of file DDSpecifics.cc.

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

73 {
75  if (defined.first) {
76  os << *(defined.first) << " ";
77  if (defined.second) {
78  sp.rep().stream(os);
79  }
80  else {
81  os << "* specific not defined * ";
82  }
83  }
84  else {
85  os << "* specific not declared * ";
86  }
87  return os;
88 }
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 90 of file DDSpecifics.cc.

References findQualityFiles::v.

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