Public Member Functions | Private Attributes | Friends

GT_Hit Class Reference

Gem_Tracker Hit class based on G4VHit. More...

#include <GT_Hit.h>

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

List of all members.

Public Member Functions

 GT_Hit ()
 Default constructor.
 GT_Hit (const GT_Hit &hit)
 Copy constructor.
 ~GT_Hit ()
 Destructor.
void Draw ()
 Routine to draw the hit in the visualisation window.
void operator delete (void *aHit)
 Free allocated space.
void * operator new (size_t)
 Allocate space for a new hit.
const GT_Hitoperator= (const GT_Hit &hit)
 Assignment constructor.
G4int operator== (const GT_Hit &hit) const
 Test equivalence.
void Print ()
 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
 Position in smeared local coordinates.
G4double time
 Global time (relative to event) for this hit.
G4ThreeVector tlocal
 Position in true local coordinates.
G4int trackid
 Track ID which created this hit.
G4ThreeVector tworld
 Position in true world coordinates.
G4ThreeVector world
 Position in smeared world coordinates.

Friends

class GT_SD
 GT_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

Gem_Tracker Hit class based on G4VHit.

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

Definition at line 34 of file GT_Hit.h.


Constructor & Destructor Documentation

GT_Hit::GT_Hit (  )

Default constructor.

Definition at line 39 of file GT_Hit.cc.

GT_Hit::GT_Hit ( const GT_Hit hit )

Copy constructor.

Definition at line 43 of file GT_Hit.cc.

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

GT_Hit::~GT_Hit (  )

Destructor.

Definition at line 70 of file GT_Hit.cc.


Member Function Documentation

void GT_Hit::Draw (  )

Routine to draw the hit in the visualisation window.

Definition at line 98 of file GT_Hit.cc.

void GT_Hit::operator delete ( void *  aHit )

Free allocated space.

Definition at line 92 of file GT_Hit.cc.

References GT_HitAllocator.

void * GT_Hit::operator new ( size_t   )

Allocate space for a new hit.

Definition at line 86 of file GT_Hit.cc.

References GT_HitAllocator.

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

Assignment constructor.

Definition at line 56 of file GT_Hit.cc.

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

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

Test equivalence.

Definition at line 76 of file GT_Hit.cc.

void GT_Hit::Print (  )

Print the hit information.

Definition at line 113 of file GT_Hit.cc.


Friends And Related Function Documentation

friend class GT_SD [friend]

GT_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 81 of file GT_Hit.h.


Member Data Documentation

G4int GT_Hit::copyno [private]

Copy number identifying the sub-detector hit.

Definition at line 83 of file GT_Hit.h.

Referenced by GT_Hit(), operator=(), and GT_SD::ProcessHits().

G4double GT_Hit::edep [private]

Total energy deposited by this hit.

Definition at line 85 of file GT_Hit.h.

Referenced by GT_Hit(), operator=(), and GT_SD::ProcessHits().

G4ThreeVector GT_Hit::local [private]

Position in smeared local coordinates.

Definition at line 90 of file GT_Hit.h.

Referenced by GT_Hit(), operator=(), and GT_SD::ProcessHits().

G4double GT_Hit::time [private]

Global time (relative to event) for this hit.

Definition at line 86 of file GT_Hit.h.

Referenced by GT_Hit(), operator=(), and GT_SD::ProcessHits().

G4ThreeVector GT_Hit::tlocal [private]

Position in true local coordinates.

Definition at line 88 of file GT_Hit.h.

Referenced by GT_Hit(), operator=(), and GT_SD::ProcessHits().

G4int GT_Hit::trackid [private]

Track ID which created this hit.

Definition at line 84 of file GT_Hit.h.

Referenced by GT_Hit(), operator=(), and GT_SD::ProcessHits().

G4ThreeVector GT_Hit::tworld [private]

Position in true world coordinates.

Definition at line 87 of file GT_Hit.h.

Referenced by GT_Hit(), operator=(), and GT_SD::ProcessHits().

G4ThreeVector GT_Hit::world [private]

Position in smeared world coordinates.

Definition at line 89 of file GT_Hit.h.

Referenced by GT_Hit(), operator=(), and GT_SD::ProcessHits().


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