CMS 3D CMS Logo

PassiveHit.cc
Go to the documentation of this file.
2 #include<iostream>
3 
4 std::ostream & operator<<(std::ostream& o,const PassiveHit& hit) {
5  o << hit.vname() << " 0x" <<std::hex << hit.id() << std::dec
6  << ": Energy " << hit.energy() << " GeV "
7  << " Tof " << hit.time() << " ns "
8  << " Track #" << hit.trackId();
9 
10  return o;
11 }
double energy() const
Definition: PassiveHit.h:23
double time() const
Definition: PassiveHit.h:28
unsigned int id() const
Definition: PassiveHit.h:38
std::string vname() const
Definition: PassiveHit.h:37
int trackId() const
Definition: PassiveHit.h:32
std::ostream & operator<<(std::ostream &o, const PassiveHit &hit)
Definition: PassiveHit.cc:4