CMS 3D CMS Logo

Functions | Variables
HFShowerG4Hit.cc File Reference
#include "SimG4CMS/ShowerLibraryProducer/interface/HFShowerG4Hit.h"
#include <iostream>

Go to the source code of this file.

Functions

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

Variables

G4ThreadLocal G4Allocator< HFShowerG4Hit > * fHFShowerG4HitAllocator = nullptr
 

Function Documentation

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

Definition at line 42 of file HFShowerG4Hit.cc.

References HFShowerG4Hit::edep(), HFShowerG4Hit::globalPosition(), HFShowerG4Hit::hitId(), HFShowerG4Hit::localPosition(), HFShowerG4Hit::primaryMomDir(), HFShowerG4Hit::time(), and HFShowerG4Hit::trackId().

42  {
43  os << " Data of this HFShowerG4Hit: ID " << hit.hitId() << " Track ID "
44  << hit.trackId() << " Edep " << hit.edep() << " Time " << hit.time()
45  << " Position (Local) " << hit.localPosition() << ", " << " (Global) "
46  << hit.globalPosition() << " Momentum " << hit.primaryMomDir() << "\n";
47  return os;
48 }
G4ThreeVector primaryMomDir() const
Definition: HFShowerG4Hit.h:56
G4int hitId() const
Definition: HFShowerG4Hit.h:50
G4ThreeVector localPosition() const
Definition: HFShowerG4Hit.h:54
G4int trackId() const
Definition: HFShowerG4Hit.h:51
G4double edep() const
Definition: HFShowerG4Hit.h:52
G4ThreeVector globalPosition() const
Definition: HFShowerG4Hit.h:55
G4double time() const
Definition: HFShowerG4Hit.h:53

Variable Documentation

G4ThreadLocal G4Allocator<HFShowerG4Hit>* fHFShowerG4HitAllocator = nullptr

Definition at line 6 of file HFShowerG4Hit.cc.

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