CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
PassiveHit.cc File Reference
#include "SimDataFormats/CaloHit/interface/PassiveHit.h"
#include <iostream>

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 4 of file PassiveHit.cc.

References TauDecayModes::dec, PassiveHit::energy(), PassiveHit::energyTotal(), PassiveHit::id(), class-composition::o, PassiveHit::time(), PassiveHit::trackId(), PassiveHit::vname(), PassiveHit::x(), PassiveHit::y(), and PassiveHit::z().

4  {
5  o << hit.vname() << " 0x" << std::hex << hit.id() << std::dec << ": Energy " << hit.energy()
6  << " GeV: " << hit.energyTotal() << " GeV: Tof " << hit.time() << " ns: "
7  << " Track # " << hit.trackId() << " Position " << hit.x() << ", " << hit.y() << ", " << hit.z() << ")";
8 
9  return o;
10 }
double energy() const
Definition: PassiveHit.h:42
double time() const
Definition: PassiveHit.h:48
unsigned int id() const
Definition: PassiveHit.h:61
std::string vname() const
Definition: PassiveHit.h:60
float z() const
Definition: PassiveHit.h:76
float x() const
Definition: PassiveHit.h:72
float y() const
Definition: PassiveHit.h:74
double energyTotal() const
Definition: PassiveHit.h:44
int trackId() const
Definition: PassiveHit.h:52