Belle II Software light-2406-ragdoll
DecayDescriptorParticle.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
9#pragma once
10
11#include <analysis/dataobjects/Particle.h>
12
13#include <string>
14
15namespace Belle2 {
20 struct DecayStringParticle;
21
28 private:
30 std::string m_strName;
36 std::string m_strLabel;
39 public:
42
45
48
50 bool init(const DecayStringParticle& p);
52 std::string getName() const
53 {
54 return m_strName;
55 }
59 std::string getFullName() const
60 {
61 if (m_strLabel.empty())
62 return m_strName;
63 else
64 return m_strName + ":" + m_strLabel;
65 }
67 std::string getNameSimple() const;
69 bool isSelected() const
70 {
71 return m_isSelected;
72 }
74 std::string getLabel() const
75 {
76 return m_strLabel;
77 }
79 int getPDGCode() const
80 {
81 return m_iPDGCode;
82 }
84 int getProperty() const
85 {
86 return m_properties;
87 }
89 bool isUnspecified() const
90 {
92 }
94 bool isIgnoreMisID() const
95 {
97 }
100 {
102 }
103 };
105}
106
107
Represents a particle in the DecayDescriptor.
int getPDGCode() const
Return PDG code.
std::string getNameSimple() const
Return the name from getName() without + - * or anti-.
bool isUnspecified() const
Is the particle unspecified?
std::string m_strLabel
Label of this particle to distinguish e.g.
std::string getFullName() const
returns the full name of the particle full_name = name:label
bool m_isSelected
Is particle selected?
bool init(const DecayStringParticle &p)
initialise member variables from std::string member variables contained in a DecayStringParticle stru...
bool isSelected() const
Is the particle selected in the decay string?
DecayDescriptorParticle(const DecayDescriptorParticle &)=default
Want the default copy ctor.
bool isIgnoreDecayInFlight() const
Check if decayInFlight shall be ignored.
std::string getName() const
evt.pdl name of the particle.
int getProperty() const
return property of the particle.
std::string getLabel() const
The label of this particle, "default" returned, when no label set.
std::string m_strName
evt.pdl name of the particle.
bool isIgnoreMisID() const
Check if misID shall be ignored.
int m_iPDGCode
PDG code of the decaying particle.
DecayDescriptorParticle & operator=(const DecayDescriptorParticle &)=default
Want the default assignment operator.
@ c_IsUnspecified
Ordinary particles.
Definition: Particle.h:118
@ c_IsIgnoreDecayInFlight
Is the particle MC matched with the ignore DecayInFlight flag set?
Definition: Particle.h:126
@ c_IsIgnoreMisID
Is the particle MC matched with the ignore MisID flag set?
Definition: Particle.h:125
Abstract base class for different kinds of events.
Definition: ClusterUtils.h:24
Holds the information of a particle in the decay string.