]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TTherminator/Therminator/ParticleDB.h
Fix Coverity
[u/mrichter/AliRoot.git] / TTherminator / Therminator / ParticleDB.h
CommitLineData
2e967919 1/******************************************************************************
2 * T H E R M I N A T O R *
3 * THERMal heavy-IoN generATOR *
4 * version 1.0 *
5 * *
6 * Authors of the model: Wojciech Broniowski, Wojciech.Broniowski@ifj.edu.pl, *
7 * Wojciech Florkowski, Wojciech.Florkowski@ifj.edu.pl *
8 * Authors of the code: Adam Kisiel, kisiel@if.pw.edu.pl *
9 * Tomasz Taluc, ttaluc@if.pw.edu.pl *
10 * Code designers: Adam Kisiel, Tomasz Taluc, Wojciech Broniowski, *
11 * Wojciech Florkowski *
12 * *
13 * For the detailed description of the program and furhter references *
14 * to the description of the model plesase refer to: nucl-th/0504047, *
15 * accessibile at: http://www.arxiv.org/nucl-th/0504047 *
16 * *
17 * Homepage: http://hirg.if.pw.edu.pl/en/therminator/ *
18 * *
19 * This code can be freely used and redistributed. However if you decide to *
20 * make modifications to the code, please contact the authors, especially *
21 * if you plan to publish the results obtained with such modified code. *
22 * Any publication of results obtained using this code must include the *
23 * reference to nucl-th/0504047 and the published version of it, when *
24 * available. *
25 * *
26 *****************************************************************************/
27#ifndef _BFPW_PARTICLE_DATABASE_
28#define _BFPW_PARTICLE_DATABASE_
29
30#include <map>
31#include <vector>
32#include <string>
33#include "THGlobal.h"
34#include "ParticleType.h"
35#include "DecayChannel.h"
36
37class ParticleDB
38{
39 public:
40 ParticleDB();
41 ~ParticleDB();
42
43 int AddParticleType(ParticleType *aPartType);
44 ParticleType* GetParticleType(int aIndex);
45 ParticleType* GetParticleType(std::string aName);
46 int GetParticleTypeIndex(std::string aName);
47 int GetParticleTypeCount();
48 int ExistsParticleType(std::string aName);
49
50 private:
51 std::vector<ParticleType> mParticleTable;
52 std::map<std::string, int> mParticleNames;
53};
54
55
56#endif