PandaRoot
KFParticleDatabase.h
Go to the documentation of this file.
1
//****************************************************************************
2
//* This file is part of PandaRoot. *
3
//* *
4
//* PandaRoot is distributed under the terms of the *
5
//* GNU General Public License (GPL) version 3, *
6
//* copied verbatim in the file "LICENSE". *
7
//* *
8
//* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9
//* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10
//* The authors are listed in the file "AUTHORS". *
11
//****************************************************************************
12
13
#ifndef KFParticleDatabase_H
14
#define KFParticleDatabase_H
15
16
#include <map>
17
18
class
KFParticleDatabase
{
19
public
:
20
KFParticleDatabase
();
21
22
~KFParticleDatabase
(){};
23
24
float
GetMass
(
int
pdg)
25
{
26
std::map<int, float>::iterator it;
27
it = fMass.find(pdg);
28
if
(it != fMass.end())
29
return
it->second;
30
else
31
return
0.13957;
32
}
33
34
static
KFParticleDatabase
*
Instance
() {
return
fDatabase; }
35
36
private
:
37
std::map<int, float> fMass;
38
39
static
KFParticleDatabase
*fDatabase;
40
};
41
42
#endif
KFParticleDatabase::GetMass
float GetMass(int pdg)
Definition:
KFParticleDatabase.h:24
KFParticleDatabase
Definition:
KFParticleDatabase.h:18
KFParticleDatabase::~KFParticleDatabase
~KFParticleDatabase()
Definition:
KFParticleDatabase.h:22
KFParticleDatabase::Instance
static KFParticleDatabase * Instance()
Definition:
KFParticleDatabase.h:34
KFParticleDatabase::KFParticleDatabase
KFParticleDatabase()
home
gitlab-runner
builds
Vxspf1vo
0
PandaRootGroup
PandaRoot
tracking
ftscatracking
code
KFParticle
KFParticleDatabase.h
Generated on Fri Nov 29 2024 06:04:40 for PandaRoot by
1.8.13