Belle II Software light-2406-ragdoll
EvtPDLUtil.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#pragma once
9
10#include <string>
11
12namespace Belle2 {
21 namespace EvtPDLUtil {
28 bool hasAntiParticle(int pdgCode);
29
33 std::string particleName(int pdgCode);
34
39 std::string antiParticleName(int pdgCode);
40
45 std::string antiParticleListName(int pdgCode, const std::string& label);
46
50 std::string particleListName(int pdgCode, const std::string& label);
51
55 double charge(int pdgCode);
56
57 } // namespace EvtPDLUtil
59} // namespace Belle2
std::string antiParticleListName(int pdgCode, const std::string &label)
Returns the name of the anti-particle ParticleList for particles with given pdg code and with given l...
Definition: EvtPDLUtil.cc:30
std::string particleName(int pdgCode)
Returns the name of a particle with given pdg code.
Definition: EvtPDLUtil.cc:20
std::string antiParticleName(int pdgCode)
Returns the name of the anti-particle of a particle with given pdg code.
Definition: EvtPDLUtil.cc:25
double charge(int pdgCode)
Returns electric charge of a particle with given pdg code.
Definition: EvtPDLUtil.cc:44
std::string particleListName(int pdgCode, const std::string &label)
Returns the name of the particle ParticleList for particles with given pdg code and with given label.
Definition: EvtPDLUtil.cc:37
bool hasAntiParticle(int pdgCode)
Checks if the particle with given pdg code has an anti-particle or not.
Definition: EvtPDLUtil.cc:12
Abstract base class for different kinds of events.
Definition: ClusterUtils.h:24