ParticleProperties.h
Go to the documentation of this file.
1 #ifndef _utl_ParticleProperties_h_
2 #define _utl_ParticleProperties_h_
3 
4 #include <utl/VParticleProperties.h>
5 #include <string>
6 
7 
8 namespace utl {
9 
20 
21  public:
22  ParticleProperties(const int type,
23  const std::string& name,
24  const double mass)
25  : fType(type), fName(name), fMass(mass) { }
26 
28  virtual int GetType() const override { return fType; }
29 
31  virtual std::string GetName() const override { return fName; }
32 
34  virtual double GetMass() const override { return fMass; }
35 
36  private:
38  int fType = 0;
39  std::string fName;
40  double fMass = 0;
41 
42  };
43 
44 }
45 
46 
47 #endif
virtual int GetType() const override
Get particle type (using PDG particle codes)
ParticleProperties(const int type, const std::string &name, const double mass)
Internal interface for particle properties. This is intended to be implemented for elementary particl...
int fType
Particle type ID (PDG types)
virtual double GetMass() const override
Get particle mass (in Auger units)
virtual std::string GetName() const override
Get particle name.
Provide particle properties that depend only on its type.

, generated on Tue Sep 26 2023.