CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 37 of file HFShowerG4Hit.cc.

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

37  {
38  os << " Data of this HFShowerG4Hit: ID " << hit.hitId() << " Track ID " << hit.trackId() << " Edep " << hit.edep()
39  << " Time " << hit.time() << " Position (Local) " << hit.localPosition() << ", "
40  << " (Global) " << hit.globalPosition() << " Momentum " << hit.primaryMomDir() << "\n";
41  return os;
42 }
G4ThreeVector primaryMomDir() const
Definition: HFShowerG4Hit.h:52
G4int hitId() const
Definition: HFShowerG4Hit.h:46
G4ThreeVector localPosition() const
Definition: HFShowerG4Hit.h:50
G4int trackId() const
Definition: HFShowerG4Hit.h:47
G4double edep() const
Definition: HFShowerG4Hit.h:48
G4ThreeVector globalPosition() const
Definition: HFShowerG4Hit.h:51
G4double time() const
Definition: HFShowerG4Hit.h:49

Variable Documentation

G4ThreadLocal G4Allocator<HFShowerG4Hit>* fHFShowerG4HitAllocator = nullptr

Definition at line 5 of file HFShowerG4Hit.cc.

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