CMS 3D CMS Logo

Classes | Functions | Variables
CaloG4Hit.h File Reference
#include "SimG4CMS/Calo/interface/CaloHitID.h"
#include "DataFormats/Math/interface/Point3D.h"
#include <iostream>
#include "G4Allocator.hh"
#include "G4VHit.hh"

Go to the source code of this file.

Classes

class  CaloG4Hit
 
class  CaloG4HitEqual
 
class  CaloG4HitLess
 

Functions

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

Variables

G4ThreadLocal G4Allocator< CaloG4Hit > * fpCaloG4HitAllocator
 

Function Documentation

◆ operator<<()

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

Definition at line 54 of file CaloG4Hit.cc.

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 }

Variable Documentation

◆ fpCaloG4HitAllocator

G4ThreadLocal G4Allocator<CaloG4Hit>* fpCaloG4HitAllocator

Definition at line 11 of file CaloG4Hit.cc.

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