CMS 3D CMS Logo

Functions | Variables

/data/refman/pasoursint/CMSSW_4_1_8_patch12/src/SimG4CMS/Calo/src/CaloG4Hit.cc File Reference

#include "SimG4CMS/Calo/interface/CaloG4Hit.h"
#include <iostream>

Go to the source code of this file.

Functions

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

Variables

G4Allocator< CaloG4HitCaloG4HitAllocator

Function Documentation

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

Definition at line 61 of file CaloG4Hit.cc.

References CaloG4Hit::getEM(), CaloG4Hit::getEntry(), CaloG4Hit::getEntryLocal(), CaloG4Hit::getHadr(), CaloG4Hit::getID(), CaloG4Hit::getIncidentEnergy(), and CaloG4Hit::getPosition().

                                                             {
  os << " Data of this CaloG4Hit are:" << "\n"
     << " HitID: " << hit.getID() << "\n"
     << " EnergyDeposit of EM particles = " << hit.getEM() << "\n"
     << " EnergyDeposit of HD particles = " << hit.getHadr() << "\n"
     << " Energy of primary particle    = " << hit.getIncidentEnergy()/MeV 
     << " (MeV)"<< "\n"
     << " Entry point in Calorimeter (global) : " << hit.getEntry() 
     << "   (local) " << hit.getEntryLocal() << "\n"
     << " Position of Hit (global) : " << hit.getPosition() << "\n"
     << "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
  return os;
}

Variable Documentation

Definition at line 8 of file CaloG4Hit.cc.

Referenced by CaloG4Hit::operator delete(), and CaloG4Hit::operator new().