CMS 3D CMS Logo

Functions | Variables
CaloG4Hit.cc File Reference
#include "SimG4CMS/Calo/interface/CaloG4Hit.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <iostream>
#include "G4SystemOfUnits.hh"

Go to the source code of this file.

Functions

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

Variables

G4ThreadLocal G4Allocator< CaloG4Hit > * fpCaloG4HitAllocator = 0
 

Function Documentation

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

Definition at line 54 of file CaloG4Hit.cc.

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

Referenced by CaloG4Hit::operator delete().

54  {
55  os << " Data of this CaloG4Hit are:"
56  << "\n"
57  << " HitID: " << hit.getID() << "\n"
58  << " EnergyDeposit of EM particles = " << hit.getEM() << "\n"
59  << " EnergyDeposit of HD particles = " << hit.getHadr() << "\n"
60  << " Energy of primary particle = " << hit.getIncidentEnergy() / MeV << " (MeV)"
61  << "\n"
62  << " Entry point in Calorimeter (global) : " << hit.getEntry() << " (local) " << hit.getEntryLocal() << "\n"
63  << " Position of Hit (global) : " << hit.getPosition() << "\n"
64  << "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
65  return os;
66 }
math::XYZPoint getPosition() const
Definition: CaloG4Hit.h:52
double getIncidentEnergy() const
Definition: CaloG4Hit.h:61
CaloHitID getID() const
Definition: CaloG4Hit.h:70
const double MeV
double getEM() const
Definition: CaloG4Hit.h:55
math::XYZPoint getEntryLocal() const
Definition: CaloG4Hit.h:49
math::XYZPoint getEntry() const
Definition: CaloG4Hit.h:46
double getHadr() const
Definition: CaloG4Hit.h:58

Variable Documentation

G4ThreadLocal G4Allocator<CaloG4Hit>* fpCaloG4HitAllocator = 0