GGS(GenericGEANT4Simulation)Software  2.6.0
 All Data Structures Namespaces Files Functions Variables Typedefs Macros
GGSTHadrIntInfo.h
1 /*
2  * GGSTHadrIntInfo.h
3  *
4  * Created on: 08 Jun 2011
5  * Author: Nicola Mori
6  */
7 
8 #ifndef GGSTHADRINTINFO_H_
9 #define GGSTHADRINTINFO_H_
10 
11 #include "TObject.h"
12 #include "TString.h"
13 #include "TClonesArray.h"
14 
15 #include "montecarlo/dataobjs/GGSTParticle.h"
16 
24 class GGSTHadrIntInfo: public TObject {
25 public:
28 
31 
38 
48  TString processName;
49  TClonesArray *products;
50 
52  void Clear(Option_t * = "");
53 
60  Float_t *GetInteractionPoint() {
61  return primary.pos;
62  }
63 
68  int GetNProducts();
69 
75  GGSTParticle *GetProduct(int iProduct);
76 
77 ClassDef(GGSTHadrIntInfo,2)
78 };
79 
80 #endif /* GGSTHADRINTINFO_H_ */
Int_t originalTrackID
Track ID of the original primary particle.
GGSTParticle primary
The particle originating the interaction.
GGSTParticle * GetProduct(int iProduct)
Retrieves the particles produced in the interaction.
int GetNProducts()
Returns the number of particles produced in the interaction.
TClonesArray * products
Particles produced in the interaction.
Float_t pos[3]
Point of generation [cm].
Definition: GGSTParticle.h:24
A simple class to carry informations about hadronic interactions.
Class to store G4 particles.
Definition: GGSTParticle.h:19
~GGSTHadrIntInfo()
Destructor.
Int_t targetPDGCode
PDG code of target nucleus.
Float_t * GetInteractionPoint()
The interaction point.
void Clear(Option_t *="")
Resets all the members.
GGSTHadrIntInfo()
Constructor.
TString processName
Hadronic process name.