CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 = nullptr
 

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(), and CaloG4Hit::getPosition().

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:72
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 = nullptr

Definition at line 11 of file CaloG4Hit.cc.

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