BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
CbmKFParticleDatabase.h
Go to the documentation of this file.
1#ifndef CbmKFParticleDatabase_H
2#define CbmKFParticleDatabase_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())
18 return it->second;
19 else
20 return 0.13957;
21 }
22
24
25 private:
26 std::map<int, float> fMass;
27
29};
30
31#endif
std::map< int, float > fMass
static CbmKFParticleDatabase * Instance()
static CbmKFParticleDatabase * fDatabase