Public Member Functions | Private Attributes | Friends

WC_Hit Class Reference

Wire_Chamber Hit class based of G4VHit. More...

#include <WC_Hit.h>

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

List of all members.

Public Member Functions

 WC_Hit ()
 Constructor.
 WC_Hit (const WC_Hit &hit)
 Copy constructor.
 ~WC_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 WC_Hitoperator= (const WC_Hit &hit)
 Assignment constructor.
G4int operator== (const WC_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
 Position in 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 world coordinates.

Friends

class WC_SD
 WC_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

Wire_Chamber Hit class based of G4VHit.

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

Definition at line 34 of file WC_Hit.h.


Constructor & Destructor Documentation

WC_Hit::WC_Hit (  )

Constructor.

Definition at line 39 of file WC_Hit.cc.

WC_Hit::WC_Hit ( const WC_Hit hit )

Copy constructor.

Definition at line 43 of file WC_Hit.cc.

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

WC_Hit::~WC_Hit (  )

Destructor.

Definition at line 70 of file WC_Hit.cc.


Member Function Documentation

void WC_Hit::Draw (  )

Routine to draw the hit in the visualisation window.

Definition at line 98 of file WC_Hit.cc.

References world.

void WC_Hit::operator delete ( void *  aHit )

Free space.

Definition at line 92 of file WC_Hit.cc.

References WC_HitAllocator.

void * WC_Hit::operator new ( size_t   )

Allocate space for new hit.

Definition at line 86 of file WC_Hit.cc.

References WC_HitAllocator.

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

Assignment constructor.

Definition at line 56 of file WC_Hit.cc.

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

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

Test equivalance.

Definition at line 76 of file WC_Hit.cc.

void WC_Hit::Print (  )

Routine to print the hit information.

Definition at line 113 of file WC_Hit.cc.

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


Friends And Related Function Documentation

friend class WC_SD [friend]

WC_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 WC_Hit.h.


Member Data Documentation

G4int WC_Hit::copyno [private]

Copy number identifying the sub-detector hit.

Definition at line 83 of file WC_Hit.h.

Referenced by operator=(), Print(), WC_SD::ProcessHits(), and WC_Hit().

G4double WC_Hit::edep [private]

Total energy deposited by this hit.

Definition at line 85 of file WC_Hit.h.

Referenced by operator=(), Print(), WC_SD::ProcessHits(), and WC_Hit().

G4ThreeVector WC_Hit::local [private]

Position in local coordinates.

Definition at line 90 of file WC_Hit.h.

Referenced by operator=(), Print(), WC_SD::ProcessHits(), and WC_Hit().

G4double WC_Hit::time [private]

Global time (relative to event) for this hit.

Definition at line 86 of file WC_Hit.h.

Referenced by operator=(), Print(), WC_SD::ProcessHits(), and WC_Hit().

G4ThreeVector WC_Hit::tlocal [private]

Position in true local coordinates.

Definition at line 88 of file WC_Hit.h.

Referenced by operator=(), Print(), WC_SD::ProcessHits(), and WC_Hit().

G4int WC_Hit::trackid [private]

Track ID which created this hit.

Definition at line 84 of file WC_Hit.h.

Referenced by operator=(), Print(), WC_SD::ProcessHits(), and WC_Hit().

G4ThreeVector WC_Hit::tworld [private]

Position in true world coordinates.

Definition at line 87 of file WC_Hit.h.

Referenced by operator=(), Print(), WC_SD::ProcessHits(), and WC_Hit().

G4ThreeVector WC_Hit::world [private]

Position in world coordinates.

Definition at line 89 of file WC_Hit.h.

Referenced by Draw(), operator=(), Print(), WC_SD::ProcessHits(), and WC_Hit().


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