CMS 3D CMS Logo

Functions

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/SimDataFormats/CaloHit/src/CaloHit.cc File Reference

#include "SimDataFormats/CaloHit/interface/CaloHit.h"
#include <iomanip>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const CaloHit &hit)

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CaloHit hit 
)

Definition at line 33 of file CaloHit.cc.

References CaloHit::det(), CaloHit::e(), CaloHit::eta(), CaloHit::id(), CaloHit::layer(), CaloHit::phi(), and CaloHit::t().

                                                           {
  os << "E "     << std::setw(6) << hit.e()   << " eta " << std::setw(6) 
     << hit.eta() << " phi "  << std::setw(6) << hit.phi() << " t "   
     << std::setw(6) << hit.t() << " layer " << hit.layer() << " det " 
     << hit.det() << " id 0x" << std::hex << hit.id() << std::dec;
  return os;
}