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 126 of file DDMaterial.cc.

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

127 {
128  static int level=0;
129  ++level;
130  if (mat) {
131  os << '[' << mat.name() <<']' << " z=" << mat.z()
132  << " a=" << mat.a()/g*mole << "*g/mole"
133  << " d=" << mat.density()/g*cm3 << "*g/cm3";
134  std::string s(2*level,' ');
135  for (int i=0; i<mat.noOfConstituents(); ++i) {
136  DDMaterial::FractionV::value_type f = mat.constituent(i);
137  os << std::endl << s << i+1 << " : fm=" << f.second
138  << " : " << f.first;
139  }
140  //--level;
141  }
142  else
143  os << "* material not declared * ";
144  --level;
145  return os;
146 }
int i
Definition: DBlmapReader.cc:9
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]
Container::value_type value_type
tuple level
Definition: testEve_cfg.py:34