CMS 3D CMS Logo

Functions
CaloGVHit.cc File Reference
#include "SimG4CMS/Calo/interface/CaloGVHit.h"
#include <iostream>
#include "G4SystemOfUnits.hh"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const CaloGVHit &hit)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CaloGVHit hit 
)

Definition at line 36 of file CaloGVHit.cc.

References CaloGVHit::getEM(), CaloGVHit::getEventID(), CaloGVHit::getHadr(), and CaloGVHit::getID().

Referenced by CaloGVHitEqual::operator()().

36  {
37  os << " Data of this CaloGVHit are:"
38  << " EventID: " << hit.getEventID() << " HitID: " << hit.getID() << " EnergyDeposit (EM): " << hit.getEM()
39  << " (Had): " << hit.getHadr() << "\n";
40  return os;
41 }
CaloHitID getID() const
Definition: CaloGVHit.h:54
int getEventID() const
Definition: CaloGVHit.h:45
double getEM() const
Definition: CaloGVHit.h:39
double getHadr() const
Definition: CaloGVHit.h:42