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: " << hit.energyTotal()
7  << " GeV: Tof " << hit.time() << " ns: " << " Track # " << hit.trackId();
8 
9  return o;
10 }
double energy() const
Definition: PassiveHit.h:24
double time() const
Definition: PassiveHit.h:30
unsigned int id() const
Definition: PassiveHit.h:40
std::string vname() const
Definition: PassiveHit.h:39
double energyTotal() const
Definition: PassiveHit.h:26
int trackId() const
Definition: PassiveHit.h:34
std::ostream & operator<<(std::ostream &o, const PassiveHit &hit)
Definition: PassiveHit.cc:4