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

A simple class to carry informations about hadronic interactions. More...

#include <GGSTHadrIntInfo.h>

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

Public Member Functions

 GGSTHadrIntInfo ()
 Constructor.
 
 ~GGSTHadrIntInfo ()
 Destructor.
 
void Clear (Option_t *="")
 Resets all the members.
 
Float_t * GetInteractionPoint ()
 The interaction point. More...
 
int GetNProducts ()
 Returns the number of particles produced in the interaction. More...
 
GGSTParticleGetProduct (int iProduct)
 Retrieves the particles produced in the interaction. More...
 

Data Fields

GGSTParticle primary
 The particle originating the interaction. More...
 
Int_t targetPDGCode
 PDG code of target nucleus. More...
 
Int_t originalTrackID
 Track ID of the original primary particle.
 
TString processName
 Hadronic process name.
 
TClonesArray * products
 Particles produced in the interaction.
 
TString volumeName
 The name of the physical volume where the interaction took place.
 

Detailed Description

A simple class to carry informations about hadronic interactions.

Since the primary is destroyed at each hadronic interaction point, in case of quasi-elastic interaction we will have a new "primary" with a different track ID. At each interaction point, the new primary will be recorded in primary, while the ID of the original primary will be stored in originalTrackID.

Definition at line 24 of file GGSTHadrIntInfo.h.

Member Function Documentation

Float_t* GGSTHadrIntInfo::GetInteractionPoint ( )
inline

The interaction point.

Simple getter that returns primary.pos.

Returns
Pointer to a Float_t[3] containing the (x,y,z) coordinates of the interaction point.

Definition at line 61 of file GGSTHadrIntInfo.h.

61 { return primary.pos; }
GGSTParticle primary
The particle originating the interaction.
Float_t pos[3]
Point of generation [cm].
Definition: GGSTParticle.h:23
int GGSTHadrIntInfo::GetNProducts ( )

Returns the number of particles produced in the interaction.

Returns
The number of particles produced in the interaction (-1 if no information about products is available)

Definition at line 31 of file GGSTHadrIntInfo.cpp.

31  {
32  if (products) {
33  return products->GetEntries();
34  } else {
35  return -1;
36  }
37 }
TClonesArray * products
Particles produced in the interaction.
GGSTParticle * GGSTHadrIntInfo::GetProduct ( int  iProduct)

Retrieves the particles produced in the interaction.

Parameters
iProductThe desired produced particle.
Returns
Pointer to the produced particle (NULL if nProduct is out of range or if no info about products is available).

Definition at line 41 of file GGSTHadrIntInfo.cpp.

41  {
42  int nProducts = GetNProducts();
43  if (iProduct < nProducts && iProduct > -1) {
44  return (GGSTParticle *)(products->At(iProduct));
45  } else {
46  return NULL;
47  }
48 }
int GetNProducts()
Returns the number of particles produced in the interaction.
TClonesArray * products
Particles produced in the interaction.
Class to store G4 particles.
Definition: GGSTParticle.h:19

Field Documentation

GGSTParticle GGSTHadrIntInfo::primary

The particle originating the interaction.

The kinematic properties of the particle (position, momentum, time) are relative to the interaction point.

Definition at line 37 of file GGSTHadrIntInfo.h.

Int_t GGSTHadrIntInfo::targetPDGCode

PDG code of target nucleus.

A 10 digit number; the encoding is: +-100ZZZAAAI

I is always 0. See the documentation of GetNucleusEncoding on the page: http://geant4.cern.ch/bin/SRM/G4GenDoc.exe.pl?flag=2&FileName=G4IonTable.hh&FileDir=source/particles/management/include

Definition at line 46 of file GGSTHadrIntInfo.h.


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