GGS(GenericGEANT4Simulation)Software  2.6.0
 All Data Structures Namespaces Files Functions Variables Typedefs Macros
GGSTParticle.cpp
Go to the documentation of this file.
1 /*
2  * GGSTParticle.cpp
3  *
4  * Created on: 02 Jul 2013
5  * Author: Nicola Mori
6  */
7 
10 #include "montecarlo/dataobjs/GGSTParticle.h"
11 
12 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
13 /* **************************************** *
14  * GGSTParticle class implementation *
15  * **************************************** */
16 
17 ClassImp(GGSTParticle)
18 
19 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
21  Clear();
22 }
23 
24 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
25 
26 void GGSTParticle::Clear(Option_t *) {
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 }
36 
37 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
38 
Float_t mom[3]
Momentum at generation [GeV].
Definition: GGSTParticle.h:25
UShort_t isTrackKilled
Flag to signal if particle&#39;s track have been killed(0: not killed, 1: killed, 2: info not available)...
Definition: GGSTParticle.h:27
Int_t PDGCode
PDG code of particle (see http://www3.nd.edu/~avillano/geant4/geant4_pid.html).
Definition: GGSTParticle.h:22
void Clear()
Calls Clear(&quot;&quot;).
Definition: GGSTParticle.h:47
Float_t time
Time of generation [ns].
Definition: GGSTParticle.h:26
Int_t trackID
Track ID.
Definition: GGSTParticle.h:23
Float_t pos[3]
Point of generation [cm].
Definition: GGSTParticle.h:24
Class to store G4 particles.
Definition: GGSTParticle.h:19