PandaRoot
KFParticleDatabase.h
Go to the documentation of this file.
1 #ifndef KFParticleDatabase_H
2 #define KFParticleDatabase_H
3 
4 #include <map>
5 
7  public:
9 
11 
12  float GetMass(int pdg)
13  {
14  std::map<int, float>::iterator it;
15  it = fMass.find(pdg);
16  if (it != fMass.end())
17  return it->second;
18  else
19  return 0.13957;
20  }
21 
22  static KFParticleDatabase *Instance() { return fDatabase; }
23 
24  private:
25  std::map<int, float> fMass;
26 
27  static KFParticleDatabase *fDatabase;
28 };
29 
30 #endif
float GetMass(int pdg)
static KFParticleDatabase * Instance()