SToGS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
SToGS::TrackerHit Class Reference

Informations to be kept at each step if a positive energy is deposited in a sensitive detector. More...

#include <SToGS_G4_TrackerHit.hh>

Inherits G4VHit.

Public Member Functions

void Draw ()
 
G4int GetDetID ()
 
G4String & GetDetName ()
 
G4double GetEdep ()
 
G4String & GetMotherDetName ()
 
G4int GetMotherID ()
 
G4int GetParentID ()
 
G4String & GetParticleName ()
 
G4int GetPDGcode ()
 
G4ThreeVector & GetPos ()
 
G4int GetPrimaryID ()
 
G4String & GetProcessName ()
 
G4double GetToF ()
 
G4int GetTrackID ()
 
void operator delete (void *aHit)
 
void * operator new (size_t)
 
const TrackerHitoperator= (const TrackerHit &right)
 
G4int operator== (const TrackerHit &right) const
 
void Print ()
 
void SetDetID (G4int id)
 
void SetDetName (G4String name)
 
void SetEdep (G4double de)
 
void SetMotherDetName (G4String name)
 
void SetMotherID (G4int id)
 
void SetParentID (G4int id)
 
void SetParticleName (G4String name)
 
void SetPDGcode (G4int code)
 
void SetPos (G4ThreeVector xyz)
 
void SetPrimaryID (G4int id)
 
void SetProcessName (G4String name)
 
void SetToF (G4double tf)
 
void SetTrackID (G4int id)
 
 TrackerHit ()
 
 TrackerHit (const TrackerHit &right)
 
virtual ~TrackerHit ()
 

Detailed Description

Informations to be kept at each step if a positive energy is deposited in a sensitive detector.

