Geant4  10.02.p02
TrackerHit Class Reference

Tracker hit class. More...

#include <TrackerHit.hh>

+ Inheritance diagram for TrackerHit:
+ Collaboration diagram for TrackerHit:

Public Member Functions

 TrackerHit ()
 
 TrackerHit (const TrackerHit &)
 
virtual ~TrackerHit ()
 
const TrackerHitoperator= (const TrackerHit &)
 
G4int operator== (const TrackerHit &) const
 
void * operator new (size_t)
 
void operator delete (void *)
 
virtual void Draw ()
 
virtual void Print ()
 
void SetTrackID (G4int track)
 
void SetEdep (G4double de)
 
void SetPos (G4ThreeVector xyz)
 
G4int GetTrackID () const
 
G4double GetEdep () const
 
G4ThreeVector GetPos () const
 
- Public Member Functions inherited from G4VHit
 G4VHit ()
 
virtual ~G4VHit ()
 
G4int operator== (const G4VHit &right) const
 
virtual const std::map
< G4String, G4AttDef > * 
GetAttDefs () const
 
virtual std::vector< G4AttValue > * CreateAttValues () const
 

Private Attributes

G4int fTrackID
 
G4double fEdep
 
G4ThreeVector fPos
 

Detailed Description

Tracker hit class.

It defines data members to store the trackID, energy deposit, and position of charged particles in a selected volume:

  • fTrackID, fEdep, fPos

Definition at line 50 of file TrackerHit.hh.

Constructor & Destructor Documentation

TrackerHit::TrackerHit ( )

Definition at line 50 of file TrackerHit.cc.

TrackerHit::TrackerHit ( const TrackerHit right)

Definition at line 63 of file TrackerHit.cc.

References fEdep, fPos, and fTrackID.

TrackerHit::~TrackerHit ( )
virtual

Definition at line 59 of file TrackerHit.cc.

Member Function Documentation

void TrackerHit::Draw ( )
virtual

Reimplemented from G4VHit.

Definition at line 91 of file TrackerHit.cc.

References G4VVisManager::Draw(), G4VMarker::filled, fPos, G4VVisManager::GetConcreteInstance(), G4VMarker::SetFillStyle(), G4VMarker::SetScreenSize(), and G4Visible::SetVisAttributes().

+ Here is the call graph for this function:

G4double TrackerHit::GetEdep ( ) const
inline

Definition at line 75 of file TrackerHit.hh.

References fEdep.

G4ThreeVector TrackerHit::GetPos ( ) const
inline

Definition at line 76 of file TrackerHit.hh.

References fPos.

G4int TrackerHit::GetTrackID ( ) const
inline

Definition at line 74 of file TrackerHit.hh.

References fTrackID.

void TrackerHit::operator delete ( void *  hit)
inline

Definition at line 102 of file TrackerHit.hh.

References TrackerHitAllocator.

void * TrackerHit::operator new ( size_t  )
inline

Definition at line 93 of file TrackerHit.hh.

References TrackerHitAllocator.

const TrackerHit & TrackerHit::operator= ( const TrackerHit right)

Definition at line 73 of file TrackerHit.cc.

References fEdep, fPos, and fTrackID.

G4int TrackerHit::operator== ( const TrackerHit right) const

Definition at line 84 of file TrackerHit.cc.

void TrackerHit::Print ( void  )
virtual

Reimplemented from G4VHit.

Definition at line 108 of file TrackerHit.cc.

References fEdep, fPos, fTrackID, G4BestUnit, G4cout, and G4endl.

void TrackerHit::SetEdep ( G4double  de)
inline

Definition at line 70 of file TrackerHit.hh.

References fEdep.

Referenced by TrackerSD::ProcessHits().

+ Here is the caller graph for this function:

void TrackerHit::SetPos ( G4ThreeVector  xyz)
inline

Definition at line 71 of file TrackerHit.hh.

References fPos.

Referenced by TrackerSD::ProcessHits().

+ Here is the caller graph for this function:

void TrackerHit::SetTrackID ( G4int  track)
inline

Definition at line 69 of file TrackerHit.hh.

References fTrackID.

Referenced by TrackerSD::ProcessHits().

+ Here is the caller graph for this function:

Member Data Documentation

G4double TrackerHit::fEdep
private

Definition at line 81 of file TrackerHit.hh.

Referenced by GetEdep(), operator=(), Print(), SetEdep(), and TrackerHit().

G4ThreeVector TrackerHit::fPos
private

Definition at line 82 of file TrackerHit.hh.

Referenced by Draw(), GetPos(), operator=(), Print(), SetPos(), and TrackerHit().

G4int TrackerHit::fTrackID
private

Definition at line 76 of file TrackerHit.hh.

Referenced by GetTrackID(), operator=(), Print(), SetTrackID(), and TrackerHit().


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