cepgen is hosted by Hepforge, IPPP Durham
CepGen 1.2.5
Central exclusive processes event generator
Loading...
Searching...
No Matches
MCDFileParser.h
Go to the documentation of this file.
1/*
2 * CepGen: a central exclusive processes event generator
3 * Copyright (C) 2019-2023 Laurent Forthomme
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef CepGen_Physics_MCDFileParser_h
20#define CepGen_Physics_MCDFileParser_h
21
22#include <string>
23#include <unordered_map>
24
25namespace pdg {
28 public:
29 MCDFileParser() = default;
31 static void parse(const std::string& path);
32
33 private:
34 static constexpr size_t PDG_BEG = 1, PDG_END = 33;
35 static constexpr size_t MASS_BEG = 33, MASS_END = 70;
36 static constexpr size_t WIDTH_BEG = 70, WIDTH_END = 107;
37 static constexpr size_t AUX_BEG = 107;
38 static const std::unordered_map<std::string, short> MAP_CHARGE_STR;
39 };
40} // namespace pdg
41
42#endif
43
A MCD files parsing module.
static void parse(const std::string &path)
Parse an external MCD file and retrieve all particles definition.
MCDFileParser()=default