Public Member Functions | Private Attributes | Friends

TF_Hit Class Reference

Time of Flight Hit class based on G4VHit. More...

#include <TF_Hit.h>

Inheritance diagram for TF_Hit:
Inheritance graph
[legend]
Collaboration diagram for TF_Hit:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TF_Hit ()
 Constructor.
 TF_Hit (const TF_Hit &hit)
 Copy constructor.
 ~TF_Hit ()
 Destructor.
void Draw ()
 Routine to draw the hit in the visualisation window.
void operator delete (void *aHit)
 Free space.
void * operator new (size_t)
 Allocate space for new hit.
const TF_Hitoperator= (const TF_Hit &hit)
 Assignment constructor.
G4int operator== (const TF_Hit &hit) const
 Test equivalance.
void Print ()
 Routine to print the hit information.

Private Attributes

G4int copyno
 Copy number identifying the sub-detector hit.
G4double edep
 Total energy deposited by this hit.
G4ThreeVector local
 Smeared position in local coordinates.
G4double time
 Smeared Global time.
G4ThreeVector tlocal
 Position in true local coordinates.
G4int trackid
 Track ID which created this hit.
G4double ttime
 Global true time (relative to event).
G4ThreeVector tworld
 Position in true world coordinates.
G4ThreeVector world
 Smeared position in world coordinates.

Friends

class TF_SD
 TF_SD is declared as a friend class so it can access the hit data members directly without having numerous set/get member functions.

Detailed Description

Time of Flight Hit class based on G4VHit.

Provides routines for setting and accessing the various stored information on each hit in this detector.

Definition at line 35 of file TF_Hit.h.


Constructor & Destructor Documentation

TF_Hit::TF_Hit (  )

Constructor.

Definition at line 39 of file TF_Hit.cc.

TF_Hit::TF_Hit ( const TF_Hit hit )

Copy constructor.

Definition at line 43 of file TF_Hit.cc.

References copyno, edep, local, time, tlocal, trackid, ttime, tworld, and world.

TF_Hit::~TF_Hit (  )

Destructor.

Definition at line 72 of file TF_Hit.cc.


Member Function Documentation

void TF_Hit::Draw (  )

Routine to draw the hit in the visualisation window.

Definition at line 100 of file TF_Hit.cc.

References world.

void TF_Hit::operator delete ( void *  aHit )

Free space.

Definition at line 94 of file TF_Hit.cc.

References TF_HitAllocator.

void * TF_Hit::operator new ( size_t   )

Allocate space for new hit.

Definition at line 88 of file TF_Hit.cc.

References TF_HitAllocator.

const TF_Hit & TF_Hit::operator= ( const TF_Hit hit )

Assignment constructor.

Definition at line 57 of file TF_Hit.cc.

References copyno, edep, local, time, tlocal, trackid, ttime, tworld, and world.

G4int TF_Hit::operator== ( const TF_Hit hit ) const

Test equivalance.

Definition at line 78 of file TF_Hit.cc.

void TF_Hit::Print (  )

Routine to print the hit information.

Definition at line 115 of file TF_Hit.cc.

References copyno, edep, local, time, tlocal, trackid, tworld, and world.


Friends And Related Function Documentation

friend class TF_SD [friend]

TF_SD is declared as a friend class so it can access the hit data members directly without having numerous set/get member functions.

Definition at line 84 of file TF_Hit.h.


Member Data Documentation

G4int TF_Hit::copyno [private]

Copy number identifying the sub-detector hit.

Definition at line 86 of file TF_Hit.h.

Referenced by operator=(), Print(), TF_SD::ProcessHits(), and TF_Hit().

G4double TF_Hit::edep [private]

Total energy deposited by this hit.

Definition at line 88 of file TF_Hit.h.

Referenced by operator=(), Print(), TF_SD::ProcessHits(), and TF_Hit().

G4ThreeVector TF_Hit::local [private]

Smeared position in local coordinates.

Definition at line 94 of file TF_Hit.h.

Referenced by operator=(), Print(), TF_SD::ProcessHits(), and TF_Hit().

G4double TF_Hit::time [private]

Smeared Global time.

Definition at line 90 of file TF_Hit.h.

Referenced by operator=(), Print(), TF_SD::ProcessHits(), and TF_Hit().

G4ThreeVector TF_Hit::tlocal [private]

Position in true local coordinates.

Definition at line 92 of file TF_Hit.h.

Referenced by operator=(), Print(), TF_SD::ProcessHits(), and TF_Hit().

G4int TF_Hit::trackid [private]

Track ID which created this hit.

Definition at line 87 of file TF_Hit.h.

Referenced by operator=(), Print(), TF_SD::ProcessHits(), and TF_Hit().

G4double TF_Hit::ttime [private]

Global true time (relative to event).

Definition at line 89 of file TF_Hit.h.

Referenced by operator=(), TF_SD::ProcessHits(), and TF_Hit().

G4ThreeVector TF_Hit::tworld [private]

Position in true world coordinates.

Definition at line 91 of file TF_Hit.h.

Referenced by operator=(), Print(), TF_SD::ProcessHits(), and TF_Hit().

G4ThreeVector TF_Hit::world [private]

Smeared position in world coordinates.

Definition at line 93 of file TF_Hit.h.

Referenced by Draw(), operator=(), Print(), TF_SD::ProcessHits(), and TF_Hit().


The documentation for this class was generated from the following files: