/home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/gen/include/RAT/VertexGen_Isotope.hh Source File

Ratpac-two: /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/gen/include/RAT/VertexGen_Isotope.hh Source File
Ratpac-two
VertexGen_Isotope.hh
1 // RAT::VertexGen_Isotope
2 // 18-July-2008 JR Wilson
3 
18 #ifndef __RAT_VertexGen_Isotope__
19 #define __RAT_VertexGen_Isotope__
20 
21 #include <G4Event.hh>
22 #include <G4ThreeVector.hh>
23 #include <RAT/GLG4VertexGen.hh>
24 #include <RAT/IsotopeMessenger.hh>
25 #include <globals.hh>
26 #include <vector>
27 
28 #include "RAT/DB.hh"
29 
30 namespace RAT {
31 
33  public:
34  VertexGen_Isotope(const char *arg_dbname = "isotope");
35  virtual ~VertexGen_Isotope();
40  virtual void GeneratePrimaryVertex(G4Event *argEvent, G4ThreeVector &dx, G4double dt);
44  virtual void SetState(G4String newValues);
46  virtual G4String GetState();
47 
51  void SetIsotopeA(double AAm = ADEFAULT);
52  void SetIsotopeZ(double ZAm = ZDEFAULT);
53  void SetIsotopeE(double EAm = EDEFAULT);
54 
55  inline double GetIsotopeA() { return valueA; };
56  inline double GetIsotopeZ() { return valueZ; };
57  inline double GetIsotopeE() { return valueE; };
58 
59  private:
60  G4String _particle; // name of the particle type
61  G4ParticleDefinition *_pDef; // particle definition
62  G4String _Isotope; // name of the Isotope to use
63 
64  double valueE, valueA, valueZ;
65 
66  IsotopeMessenger *messenger;
67 
68  // double ADEFAULT,ZDEFAULT,EDEFAULT;
69 
70  static const double ADEFAULT;
71  static const double ZDEFAULT;
72  static const double EDEFAULT;
73 };
74 
75 } // namespace RAT
76 
77 #endif
Definition: GLG4VertexGen.hh:26
Definition: IsotopeMessenger.hh:22
Definition: VertexGen_Isotope.hh:32
void SetIsotopeA(double AAm=ADEFAULT)
Definition: VertexGen_Isotope.cc:135
virtual void SetState(G4String newValues)
Definition: VertexGen_Isotope.cc:54
virtual void GeneratePrimaryVertex(G4Event *argEvent, G4ThreeVector &dx, G4double dt)
Definition: VertexGen_Isotope.cc:32
virtual ~VertexGen_Isotope()
Definition: VertexGen_Isotope.cc:27
virtual G4String GetState()
Definition: VertexGen_Isotope.cc:125
Definition: CCCrossSecMessenger.hh:29