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 <CLHEP/Units/SystemOfUnits.h>

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

◆ operator<<()

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

Definition at line 54 of file CaloG4Hit.cc.

References l1tGTMenu_BTagSeeds_cff::os.

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() / CLHEP::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 = nullptr

Definition at line 11 of file CaloG4Hit.cc.

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