CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
MaterialInformation.cc File Reference
#include "SimDataFormats/CaloHit/interface/MaterialInformation.h"
#include <iomanip>
#include <iostream>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &o, const MaterialInformation &info)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  o,
const MaterialInformation info 
)

Definition at line 5 of file MaterialInformation.cc.

References MaterialInformation::id(), MaterialInformation::interactionLength(), class-composition::o, MaterialInformation::radiationLength(), MaterialInformation::stepLength(), MaterialInformation::trackEta(), MaterialInformation::trackPhi(), and MaterialInformation::vname().

5  {
6  o << info.vname() << " ID " << info.id() << " Eta:Phi " << info.trackEta() << ":" << info.trackPhi()
7  << " Step Length " << std::setw(10) << info.stepLength() << " Radiation Length " << std::setw(10)
8  << info.radiationLength() << " Interaction Length " << std::setw(10) << info.interactionLength();
9 
10  return o;
11 }
double trackPhi() const
double stepLength() const
double trackEta() const
double radiationLength() const
double interactionLength() const
std::string vname() const