SLIC  6.1.1
Simulation for the Linear Collider (SLIC) - Geant4 simulation application
HepPDTManager.hh
Go to the documentation of this file.
1 #ifndef SLIC_HEPPDTMANAGER_HH_
2 #define SLIC_HEPPDTMANAGER_HH_ 1
3 
4 // HepPDT
5 #include "HepPDT/TableBuilder.hh"
6 #include "HepPDT/ParticleDataTable.hh"
7 
8 // SLIC
9 #include "Module.hh"
10 #include "Singleton.hh"
11 
12 // STL
13 #include <stdio.h>
14 #include <cstdlib>
15 
16 using HepPDT::TableBuilder;
17 
18 namespace slic {
19 
24 class HepPDTManager: public Module, public Singleton<HepPDTManager> {
25  public:
26 
30  HepPDTManager();
31 
35  virtual ~HepPDTManager();
36 
37  public:
38 
43  HepPDT::ParticleDataTable* getParticleDataTable();
44 
49  void setParticleDataFile(std::string pdfile);
50 
51  private:
52 
56  void loadParticleData();
57 
61  void printParticleData();
62 
63  private:
64  HepPDT::ParticleDataTable* m_datacol;
65  std::string m_pdfile;
66  bool m_fileSet;
67 };
68 }
69 
70 #endif
A class for managing the HepPDT particle table.
HepPDT::ParticleDataTable * getParticleDataTable()
std::string m_pdfile
void setParticleDataFile(std::string pdfile)
virtual ~HepPDTManager()
HepPDT::ParticleDataTable * m_datacol
Base class for slic code modules that provides common functionality, such as logging to an output str...
Definition: Module.hh:25