CMS 3D CMS Logo

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(), and PCaloHit::time().

00017                                                             {
00018   o << "0x" <<std::hex << hit.id() << std::dec
00019     << ": Energy (EM) " << hit.energyEM() << " GeV "
00020     << ": Energy (Had) " << hit.energyHad() << " GeV "
00021     << " Tof " << hit.time() << " ns "
00022     << " Geant track #" << hit.geantTrackId()
00023     << " Encoded depth " << hit.depth();
00024 
00025   return o;
00026 }


Generated on Tue Jun 9 17:55:44 2009 for CMSSW by  doxygen 1.5.4