GGS(GenericGEANT4Simulation)Software  2.7.0
 All Data Structures Namespaces Files Functions Variables Typedefs Macros
Public Member Functions | Data Fields
GGSTParticle Class Reference

Class to store G4 particles. More...

#include <GGSTParticle.h>

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

Public Member Functions

 GGSTParticle ()
 Constructor.
 
 ~GGSTParticle ()
 Destructor.
 
void Clear (Option_t *option)
 Resets data members. More...
 
void Clear ()
 Calls Clear("").
 

Data Fields

Int_t PDGCode
 PDG code of particle (see http://www3.nd.edu/~avillano/geant4/geant4_pid.html).
 
Int_t trackID
 Track ID.
 
Float_t pos [3]
 Point of generation [cm].
 
Float_t mom [3]
 Momentum at generation [GeV].
 
Float_t time
 Time of generation [ns].
 
UShort_t isTrackKilled
 

Detailed Description

Class to store G4 particles.

Class to store kinematic information of a particle.

Definition at line 19 of file GGSTParticle.h.

Member Function Documentation

void GGSTParticle::Clear ( Option_t *  option)

Resets data members.

This function has an unused Option_t argument so that a TClonesArray of GGSTParticle can call this method when clearing the objects it contains (eg., when TClonesArray::Clear("C") is called).

Parameters
optionUnused.

Definition at line 26 of file GGSTParticle.cpp.

26  {
27  PDGCode = 0;
28  trackID = 0;
29  for (Int_t i = 0; i < 3; i++) {
30  pos[i] = 0.;
31  mom[i] = 0.;
32  }
33  time = 0;
34  isTrackKilled = 2;
35 }
Float_t mom[3]
Momentum at generation [GeV].
Definition: GGSTParticle.h:24
UShort_t isTrackKilled
Definition: GGSTParticle.h:26
Int_t PDGCode
PDG code of particle (see http://www3.nd.edu/~avillano/geant4/geant4_pid.html).
Definition: GGSTParticle.h:21
Float_t time
Time of generation [ns].
Definition: GGSTParticle.h:25
Int_t trackID
Track ID.
Definition: GGSTParticle.h:22
Float_t pos[3]
Point of generation [cm].
Definition: GGSTParticle.h:23

Field Documentation

UShort_t GGSTParticle::isTrackKilled

Flag to signal if particle's track have been killed(0: not killed, 1: killed, 2: info not available).

Definition at line 26 of file GGSTParticle.h.


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