ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4Particlev3.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4Particlev3.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4MAIN_PHG4PARTICLEV3_H
4 #define G4MAIN_PHG4PARTICLEV3_H
5 
6 #include "PHG4Particlev2.h"
7 
8 #include <iostream>
9 
10 class PHG4Particle;
11 
13 {
14  public:
16  // PHG4Particlev3(const std::string &name, const int pid, const double px, const double py, const double pz);
18 
19  ~PHG4Particlev3() override {}
20 
21  void identify(std::ostream& os = std::cout) const override;
22 
23  bool isIon() const override { return true; }
24  void set_A(const int a) override { A = a; }
25  int get_A() const override { return A; }
26  void set_Z(const int z) override { Z = z; }
27  int get_Z() const override { return Z; }
28  void set_NumCharge(const int c) override; // number of charges - gets converted to charge
29  void set_IonCharge(const double ch) override { ioncharge = ch; }
30  double get_IonCharge() const override { return ioncharge; }
31  void set_ExcitEnergy(const double e) override { excitEnergy = e; }
32  double get_ExcitEnergy() const override { return excitEnergy; }
33 
34  protected:
35  int A;
36  int Z;
37  double ioncharge;
38  double excitEnergy;
39 
40  ClassDefOverride(PHG4Particlev3, 1)
41 };
42 
43 #endif