Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
CCalG4Hit.cc File Reference
#include "CCalG4Hit.hh"
#include <iostream>

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.

References G4endl, CCalG4Hit::getEM(), and CCalG4Hit::getHadr().

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