CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
DDAlgo.h File Reference
#include <iostream>
#include "DetectorDescription/Core/interface/DDTransform.h"
#include "DetectorDescription/Base/interface/DDAlgoPar.h"
#include "DetectorDescription/Core/interface/DDName.h"
#include "DetectorDescription/Core/interface/DDBase.h"
#include "DetectorDescription/Base/interface/DDTranslation.h"

Go to the source code of this file.

Classes

class  DDAlgo
 

Functions

DDAlgo DDalgo (const DDName &, AlgoPos *)
 
std::ostream & operator<< (std::ostream &, const DDAlgo &)
 

Function Documentation

DDAlgo DDalgo ( const DDName n,
AlgoPos a 
)

create a DDCore compatible algorithm

Definition at line 114 of file DDAlgo.cc.

Referenced by AlgoInit().

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

Definition at line 4 of file DDAlgo.cc.

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

5 {
6  DDBase<DDName,AlgoPos*>::def_type defined(algo.isDefined());
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
LimitAlgo * algo
Definition: Combine.cc:60