CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
DDAlgo.cc File Reference
#include "DetectorDescription/Core/interface/DDAlgo.h"
#include "DetectorDescription/ExprAlgo/interface/AlgoPos.h"
#include <cstdio>

Go to the source code of this file.

Functions

DDAlgo DDalgo (const DDName &n, AlgoPos *a)
 
std::ostream & operator<< (std::ostream &os, const DDAlgo &algo)
 

Function Documentation

DDAlgo DDalgo ( const DDName n,
AlgoPos a 
)

create a DDCore compatible algorithm

Definition at line 114 of file DDAlgo.cc.

115 {
116  return DDAlgo(n,a);
117 }
Definition: DDAlgo.h:17
std::ostream& operator<< ( std::ostream &  os,
const DDAlgo algo 
)

Definition at line 4 of file DDAlgo.cc.

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

5 {
7  if (defined.first) {
8  os << *(defined.first) << " ";
9  if (defined.second) {
10  algo.rep().stream(os);
11  }
12  else {
13  os << "* algorithm not defined * ";
14  }
15  }
16  else {
17  os << "* algorithm not declared * ";
18  }
19  return os;
20 
21 }
Definition: DDBase.h:14
const DDI::rep_traits< N, C >::reference rep() const
Definition: DDBase.h:89
def_type isDefined() const
Definition: DDBase.h:115