CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Namespaces | Functions
DDMaterial.h File Reference
#include <iostream>
#include <vector>
#include <utility>
#include "DetectorDescription/Core/interface/DDName.h"
#include "DetectorDescription/Core/interface/DDBase.h"

Go to the source code of this file.

Classes

class  DDMaterial
 DDMaterial is used to define and access material information. More...
 

Namespaces

 DDI
 A DDDivision contains the parameterization that Geant4 needs in order to do its divisions.
 

Functions

std::ostream & operator<< (std::ostream &, const DDMaterial &)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const DDMaterial  
)

Definition at line 132 of file DDMaterial.cc.

References DDMaterial::a(), DDMaterial::constituent(), DDMaterial::density(), f, g, i, testEve_cfg::level, DDBase< N, C >::name(), DDMaterial::noOfConstituents(), asciidump::s, and DDMaterial::z().

133 {
134  static int level=0;
135  ++level;
136  if (mat) {
137  os << '[' << mat.name() <<']' << " z=" << mat.z()
138  << " a=" << mat.a()/g*mole << "*g/mole"
139  << " d=" << mat.density()/g*cm3 << "*g/cm3";
140  std::string s(2*level,' ');
141  for (int i=0; i<mat.noOfConstituents(); ++i) {
142  DDMaterial::FractionV::value_type f = mat.constituent(i);
143  os << std::endl << s << i+1 << " : fm=" << f.second
144  << " : " << f.first;
145  }
146  //--level;
147  }
148  else
149  os << "* material not declared * ";
150  --level;
151  return os;
152 }
int i
Definition: DBlmapReader.cc:9
Container::value_type value_type
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
Definition: Activities.doc:4
double f[11][100]
tuple level
Definition: testEve_cfg.py:34
string s
Definition: asciidump.py:422