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