CMS 3D CMS Logo

Functions

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

#include "SimDataFormats/CaloHit/interface/PCaloHit.h"
#include <iostream>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &o, const PCaloHit &hit)

Function Documentation

std::ostream& operator<< ( std::ostream &  o,
const PCaloHit hit 
)

Definition at line 17 of file PCaloHit.cc.

References PCaloHit::depth(), PCaloHit::energyEM(), PCaloHit::energyHad(), PCaloHit::geantTrackId(), PCaloHit::id(), connectstrParser::o, and PCaloHit::time().

                                                            {
  o << "0x" <<std::hex << hit.id() << std::dec
    << ": Energy (EM) " << hit.energyEM() << " GeV "
    << ": Energy (Had) " << hit.energyHad() << " GeV "
    << " Tof " << hit.time() << " ns "
    << " Geant track #" << hit.geantTrackId()
    << " Encoded depth " << hit.depth();

  return o;
}