Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CCalG4Hit.cc File Reference
#include "CCalG4Hit.hh"
#include <iostream>
Include dependency graph for CCalG4Hit.cc:

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 79 of file CCalG4Hit.cc.

79  {
80  os << static_cast<CCalHit>(hit);
81  os << " Data specific of this CCalG4Hit are:" << G4endl
82  << " \t EnergyDeposit of EM particles = " << hit.getEM()
83  << " (MeV)" << G4endl
84  << " \t EnergyDeposit of HD particles = " << hit.getHadr()
85  << " (MeV)" << G4endl;
86  return os;
87 }
double getEM() const
Definition: CCalG4Hit.cc:57
#define G4endl
Definition: G4ios.hh:61
double getHadr() const
Definition: CCalG4Hit.cc:60

Here is the call graph for this function: