CMS 3D CMS Logo

Classes | Functions

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/SimDataFormats/CaloHit/interface/PCaloHit.h File Reference

#include "SimDataFormats/EncodedEventId/interface/EncodedEventId.h"
#include <iosfwd>

Go to the source code of this file.

Classes

class  PCaloHit

Functions

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

Function Documentation

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

Definition at line 17 of file PCaloHit.cc.

References PCaloHit::depth(), PCaloHit::energyEM(), PCaloHit::energyHad(), PCaloHit::geantTrackId(), PCaloHit::id(), python::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;
}