CMS 3D CMS Logo

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(), connectstrParser::o, PassiveHit::time(), PassiveHit::trackId(), and PassiveHit::vname().

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();
8 
9  return o;
10 }
double energy() const
Definition: PassiveHit.h:21
double time() const
Definition: PassiveHit.h:27
unsigned int id() const
Definition: PassiveHit.h:40
std::string vname() const
Definition: PassiveHit.h:39
double energyTotal() const
Definition: PassiveHit.h:23
int trackId() const
Definition: PassiveHit.h:31