GEMC  2.2
Geant4 Monte-Carlo Framework
particle.h
Go to the documentation of this file.
1 #ifndef PARTICLE_FACTORY_H
2 #define PARTICLE_FACTORY_H 1
3 
4 // geant4 headers
5 #include "G4ThreeVector.hh"
6 
7 // c++ headers
8 #include <string>
9 using namespace std;
10 
19 
20 class gparticle
21 {
22  public:
23  gparticle(G4ThreeVector vertex, G4ThreeVector mom, int id, G4ThreeVector polar);
25 
26  G4ThreeVector v;
27  G4ThreeVector p;
28  int pid;
29  string name;
30 
31  double vtime;
32  G4ThreeVector polarization;
33 
35  friend ostream &operator<<(ostream &stream, gparticle);
36 
37 };
38 
39 
40 
41 
42 #endif
G4ThreeVector v
Definition: particle.h:26
ostream & operator<<(ostream &stream, detector Detector)
Definition: detector.cc:1071
STL namespace.
~gparticle()
Definition: particle.h:24
int pid
Definition: particle.h:28
G4ThreeVector polarization
Overloaded "<<" for gparticle class. Dumps infos on screen.
Definition: particle.h:32
G4ThreeVector p
Definition: particle.h:27
string name
Definition: particle.h:29
double vtime
Definition: particle.h:31