test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
CaloG4Hit.cc File Reference
#include "SimG4CMS/Calo/interface/CaloG4Hit.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 63 of file CaloG4Hit.cc.

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

63  {
64  os << " Data of this CaloG4Hit are:" << "\n"
65  << " HitID: " << hit.getID() << "\n"
66  << " EnergyDeposit of EM particles = " << hit.getEM() << "\n"
67  << " EnergyDeposit of HD particles = " << hit.getHadr() << "\n"
68  << " Energy of primary particle = " << hit.getIncidentEnergy()/MeV
69  << " (MeV)"<< "\n"
70  << " Entry point in Calorimeter (global) : " << hit.getEntry()
71  << " (local) " << hit.getEntryLocal() << "\n"
72  << " Position of Hit (global) : " << hit.getPosition() << "\n"
73  << "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
74  return os;
75 }
math::XYZPoint getPosition() const
Definition: CaloG4Hit.h:56
double getIncidentEnergy() const
Definition: CaloG4Hit.h:65
CaloHitID getID() const
Definition: CaloG4Hit.h:74
const double MeV
double getEM() const
Definition: CaloG4Hit.h:59
math::XYZPoint getEntryLocal() const
Definition: CaloG4Hit.h:53
math::XYZPoint getEntry() const
Definition: CaloG4Hit.h:50
double getHadr() const
Definition: CaloG4Hit.h:62

Variable Documentation

G4ThreadLocal G4Allocator<CaloG4Hit>* fpCaloG4HitAllocator = 0

Definition at line 10 of file CaloG4Hit.cc.

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