In G4, one have to define a class (a hit) that inherits from G4VHit to keep informations during the tracking. This one is dedicated for tracking since it kept infomations of any single impact in sensitive detectors. Here is the list of the available informations for each TrackerHit. Use Get/Set methods to obtain/change these values.

  • G4int trackID: Track to which belongs this hit
  • G4int parentID: Parent track of the track to which this hit belongs
  • G4int primaryID: Primary vertex from which this hit is coming
  • G4int detID: Detector ID in which the hit occured
  • G4int motherID: Mother ID of the detector in which the hit occured
  • G4double edep: Energy deposited
  • G4double ToF: global time at which the interaction occured
  • G4ThreeVector pos: Position of the impact
  • G4String processName: Process that gives this hit
  • G4String particleName: Name of the particle that lost energie at that position
  • G4String detName: Name of the detector in which the hit occured
  • G4String motherDetName: CURRENTLY NOT AVAILABLE
  • G4int PDGcode: code of the particle (Nuclear codes are given as 10-digit numbers +-100ZZZAAAI. I gives the isomer level, with I = 0 corresponding to the ground state and I >0 to excitations for the elementary particle see http://www.slac.stanford.edu/BFROOT/www/Computing/Environment/NewUser/htmlbug/node51.html These codes are define in G4ParticleTable )

Definition at line 72 of file SToGS_G4_TrackerHit.hh.

Constructor & Destructor Documentation

SToGS::TrackerHit::TrackerHit ( )

Definition at line 36 of file SToGS_G4_TrackerHit.cc.

SToGS::TrackerHit::~TrackerHit ( )
virtual

Definition at line 41 of file SToGS_G4_TrackerHit.cc.

SToGS::TrackerHit::TrackerHit ( const TrackerHit right)

Definition at line 46 of file SToGS_G4_TrackerHit.cc.

Member Function Documentation

void SToGS::TrackerHit::Draw ( )

Definition at line 95 of file SToGS_G4_TrackerHit.cc.

G4int SToGS::TrackerHit::GetDetID ( )
inline

Definition at line 153 of file SToGS_G4_TrackerHit.hh.

G4String& SToGS::TrackerHit::GetDetName ( )
inline

Definition at line 185 of file SToGS_G4_TrackerHit.hh.

G4double SToGS::TrackerHit::GetEdep ( )
inline

Definition at line 161 of file SToGS_G4_TrackerHit.hh.

G4String& SToGS::TrackerHit::GetMotherDetName ( )
inline

Definition at line 189 of file SToGS_G4_TrackerHit.hh.

G4int SToGS::TrackerHit::GetMotherID ( )
inline

Definition at line 157 of file SToGS_G4_TrackerHit.hh.

G4int SToGS::TrackerHit::GetParentID ( )
inline

Definition at line 145 of file SToGS_G4_TrackerHit.hh.

G4String& SToGS::TrackerHit::GetParticleName ( )
inline

Definition at line 181 of file SToGS_G4_TrackerHit.hh.

G4int SToGS::TrackerHit::GetPDGcode ( )
inline

Definition at line 169 of file SToGS_G4_TrackerHit.hh.

G4ThreeVector& SToGS::TrackerHit::GetPos ( )
inline

Definition at line 173 of file SToGS_G4_TrackerHit.hh.

G4int SToGS::TrackerHit::GetPrimaryID ( )
inline

Definition at line 149 of file SToGS_G4_TrackerHit.hh.

G4String& SToGS::TrackerHit::GetProcessName ( )
inline

Definition at line 177 of file SToGS_G4_TrackerHit.hh.

G4double SToGS::TrackerHit::GetToF ( )
inline

Definition at line 165 of file SToGS_G4_TrackerHit.hh.

G4int SToGS::TrackerHit::GetTrackID ( )
inline

Definition at line 141 of file SToGS_G4_TrackerHit.hh.

void SToGS::TrackerHit::operator delete ( void *  aHit)
inline

Definition at line 230 of file SToGS_G4_TrackerHit.hh.

void * SToGS::TrackerHit::operator new ( size_t  )
inline

Definition at line 223 of file SToGS_G4_TrackerHit.hh.

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

Definition at line 67 of file SToGS_G4_TrackerHit.cc.

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

Definition at line 90 of file SToGS_G4_TrackerHit.cc.

void SToGS::TrackerHit::Print ( )

Definition at line 109 of file SToGS_G4_TrackerHit.cc.

void SToGS::TrackerHit::SetDetID ( G4int  id)
inline

Definition at line 100 of file SToGS_G4_TrackerHit.hh.

void SToGS::TrackerHit::SetDetName ( G4String  name)
inline

Definition at line 128 of file SToGS_G4_TrackerHit.hh.

void SToGS::TrackerHit::SetEdep ( G4double  de)
inline

Definition at line 108 of file SToGS_G4_TrackerHit.hh.

void SToGS::TrackerHit::SetMotherDetName ( G4String  name)
inline

Definition at line 132 of file SToGS_G4_TrackerHit.hh.

void SToGS::TrackerHit::SetMotherID ( G4int  id)
inline

Definition at line 104 of file SToGS_G4_TrackerHit.hh.

void SToGS::TrackerHit::SetParentID ( G4int  id)
inline

Definition at line 91 of file SToGS_G4_TrackerHit.hh.

void SToGS::TrackerHit::SetParticleName ( G4String  name)
inline

Definition at line 124 of file SToGS_G4_TrackerHit.hh.

void SToGS::TrackerHit::SetPDGcode ( G4int  code)
inline

Definition at line 136 of file SToGS_G4_TrackerHit.hh.

void SToGS::TrackerHit::SetPos ( G4ThreeVector  xyz)
inline

Definition at line 116 of file SToGS_G4_TrackerHit.hh.

void SToGS::TrackerHit::SetPrimaryID ( G4int  id)
inline

Definition at line 95 of file SToGS_G4_TrackerHit.hh.

void SToGS::TrackerHit::SetProcessName ( G4String  name)
inline

Definition at line 120 of file SToGS_G4_TrackerHit.hh.

void SToGS::TrackerHit::SetToF ( G4double  tf)
inline

Definition at line 112 of file SToGS_G4_TrackerHit.hh.

void SToGS::TrackerHit::SetTrackID ( G4int  id)
inline

Definition at line 87 of file SToGS_G4_TrackerHit.hh.


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