CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
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 30 of file CaloHit.cc.

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

30  {
31  os << "E " << std::setw(6) << hit.e() << " eta " << std::setw(6) << hit.eta() << " phi " << std::setw(6) << hit.phi()
32  << " t " << std::setw(6) << hit.t() << " layer " << hit.layer() << " det " << hit.det() << " id 0x" << std::hex
33  << hit.id() << std::dec;
34  return os;
35 }
int det() const
Definition: CaloHit.h:19
double phi() const
Definition: CaloHit.h:23
double eta() const
Definition: CaloHit.h:22
uint32_t id() const
Definition: CaloHit.h:25
double t() const
Definition: CaloHit.h:24
int layer() const
Definition: CaloHit.h:20
double e() const
Definition: CaloHit.h:21