PandaRoot
RhoPdtLoader.h
Go to the documentation of this file.
1 #ifndef RHOPDTLOADER_H
2 #define RHOPDTLOADER_H
3 // //
5 // RhoPdtLoader //
6 // //
7 // Read the EvtGen style PDT. //
8 // //
9 // Author: Marcel Kunze, RUB, 1999-2000 //
10 // Copyright (C) 1999-2001, Ruhr-University Bochum. //
11 // Ralf Kliemt, HIM/GSI Feb.2013 (Cleanup & Restructuring) //
12 // //
14 
15 #include "TDatabasePDG.h"
16 #include <vector>
17 #include <map>
18 
19 class TString;
20 
21 using namespace std;
22 
23 typedef pair<double, vector<int> > decmode; // branching fraction => list of decay pdg codes
24 typedef map<int, vector<decmode> > dectable; // pdg code => list of decay modes
25 typedef vector<TString> stringlist;
26 
27 class RhoPdtLoader {
28  public:
29  // Read the particle data (default "evt.pdl") and decay data (usually "DECAY.DEC")
30  static TDatabasePDG *ReadPDGTable(TString particledata="default", TString decaydata="default", bool reset = false);
31 
32  private:
33  RhoPdtLoader() {}
34  ~RhoPdtLoader() {}
35 
36  static stringlist SplitString(TString s, TString delim); // split string in vector of tokens
37  static dectable ReadDecayFile(TString fname); // reads decay file
38 
39 
40  public:
41  ClassDef(RhoPdtLoader, 1) // EvtGen Particle Data Table
42 };
43 
44 #endif
map< int, vector< decmode > > dectable
Definition: RhoPdtLoader.h:24
vector< TString > stringlist
Definition: RhoPdtLoader.h:25
STL namespace.
pair< double, vector< int > > decmode
Definition: RhoPdtLoader.h:23