GGS(GenericGEANT4Simulation)Software  2.7.0
 All Data Structures Namespaces Files Functions Variables Typedefs Macros
GGSTPrimaryDisInfo.h
1 /*
2  * GGSTPrimaryDisInfo.h
3  *
4  * Created on: 1 Jun 2020
5  * Author: Nicola Mori
6  */
7 
8 #ifndef GGSTPRIMARYDISINFO_H_
9 #define GGSTPRIMARYDISINFO_H_
10 
11 #include "TClonesArray.h"
12 #include "TObject.h"
13 #include "TString.h"
14 
15 #include "montecarlo/dataobjs/GGSTParticle.h"
16 
22 class GGSTPrimaryDisInfo : public TObject {
23 public:
26 
29 
36  TString processName;
37  TClonesArray *products;
38  TString volumeName;
39 
41  void Clear(Option_t * = "");
42 
49  Float_t *GetInteractionPoint() { return primary.pos; }
50 
55  int GetNProducts();
56 
63  GGSTParticle *GetProduct(int iProduct);
64 
65  ClassDef(GGSTPrimaryDisInfo, 1)
66 };
67 
68 #endif /* GGSTPRIMARYDISINFO_H_ */
Float_t * GetInteractionPoint()
The interaction point.
TString volumeName
The name of the physical volume where the primary disappeared.
GGSTParticle primary
Descriptor for the primary particle.
void Clear(Option_t *="")
Resets all the members.
GGSTPrimaryDisInfo()
Constructor.
int GetNProducts()
Returns the number of particles produced by the disappearance of the primary.
A simple class to carry informations about the disappearance of the primary particle.
GGSTParticle * GetProduct(int iProduct)
Retrieves a particle produced by the disappearance of the primary.
Float_t pos[3]
Point of generation [cm].
Definition: GGSTParticle.h:23
TString processName
Name of the process that made the primary disappear.
Class to store G4 particles.
Definition: GGSTParticle.h:19
~GGSTPrimaryDisInfo()
Destructor.
TClonesArray * products
Particles produced by the disappearance of the primary.