Geant4-11
Functions
G4RichTrajectory.cc File Reference
#include "G4RichTrajectory.hh"
#include "G4RichTrajectoryPoint.hh"
#include "G4AttDefStore.hh"
#include "G4AttDef.hh"
#include "G4AttValue.hh"
#include "G4UIcommand.hh"
#include "G4UnitsTable.hh"
#include "G4VProcess.hh"
#include "G4PhysicsModelCatalog.hh"
#include <sstream>

Go to the source code of this file.

Functions

G4Allocator< G4RichTrajectory > *& aRichTrajectoryAllocator ()
 
static G4String Path (const G4TouchableHandle &th)
 

Function Documentation

◆ aRichTrajectoryAllocator()

G4Allocator< G4RichTrajectory > *& aRichTrajectoryAllocator ( )

Definition at line 56 of file G4RichTrajectory.cc.

57{
59 return _instance;
60}
#define G4ThreadLocalStatic
Definition: tls.hh:76

References G4ThreadLocalStatic.

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

◆ Path()

static G4String Path ( const G4TouchableHandle th)
static

Definition at line 242 of file G4RichTrajectory.cc.

243{
244 std::ostringstream oss;
245 G4int depth = th->GetHistoryDepth();
246 for (G4int i = depth; i >= 0; --i)
247 {
248 oss << th->GetVolume(i)->GetName()
249 << ':' << th->GetCopyNumber(i);
250 if (i != 0) oss << '/';
251 }
252 return oss.str();
253}
int G4int
Definition: G4Types.hh:85
const G4String & GetName() const
G4int GetCopyNumber(G4int depth=0) const
virtual G4VPhysicalVolume * GetVolume(G4int depth=0) const
Definition: G4VTouchable.cc:34
virtual G4int GetHistoryDepth() const
Definition: G4VTouchable.cc:74

References G4VTouchable::GetCopyNumber(), G4VTouchable::GetHistoryDepth(), G4VPhysicalVolume::GetName(), and G4VTouchable::GetVolume().

Referenced by G4RichTrajectory::CreateAttValues().