CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 << ": 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
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
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