test
CMS 3D CMS Logo

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

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

33  {
34  os << "E " << std::setw(6) << hit.e() << " eta " << std::setw(6)
35  << hit.eta() << " phi " << std::setw(6) << hit.phi() << " t "
36  << std::setw(6) << hit.t() << " layer " << hit.layer() << " det "
37  << hit.det() << " id 0x" << std::hex << hit.id() << std::dec;
38  return os;
39 }
int det() const
Definition: CaloHit.h:22
double phi() const
Definition: CaloHit.h:26
double eta() const
Definition: CaloHit.h:25
uint32_t id() const
Definition: CaloHit.h:28
double t() const
Definition: CaloHit.h:27
int layer() const
Definition: CaloHit.h:23
double e() const
Definition: CaloHit.h:24