CbmRoot
ThermalParticleSystem.h
Go to the documentation of this file.
1 #ifndef THERMALPARTICLESYSTEM_H
2 #define THERMALPARTICLESYSTEM_H
3 #include "ThermalParticle.h"
4 #include <map>
5 #include <vector>
6 
8 public:
9  std::vector<ThermalParticle> fParticles;
10  std::map<int, int> PDGtoID;
11  std::vector<int> IDtoPDG;
12  ThermalParticleSystem(std::string InputFile = "");
14  std::vector<ParticleDecay>
15  GetDecaysFromAntiParticle(const std::vector<ParticleDecay>& Decays) {
16  std::vector<ParticleDecay> ret = Decays;
17  for (unsigned int i = 0; i < ret.size(); ++i) {
18  for (unsigned int j = 0; j < ret[i].fDaughters.size(); ++j) {
19  if (PDGtoID.count(-ret[i].fDaughters[j]) > 0)
20  ret[i].fDaughters[j] = -ret[i].fDaughters[j];
21  }
22  }
23  return ret;
24  }
25  void FillResonanceDecays();
26  void GoResonance(int ind, int startPDG, double BR);
28  void LoadTHERMUSDatabase(std::string InputFile = "");
29  void LoadDatabase(std::string InputFile = "");
31  for (unsigned int i = 0; i < fParticles.size(); ++i)
34  }
36  for (unsigned int i = 0; i < fParticles.size(); ++i)
39  }
40  std::string GetNameFromPDG(int pdgid);
41 };
42 
43 std::vector<std::string> split(const std::string& s, char delim);
44 
45 #endif
ThermalParticleSystem::fParticles
std::vector< ThermalParticle > fParticles
Definition: ThermalParticleSystem.h:9
ThermalParticleSystem::GoResonance
void GoResonance(int ind, int startPDG, double BR)
Definition: ThermalParticleSystem.cxx:40
i
int i
Definition: L1/vectors/P4_F32vec4.h:25
ThermalParticleSystem::FillResonanceDecays
void FillResonanceDecays()
Definition: ThermalParticleSystem.cxx:32
ThermalParticleSystem::NormalizeBranchingRatios
void NormalizeBranchingRatios()
Definition: ThermalParticleSystem.h:30
ThermalParticleSystem::PDGtoID
std::map< int, int > PDGtoID
Definition: ThermalParticleSystem.h:10
ThermalParticleSystem::IDtoPDG
std::vector< int > IDtoPDG
Definition: ThermalParticleSystem.h:11
ThermalParticleSystem::GetDecaysFromAntiParticle
std::vector< ParticleDecay > GetDecaysFromAntiParticle(const std::vector< ParticleDecay > &Decays)
Definition: ThermalParticleSystem.h:15
ThermalParticleSystem::NumberOfParticles
int NumberOfParticles
Definition: ThermalParticleSystem.h:27
ThermalParticleSystem::ThermalParticleSystem
ThermalParticleSystem(std::string InputFile="")
Definition: ThermalParticleSystem.cxx:16
split
std::vector< std::string > split(const std::string &s, char delim)
Definition: ThermalParticleSystem.cxx:154
ThermalParticleSystem::LoadTHERMUSDatabase
void LoadTHERMUSDatabase(std::string InputFile="")
Definition: ThermalParticleSystem.cxx:61
ThermalParticleSystem::RestoreBranchingRatios
void RestoreBranchingRatios()
Definition: ThermalParticleSystem.h:35
ThermalParticleSystem
Definition: ThermalParticleSystem.h:7
ThermalParticleSystem::~ThermalParticleSystem
~ThermalParticleSystem(void)
Definition: ThermalParticleSystem.cxx:30
ThermalParticle.h
ThermalParticleSystem::LoadDatabase
void LoadDatabase(std::string InputFile="")
Definition: ThermalParticleSystem.cxx:160
ThermalParticleSystem::GetNameFromPDG
std::string GetNameFromPDG(int pdgid)
Definition: ThermalParticleSystem.cxx:316