CMS 3D CMS Logo

Classes | Functions
DDExpandedView.h File Reference
#include <cstddef>
#include <iosfwd>
#include <map>
#include <string>
#include <utility>
#include <vector>
#include "DetectorDescription/Core/interface/DDRotationMatrix.h"
#include "DetectorDescription/Core/interface/DDTranslation.h"
#include "DetectorDescription/Core/interface/DDCompactView.h"
#include "DetectorDescription/Core/interface/DDExpandedNode.h"
#include "DetectorDescription/Core/interface/DDLogicalPart.h"
#include "DetectorDescription/Core/interface/DDPosData.h"
#include "DetectorDescription/Core/interface/DDTransform.h"
#include "DetectorDescription/Core/interface/DDsvalues.h"
#include "DataFormats/Math/interface/GraphWalker.h"

Go to the source code of this file.

Classes

class  DDExpandedView
 Provides an exploded view of the detector (tree-view) More...
 

Functions

std::ostream & operator<< (std::ostream &os, const DDExpandedView::nav_type &n)
 
std::ostream & operator<< (std::ostream &os, const DDExpandedView::NavRange &n)
 
std::string printNavType (int const *n, size_t sz)
 

Function Documentation

◆ operator<<() [1/2]

std::ostream& operator<< ( std::ostream &  os,
const DDExpandedView::nav_type n 
)
inline

Definition at line 150 of file DDExpandedView.h.

References dqmiodumpmetadata::n, l1tGTMenu_BTagSeeds_cff::os, and printNavType().

150  {
151  os << printNavType(&n.front(), n.size());
152  return os;
153 }
std::string printNavType(int const *n, size_t sz)

◆ operator<<() [2/2]

std::ostream& operator<< ( std::ostream &  os,
const DDExpandedView::NavRange n 
)
inline

Definition at line 154 of file DDExpandedView.h.

References dqmiodumpmetadata::n, l1tGTMenu_BTagSeeds_cff::os, and printNavType().

154  {
155  os << printNavType(n.first, n.second);
156  return os;
157 }
std::string printNavType(int const *n, size_t sz)

◆ printNavType()

std::string printNavType ( int const *  n,
size_t  sz 
)

Definition at line 436 of file DDExpandedView.cc.

References ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and dqmiodumpmetadata::n.

Referenced by operator<<().

436  {
437  std::ostringstream oss;
438  oss << '(';
439  for (int const* it = n; it != n + sz; ++it) {
440  oss << *it << ',';
441  }
442  oss << ')';
443  return oss.str();
444 }