CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
CaloDetInfo.cc File Reference
#include "SimG4CMS/Calo/interface/CaloDetInfo.h"
#include <iomanip>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const CaloDetInfo &info)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CaloDetInfo info 
)

Definition at line 34 of file CaloDetInfo.cc.

References TauDecayModes::dec, CaloDetInfo::depth(), CaloDetInfo::id(), CaloDetInfo::name(), CaloDetInfo::pos(), and CaloDetInfo::rho().

34  {
35  os << info.name() << " Id 0x" << std::hex << info.id() << std::dec << ":" << info.depth() << " R "
36  << std::setprecision(4) << info.rho() << " Position " << info.pos();
37  return os;
38 }
std::string name() const
Definition: CaloDetInfo.h:25
uint32_t depth() const
Definition: CaloDetInfo.h:23
G4ThreeVector pos() const
Definition: CaloDetInfo.h:26
uint32_t id() const
Definition: CaloDetInfo.h:22
double rho() const
Definition: CaloDetInfo.h:24