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